I have an MKV movie with an AVC video stream, and an AC3 audio stream. The audio/video content should be 1 hour 52 minutes long, but all video players are detecting the video to be 14 hours, 58 minutes, and 16 seconds long. The video will play in VLC, but the timeline is distorted in length (which makes it difficult to click on the timeline to jump around the video).
Here is some data retrieved using mkvinfo and MediaInfo on the original MKV file:
Originally Posted by mkvinfoI don't know how the length of MKV videos are determined by VLC. I considered that MKVs might directly store the file duration within the container itself, and that my MKV had become corrupted. To verify this, I demultiplexed the audio and video streams using mkvextract, then created a new MKV using mkvmerge. Sadly, the new MKV had the same, incorrect duration as the original one (14 hours or so).Originally Posted by Mediainfo
Rather than retrieving a stored value for file duration, mkvinfo and VLC may be calculating the file duration as: (frame count / frame rate). In this case, it would be (1292271 / 23.976) = 53,898.524 seconds, which is what mkvinfo reports. Since the frame rate of 23.976 is obviously correct, we have to look at the frame count: why is it 1,292,271? That's about ten times larger than what it should be.
As a last ditch effort, I ran Mediainfo on the demultiplexed audio and video streams from the original file. Here are the relevant details:
Originally Posted by Mediainfo: video.avcThere is no frame count or duration reported for the AVC (h.264) video file, but the AC3 stream has a roughly correct play time of 1 hou and 50 minutes. Does anyone have an explanation for this problem? For reference, I am using an OS X, but I can load Windows XP within VMware if it's necessary to resolve this frustrating hiccup.Originally Posted by Mediainfo: audio.ac3
+ Reply to Thread
Results 1 to 3 of 3
I wonder, with a microsecond timecode scale, if you're seeing a numerical overflow.
I would be amazed if there's an overflow occurring. Here's data from another MKV of mine:
Originally Posted by mkvinfo, file 2
Originally Posted by [url=http://www.videohelp.com/tools/MediaInfo