Hello,
I recorded an OTA broadcast off PBS using my HDHomeRun tuner and Plex. Usually this goes without a hitch, but in this case the 30-min episode lists (in ffmpeg -i, VLC player, Plex, etc.) its duration as 13:28:20.xxx. The file plays fine in VLC for its actual 30-min duration and then just ends. [More precise: I did not watch the full file, I just skipped through it in 10-s increments to the end, so seek seems to work fine.] I'm not savvy enough with header/metadata info and encoding procedures to understand why the duration field got wonky. Is there an easy way in ffmpeg or mkvtoolnix to update this field to the correct number?
+ Reply to Thread
Results 1 to 6 of 6
-
-
Post a MediaInfo report of the file - sometimes simply remuxing in MKVToolnix will fix a few problems.
SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 11 Professional, QNAP NAS TS851 -
What format does the original broadcast record ie TS or MP4 etc.... If it is TS then you could run the file through TSDoctor to cleanup any transmission errors, time code etc...
SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 11 Professional, QNAP NAS TS851 -
Attached is the MediaInfo log.
As you can see, duration is listed as 13hrs20mins, when in fact the recording is only approx. 30mins. This is confirmed by playing the file, as well as looking at the audio durations (29:58).
I don't think keyframes are the issue here when I trimmed the video. I haven't analyzed to see exactly where the keyframes are, but my understanding is that broadcoasts have frequent keyframes so that if there is a transmission error the stream is recoverable within a few seconds, or so you can seamlessly change channels, etc. I trimmed this video almost 30 seconds before the end to be safe--even by blu ray standards that would be a long stretch without a keyframe.
The original broadcast was MPEG codec in the TS container, remuxed into mkv container. I have never used TSDoctor but can give that a try. I hoped there would be a simple duration parameter I could just modify, or something like that.
Similar Threads
-
Interlaced Audio Duration Longer than Video Duration (lip-sync issue)
By senlab in forum Video ConversionReplies: 7Last Post: 27th Aug 2018, 15:36 -
MKV duration too short after remuxing?
By johnnyh55 in forum Newbie / General discussionsReplies: 2Last Post: 4th Jul 2018, 09:56 -
.avi file 22gb big with only a 5 second duration...
By kleang in forum Video ConversionReplies: 1Last Post: 1st Oct 2017, 15:57 -
F4F File Video Duration
By Tom Saurus in forum Video Streaming DownloadingReplies: 0Last Post: 20th Feb 2016, 09:41 -
mkvmerge MPEG-TS to mkv - wrong duration
By bruchmann in forum Video ConversionReplies: 21Last Post: 13th Feb 2014, 07:12