[Bug 697986] Could not take screenshot: failed to retrieve or convert video frame

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Mar 28 08:24:03 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=697986
  GStreamer | don't know | 1.x

--- Comment #10 from Bastien Nocera <bugzilla at hadess.net> 2014-03-28 15:49:58 UTC ---
(In reply to comment #9)
> (In reply to comment #8)
> > All the AVI and MP4 videos I tried on my system failed in the same way. MKV
> > seemed to work.
> > 
> > Maybe a demuxer problem?
> 
> Thanks, just didn't understand that from the initial problem.

The last frame we seek to when creating a gallery in totem-video-thumbnailer
fails to get captured. Reproducer's in comment 3.

> And is these seek accurate or not ?

"GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT" is what totem-video-thumbnailer
uses right now.

Using "GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE" makes no difference, we
still fail to capture the last frame of our gallery.

$ totem-video-thumbnailer -v -g 3 foo.avi foo.png
TotemVideoThumbnailer-Message: Initialised libraries, about to create video
widget
TotemVideoThumbnailer-Message: setting URI
file:///home/hadess/Projects/jhbuild/totem/src/foo.avi
TotemVideoThumbnailer-Message: Video widget created
TotemVideoThumbnailer-Message: About to open video file
TotemVideoThumbnailer-Message: Opened video file: 'foo.avi'
TotemVideoThumbnailer-Message: Producing gallery of 3 screenshots, taken at
2661946 millisecond intervals throughout a 7985840 millisecond-long stream.
TotemVideoThumbnailer-Message: Outputting as 1 rows and 3 columns.
TotemVideoThumbnailer-Message: Scaling each screenshot by 0.400000.
TotemVideoThumbnailer-Message: Created output pixbuf (816x118).
TotemVideoThumbnailer-Message: Composited screenshot from 2661946 milliseconds
(address 274855472) at (12,5).
TotemVideoThumbnailer-Message: Composited screenshot from 5323892 milliseconds
(address 39850384) at (280,5).

** (totem-video-thumbnailer:14619): WARNING **: Could not take screenshot:
failed to retrieve or convert video frame

(totem-video-thumbnailer:14619): GdkPixbuf-CRITICAL **: gdk_pixbuf_composite:
assertion 'GDK_IS_PIXBUF (src)' failed

(totem-video-thumbnailer:14619): GLib-GObject-CRITICAL **: g_object_unref:
assertion 'G_IS_OBJECT (object)' failed
TotemVideoThumbnailer-Message: Composited screenshot from 7985838 milliseconds
(address 0) at (548,5).
TotemVideoThumbnailer-Message: Converting pixbuf to a Cairo surface.
TotemVideoThumbnailer-Message: Writing header text with Pango.
TotemVideoThumbnailer-Message: Writing screenshot timestamps with Pango.
TotemVideoThumbnailer-Message: Writing timestamp "44:21" at
(230.880000,170.824000).
TotemVideoThumbnailer-Message: Writing timestamp "1:28:43" at
(487.880000,170.824000).
TotemVideoThumbnailer-Message: Writing timestamp "2:13:05" at
(755.880000,170.824000).
TotemVideoThumbnailer-Message: Converting Cairo surface back to pixbuf.
TotemVideoThumbnailer-Message: Saving captured screenshot

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list