To compile optimal video, audio, and subtitle track combinations of videos for my media library, I’ve found MPC-HC’s millisecond counter and frame skip features useful for finding the exact offset between different video and audio tracks. After using MKVToolNix to combine the video track of an MP4 file with the delay-adjusted audio track of an MKV file, I noticed that the resulting MKV file was 0.143 seconds (about 3.5 frames in this case) shorter than the original MP4 file. As the frames of both videos remained in alignment until the end, it seems that the 0.143 seconds were taken off the end of the video.

Is there a difference between the two formats that affects video length?

  • BetaDoggo_@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    10 months ago

    There should be no difference because the video track hasn’t been touched. Some software will display the length of the longest track rather than the length of the main video track. It’s likely that the the audio track was originally longer than the video track and because of the offset it’s now shorter.

    You can use tools like ffmpeg and mediainfo to count the actual frames in each to verify.