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 638781 - Video hangs on seek with FLUSH flag
Video hangs on seek with FLUSH flag
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
unspecified
Other Linux
: Normal critical
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-01-05 22:57 UTC by Eric Gregory
Modified: 2011-10-04 23:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GStreamer log (418.54 KB, application/x-gzip)
2011-01-06 00:13 UTC, Eric Gregory
Details

Description Eric Gregory 2011-01-05 22:57:31 UTC
In Shotwell, we create video thumbnails by doing a seek through a file, then capturing the buffer to a Pixbuf.  Our seek uses a FLUSH flag because many GStreamer codecs seem to require it.

However, we've had to disable it due to a problem with a voice annotation video generated by a Sony camera.  The video plays correctly in Totem, but when we try to create a thumbnail it hangs on the line:
thumbnail_pipeline.seek_simple(Gst.Format.TIME, Gst.SeekFlags.NONE, video_length / 3);

This bug is not specific to Shotwell; the following code sample has the same problem:
http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/tests/examples/snapshot/snapshot.c

The issue only occurs for me when the "ugly" plugins are installed on my Maverick box.


For more information, see this bug in the Yorba ticket database:
http://trac.yorba.org/ticket/3041

This is the file having the issue:
http://trac.yorba.org/attachment/ticket/3041/DSC09210.MPG
Comment 1 Tim-Philipp Müller 2011-01-05 23:37:51 UTC
I can't reproduce this with the -base/tests/examples/snapshot program (neither with the mpeg demuxer from -bad nor with the one from -ugly).

Could you attach a GST_DEBUG=*:5 log please so we know what plugins are used exactly?

Could you test with git please?




> Our seek uses a FLUSH flag because many
> GStreamer codecs seem to require it.

It also makes more sense than not using it in this case.


> However, we've had to disable it due to a problem with a voice annotation video
> generated by a Sony camera.

That doesn't seem like a good reason not use it (It should work either way of course, but the FLUSH code path is *way* more tested because that's what's used when seeking in media players).
Comment 2 Eric Gregory 2011-01-06 00:13:09 UTC
Created attachment 177628 [details]
GStreamer log
Comment 3 Eric Gregory 2011-01-06 00:16:49 UTC
I've attached a log as requested.  I'll try building GStreamer from trunk later this week and testing with the latest and greatest.
Comment 4 Fabio Durán Verdugo 2011-02-21 04:56:04 UTC
the information is provide, reopening...
Comment 5 Edward Hervey 2011-05-16 18:43:24 UTC
Eric, does it work better with latest releases ?
Comment 6 Eric Gregory 2011-05-16 18:52:16 UTC
We've actually moved creating video thumbnails into a separate process.  Last I checked was in Ubuntu Maverick, where the problem occurred 100% of the time.

I discovered something that might be of interest to you, however; when testing with the sample video (in the initial description) I was able to stop GStreamer from hanging with the same code by switching from time-based positioning to a percentage.
Comment 7 Tobias Mueller 2011-10-04 23:15:03 UTC
So I assume this to be OBSOLETE. Please reopen if this is still an issue.