After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 356147 - [avimux] duration in header not correct for big avi (> 2 gig)
[avimux] duration in header not correct for big avi (> 2 gig)
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 0.10.5
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-09-15 16:49 UTC by Yves Lefebvre
Modified: 2006-09-16 14:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for dwLength (499 bytes, patch)
2006-09-15 16:53 UTC, Yves Lefebvre
committed Details | Review

Description Yves Lefebvre 2006-09-15 16:49:54 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.
Comment 1 Yves Lefebvre 2006-09-15 16:53:01 UTC
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
Comment 2 Wim Taymans 2006-09-16 14:32:37 UTC
        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