Setting "convert-frame" of playbin2 using g_signal_emit_by_name()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Setting "convert-frame" of playbin2 using g_signal_emit_by_name()

Steffen Liebscher
Hi developers,

I'm trying to use

g_signal_emit_by_name(playbin2, "convert-frame", caps, &buf);

to receive images in the format I need. I set this format using

caps = gst_caps_new_simple ("video/x-raw-rgb",
             "bpp", G_TYPE_INT, 24,
             "depth", G_TYPE_INT, 24,
             "pixel-aspect-ratio", GST_TYPE_FRACTION, 1, 1,
             "endianness", G_TYPE_INT, G_BIG_ENDIAN,
             "red_mask", G_TYPE_INT, 0xff0000,
             "green_mask", G_TYPE_INT, 0x00ff00,
             "blue_mask", G_TYPE_INT, 0x0000ff,
             NULL
         );

If I pass NULL instead of caps to the function, the signal will be
emitted and everything is fine. But as soon as I change it to caps my
application stops at this function. So I assume the signal will not be
emitted. My playbin2 is in playing state and works fine so far. I'm
currently using another function that creates a second pipeline to set
the new format for me but this is very inefficient. If possible, I'd
like to use "convert-frame". I am using a gthread in my program and use
the g_signal_emit_by_name in my thread loop. Any hints why my
application freezes?

Thanks in advance,

Steffen Liebscher

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel