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 331817 - [0.10] thumbnailer fails on .avis with wrong duration values
[0.10] thumbnailer fails on .avis with wrong duration values
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: GStreamer backend
1.3.x
Other Linux
: Normal normal
: ---
Assigned To: Maintainer alias for GStreamer component of Totem
Maintainer alias for GStreamer component of Totem
Depends on:
Blocks:
 
 
Reported: 2006-02-19 22:06 UTC by Sebastien Bacher
Modified: 2006-03-03 17:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Sebastien Bacher 2006-02-19 22:06:04 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"
Comment 1 Tim-Philipp Müller 2006-02-20 09:52:38 UTC
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.
Comment 2 Tim-Philipp Müller 2006-03-02 20:10:04 UTC
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.
Comment 3 Tim-Philipp Müller 2006-03-03 17:52:56 UTC
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).