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
66M

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.

@Zedstrian@lemmy.dbzer0.com
creator
link
fedilink
English
16M

Good to know; thanks!

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ
!piracy@lemmy.dbzer0.com
Create a post
⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don’t request invites, trade, sell, or self-promote

3. Don’t request or link to specific pirated titles, including DMs

4. Don’t submit low-quality posts, be entitled, or harass others


Loot, Pillage, & Plunder


💰 Please help cover server costs.

Ko-FiLiberapay


  • 1 user online
  • 219 users / day
  • 509 users / week
  • 927 users / month
  • 4.94K users / 6 months
  • 1 subscriber
  • 3.22K Posts
  • 78.9K Comments
  • Modlog