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
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
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=https://www.videohelp.com/tools/MediaInfo
Similar Threads
-
Testing H264/AVC frame accurate editing (AVCHD/MOV/MP4/MKV)) of SolveigMM
By DmitryV in forum EditingReplies: 17Last Post: 20th Oct 2023, 05:47 -
AVC Frame size and video display
By soonerk in forum Newbie / General discussionsReplies: 1Last Post: 30th Apr 2012, 05:33 -
AVC in mkv plays with half the frame rate
By nikemouse in forum Video ConversionReplies: 2Last Post: 18th May 2010, 11:42 -
VOB2MPG Problem - MPG Duration Appears Incorrect
By ScottJ in forum SVCD2DVD & VOB2MPGReplies: 2Last Post: 25th Dec 2009, 20:15 -
Frame rate conversion by changing frame count
By asmaa in forum Video ConversionReplies: 2Last Post: 1st Aug 2007, 10:15