[Ffmpeg-devel] AVI Container Duration Incorrect
Michael Niedermayer
michaelni
Sun May 29 14:12:50 CEST 2005
Hi
On Sunday 29 May 2005 13:23, Paul Curtis wrote:
> I have a MPEG file that was encoded by a commerial editing product. When
> examined, the file is correct, plays correctly, and the mpeg container
> has the correct values for the duration.
>
> # avprobe s XXXXXXX.mpg
> Length: 1946
> Duration: 1946711433
> AVTimeBase: 1000000
> Time: 00:32:26.7
> Bitrate: 6273132
> Size: 1526497280
> StreamTitle:
> StreamCopyright:
> StreamAuthor:
> MuxRate: 0
> Video: mpeg2video, yuv420p, 720x480, 29.97 fps, 8000 kb/s
> Audio: mp2, 48000 Hz, stereo, 224 kb/s
>
>
> I then trancode this file for input into the Helix Producer. Helix
> Producer requires rawvideo + PCM audio. Using the current CVS of
> 'ffmpeg', I do the following:
>
> ffmpeg -y -i XXXXXXX.mpg -vcodec rawvideo -pix_fmt yuv420p -s 320x240
> -acodec pcm_s16le temp.avi
>
> When I exmaine the resulting AVI file, I get:
> # avprobe s temp.avi
> Length: 294
> Duration: 294727767
> AVTimeBase: 1000000
> Time: 00:04:54.7
> Bitrate: 0
> Size: 0
> StreamTitle:
> StreamCopyright:
> StreamAuthor:
> MuxRate: 0
> Video: rawvideo, yuv420p, 320x240, 29.97 fps
> Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
>
> This causes a problem for the Helix Producer encoder, as the duration
> field in the AVFormatContext returns 294 seconds. The AVI file plays
> correctly with mplayer, with the correct duration. For whatever reason,
> any AVI created with the above 'ffmpeg' command line results in the same
> duration, 294 seconds.
>
> Any ideas why the duration of the AVI is incorrect?
this is not reproduceable
read and follow bugreports.html (ffmpeg output & version missing at least)
[...]
--
Michael
More information about the ffmpeg-devel
mailing list