[Bug 708034] shotwell.video.thumnail fails to create video with version other than 1.0.7

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Sep 17 14:26:09 PDT 2013


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

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEEDINFO
                 CC|                            |t.i.m at zen.co.uk

--- Comment #4 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2013-09-17 21:26:06 UTC ---
> class ShotwellThumbnailer {
>   const string caps_string = """video/x-raw,format=RGB,bpp=32,depth=32,pixel-aspect-ratio=1/1""";

In 1.0 the bpp/depth is expressed through the format string. If you want bpp=32
and depth=32 you want ARGB or RGBA or somesuch. If you want bpp=32 and depth=24
you want format=RGBx or xRGB or xBGR or somesuch. If you want bpp=24 and
depth=24 then format=RGB is ok.

So these caps are broken, because if you specify those bpp/depth fields it
means they *must* be present now in 1.x. The patch that enforces this strictly
was backported to the 1.0 branch after  much testing because it fixes other
important things. Unfortunately it breaks cases like this with broken caps.
Sorry.

Please try removing the bpp/depth fields and see if that helps.

Btw, you could simplify your code a lot by using gdkpixbufsink from
gst-plugins-good.

Then you just do

 1) seek
 2) wait for ASYNC_DONE on the bus, or do a get_state() with a timeout and wait
for it to return SUCCESS
 4) read the "last-pixbuf" property of the gdkpixbufsink
 5) hey presto, a GdkPixbuf :)

-- 
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