2
I have a file that when I run ffpmeg -i on it will display a time of 351909:41:29.64.
I know I didn't record for 40 + years. Any suggestions on what would be the best way to fix this?
I appreciate any and all answers!
Regards,
2
I have a file that when I run ffpmeg -i on it will display a time of 351909:41:29.64.
I know I didn't record for 40 + years. Any suggestions on what would be the best way to fix this?
I appreciate any and all answers!
Regards,
5
There is an old related bug report, marked as fixed. about this: Incorrect duration displayed in webm file. This seems to be related to the fact that a webm file doesn't contain an index of all frames, but only keyframes.
First option is to rewrap the WebM
ffmpeg -i current.webm -c copy -fflags +genpts new.webm
I don't know if it's just an ffmpeg thing though. I see it when watching the video in the browser and VLC.
I think it may actually be a file encoding issue. – Ron – 2016-01-16T19:57:06.193
As Metabolix said, rewrap it in a new WebM, except add -fflags +genpts to their command. – Gyan – 2016-01-16T19:58:05.163
Thanks for the help! Kind of new to FFMPEG. So the command would be ffmpeg -fflags +genpts -i old.webm -c:a copy -c:v copy new.webm – Ron – 2016-01-16T20:00:49.910
See edited answer. – Gyan – 2016-01-16T20:01:48.483
Updated ffmpeg, ran the above command and then used ffprobe and got:
Input #0, matroska,webm, from 'new.webm': Metadata: encoder : Lavf56.36.100 Duration: 351909:41:29.65, start: 0.000000, bitrate: N/A Stream #0:0(eng): Video: vp8, yuv420p, 640x360, SAR 1:1 DAR 16:9, 1k fps, 1k tbr, 1k tbn, 1k tbc (default) Metadata: title : Video Stream #0:1(eng): Audio: vorbis, 48000 Hz, stereo, fltp (default) Metadata: title : Audio – Ron – 2016-01-16T21:14:52.827
I believe my file may be corrupt as I look at it. The video seems to be only 6kb while the audio is 9000+ kb – Ron – 2016-01-16T21:15:31.190
Looks like it. How long is the file supposed to be? – Gyan – 2016-01-17T05:49:28.370
Sorry for the delay in my response. It is actually supposed to be 16:54. – Ron – 2016-01-24T04:44:39.137
What is your ffmpeg version? Have you tried
ffmpeg -i old.webm -c:a copy -c:v copy new.webmor the like? – Metabolix – 2016-01-16T19:55:06.307To the OP, post the full output of
ffprobefor the file. – Gyan – 2016-01-16T19:55:48.037ffprobe output
Input #0, matroska,webm, from 'recording.webm': Duration: 351909:41:29.64, start: 0.000000, bitrate: N/A Stream #0.0(eng): Video: vp8, yuv420p, 640x360, PAR 1:1 DAR 16:9, 1k fps, 1k tbr, 1k tbn, 1k tbc (default) Metadata: title : Video Stream #0.1(eng): Audio: vorbis, 48000 Hz, stereo, s16 (default) Metadata: title : Audio – Ron – 2016-01-16T19:56:24.020
ffmpeg version 0.8.13-4:0.8.13 – Ron – 2016-01-16T19:57:52.290
1That's an ancient version. Get something 2.8+ or nightly build. – Gyan – 2016-01-16T19:59:03.527
Updating. Thanks for all the help by the way! – Ron – 2016-01-16T19:59:35.393