Skip to content
Discussion options

You must be logged in to vote

Hey! Actually I cannot see what Mediabunny is doing wrong here. Mediabunny itself parses the file's duration as 30.36 seconds, which lines up with the end timestamp of the last packet. Even in the container metadata that value is stored. So the question is, why do FFmpeg and Chromium think the video is 43 seconds long? Could be that Chromium uses FFmpeg to determine the duration and that's why they agree.

The thing that sticks out to me is

13.080000,13.208000

which is odd, since the duration is supposed to be 0.128000. FFmpeg is probably summing up all packet durations and adding the start offset to reach the final duration of 43 seconds.

That first packet duration is probably a side-eff…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by zhmou
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants