GNOME Bugzilla – Bug 700933
avidemux: Wrong duration in push mode for some clips.
Last modified: 2013-07-28 15:39:45 UTC
Created attachment 245211 [details] [review] gst-plugins-good avidemux duration query patch. AVI demux reports wrong duration info for some samples. Usually in pull mode the duration was calculated from indexing information which is always accurate (stream->duration). In PUSH mode duration was taken from header(If stream->duration is invalid avi->duration is takes into consideration) which some times wrong for some samples. In this case the stream->hdr_duration contains the appropriate duration info. Changing the duration query logic to take stream->hdr_duration into consideration before falling back to avi->duration seems to be working fine with these samples. Please find the attached patch which is working for these samples.
thanks for the patch. could you make one or more of such files available by any chance?
Here is one such sample. https://mega.co.nz/#!y14QhbYQ!XusmfHIxOnjyK3ihjC9oM3uCu-8U7N9Ns2xSGK5-lKk SRK
Thanks, but that link/site doesn't work for me with any browser I have installed. It always tells me that this site doesn't support my browser and asks me to update chrome/mozilla...
Please take the sample from the below location. http://pan.baidu.com/share/link?shareid=480484&uk=2720393903 Password:o6qp Siva
Comment on attachment 245211 [details] [review] gst-plugins-good avidemux duration query patch. The patch makes sense, but which of the many files is it?
You can also try with those: http://absolut.zogzog.org/share/samples/avi/%5bDB%5d_Bleach_211_%5bA988CA54%5d.avi http://absolut.zogzog.org/share/samples/avi/big_buck_bunny_720p_surround.avi
commit 1fbb6d30a6a6fab97e54bc780fed781c5537fb65 Author: Sebastian Dröge <slomo@circular-chaos.org> Date: Sun Jul 28 17:38:56 2013 +0200 avidemux: Fix duration reporting in push mode https://bugzilla.gnome.org/show_bug.cgi?id=700933