GNOME Bugzilla – Bug 356147
[avimux] duration in header not correct for big avi (> 2 gig)
Last modified: 2006-09-16 14:32:37 UTC
I found that if I generate a big avi with this pipeline for example :
gst-launch-0.10 videotestsrc num-buffers=22000 ! video/x-raw-yuv,format=\(fourcc\)I420,width=320,height=240,framerate=15/1 ! avimux ! filesink location=BigAvi320x240.avi
I can open it properly in quicktime (under windows) and it show me a duration of 24:26.
However, opening the same file in windows media player show a duration of 20:13 wich correspond to the first chunk of the open dml AVI.
Created attachment 72865 [details] [review]
patch for dwLength
I notice that the "strh" dwLength value seems wrong in the AVI. It only contain the number of frame of the first AVI chunk and not the total length.
With this patch, the file duration is now displayed correctly in window media player and the AVI play completely
Patch by: Yves Lefebvre <ivanohe at abacom dot com>
* gst/avi/gstavimux.c: (gst_avi_mux_stop_file):
Correctly set the dwLength in strh.
With this patch, the file duration is now displayed correctly in window
media player and the AVI plays completely. Fixes #356147