GNOME Bugzilla – Bug 657381
[avidemux] Wrong duration reported in push mode
Last modified: 2012-01-18 12:56:21 UTC
Hi, I have a few AVI files that do not report a correct duration when played using gstreamer, usually only a few seconds duration is reported. This happens with a recent git checkout, and it also did in 0.10.28. Here is a way to reproduce the issue: gst-launch-0.10 -m souphttpsrc location='http://absolut.zogzog.org/share/samples/avi/big_buck_bunny_720p_surround.avi' ! avidemux ! progressreport update-freq=1 ! fakesink silent=true progressreport shows a duration of 2 seconds. If I use filesrc instead of souphttpsrc 596 seconds is reported as expected.
> gst-launch-0.10 -m souphttpsrc > location='http://absolut.zogzog.org/share/samples/avi/big_buck_bunny_720p_surround.avi' > ! avidemux ! progressreport update-freq=1 ! fakesink silent=true > > progressreport shows a duration of 2 seconds. I didn't look too deply, but that appears to be the duration according to the avi header. > If I use filesrc instead of souphttpsrc 596 seconds is reported > as expected. Sure, in that case it can read additional info from the end as well (like the indices). Try: souphttpsrc ... ! queue2 temp-template=/tmp/foo-XXXXXX ! avidemux ....
Hi Tim, I know it works in push mode, I was just wondering if avidemux is bugged in push mode or if the wrong duration in the AVI file can be worked around. I'm using gstreamer on a system with limited memory and no local storage, so the queue file buffering is not an option.
I meant I know it works in pull mode obviously.
I have checked all the other AVI files I have that exhibit this behaviour and as you say, the number of frames in the stream is wrong for all of them. A simple solution to my issue would be to make souphttpsrc in pull mode. Is that planned in the future ? Thanks
HTTP in pull mode would be rather ugly. Every pull request (of which there are a lot) would require a round-trip to the server, which can be 100s of ms across the internet. Smart caching and readahead would make this somewhat better, but not much. If you want the capabilities of a streaming or play-while-downloading format, you need to use such a format, such as Ogg, Matroska, MPEG-TS, FLV, or ISO/QuickTime.
Too intrusive a change to make for files with incorrect information in the first place. Closed as WONTFIX.