this post was submitted on 05 Mar 2024
25 points (93.1% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

54424 readers
366 users here now

⚓ 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

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 1 year ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] BetaDoggo_@lemmy.world 6 points 8 months ago (1 children)

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 1 points 8 months ago

Good to know; thanks!