[gst-devel] Converting a gst-launch pipeline to C code

MSJ mauricio_sj at yahoo.com
Mon Oct 5 23:10:12 CEST 2009



Tim-Philipp Müller wrote:
> 
> An async-done message just means that the pipeline has prerolled and
> data has made it through to all the sinks.
> 
> No idea why things work if you remove either of those statements, but
> the easiest way to see what's happening is usually to follow the data:
> if a pipeline doesn't preroll, data doesn't make it to one of the sinks,
> so you should figure out where it doesn't get through. This (equivalent
> to gst-launch's -v switch) might provide some pointers in the right
> direction:
> 
>     g_signal_connect (pipeline, "deep-notify",
>         G_CALLBACK (gst_object_default_deep_notify), NULL);
> 

Thanks, I see at this point that my Video Sink is not responding in the
non-working case compared to the working scenario; although I haven't been
able to figure why.


Tim-Philipp Müller wrote:
> 
> You might also consider adding the audio/video bin only in the callback
> when you get the pad you will link them to (don't forget to do
> gst_element_set_state(blabin,GST_STATE_PLAYING) then after you
> gst_bin_add()ed it).
> 

No effect at all, the result is the same, i.e. individually video and audio
work but not together.


Tim-Philipp Müller wrote:
> 
> Just to be sure: you know about gst_parse_launch() and
> gst_parse_bin_from_description(), right?
> 
> Also, any reason you're not using uridecodebin or playbin2 here?
> 
> Cheers
>  -Tim
> 
Not sure about the first question.  I know that when using gst-launch I
don''t have any issues trying to do the same, is only when coding into C
that I have the issue.
WRT to the second question, I was trying to follow the tutorial, and I am
not sure if I can specify my own codecs for this elements or not.

Thanks for the qnswers.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



-- 
View this message in context: http://www.nabble.com/Converting-a-gst-launch-pipeline-to-C-code-tp19728759p25757016.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.





More information about the gstreamer-devel mailing list