GNOME Bugzilla – Bug 331817
[0.10] thumbnailer fails on .avis with wrong duration values
Last modified: 2006-03-03 17:52:56 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/totem/+bug/29962 "In Dapper Current: $ apt-cache policy totem-gstreamer totem-gstreamer: Installed: 1.3.1-0ubuntu5 Candidate: 1.3.1-0ubuntu5 Thumbnails are failing to be generated on some MPEG video files that are playable by totem-gstreamer. There was also this: Jan 26 01:33:37 localhost kernel: [273127.347595] gnome-video-thu[18047] trap int3 rip:2aaab00f7dee rsp:7fffffb03ae0 error:0 But only once. ... > Thanks for your bug. What version of Ubuntu do you use? Do you still have that issue? Do you have some online example to point? ... Hello Sebastien. I confirm this issue with most (all ?) video files in Ubuntu Dapper (dist-upgraded today). They are played perfectly with Totem but never thumbnailed. Just one example : http://www.baleineprod.com/videos/cybercool/Cybercool_Episode_1.avi"
Looks like the mpeg demuxer returns a bogus length or at least a highly wrong length, and the video thumbnailer then tries to seek to 30% of that, which is beyond the total length of the movie.
Actually, these are (obviously) avi files, I don't know why I was talking about mpeg demuxers. The avi demuxer returns a length of 2m 5s on the video pad, and 405m 47s on the audio pad and the duration query in the video thumbnailer seems to pick up the wrong one. Got to investigate some more how to best hack around that.
Fixed in gst-plugins-good CVS: 2006-03-03 Tim-Philipp Müller <tim at centricular dot net> * gst/avi/gstavidemux.c: (gst_avi_demux_handle_src_query), (gst_avi_demux_handle_src_event), (gst_avi_demux_parse_stream), (gst_avi_demux_calculate_durations_from_index), (gst_avi_demux_stream_header): * gst/avi/gstavidemux.h: If we have an index, use a duration based on the index instead of blindly trusting the information in the stream headers (fixes #331817).