[gst-devel] How can I set properties of plugins, loaded by playbin2, launched with gst-launch?

Stefan Kost ensonic at hora-obscura.de
Mon Mar 15 09:46:09 CET 2010


Am 15.03.2010 10:26, schrieb wl2776:
> 
> 
> Stefan Kost wrote:
>>
>>> This loads my custom rtspsrc plugin, situated in the current directory.
>>> I'd like to set its 'debug' property to true.
>>
>> gst-launch --gst-plugin-path=`pwd` --gst-debug=rtspsrc:5 playbin2
>> uri=rtsp://192.168.24.21/1286_bbc_world_news_2009_06_04_22_00_000.mpg
>> rtspsrc
>> 0::debug=true
>>
>> if your instance of rtspsrc is called "rtspsrc0".
>>
> 
> Unfortunately, this doesn't work. 
> playbin2 creates the element "source", but playbin2 creates the rtspsrc much
> after gst-launch parses the command line.


thant should not be a problem. gst-launch keeps pending set() actions until the
eleemnt with the name has been created.

Stefan

> 
> Log says the following
> 
> 0:00:00.172492876  4127  0x8428050 DEBUG    GST_ELEMENT_FACTORY
> gstelementfactory.c:425:gst_element_factory_create: created element
> "playbin2"
> 0:00:00.172511292  4127  0x8428050 DEBUG           GST_PIPELINE
> parse.l:141:_gst_parse_yylex: flex: SPACE: [ ]
> 0:00:00.172526010  4127  0x8428050 DEBUG           GST_PIPELINE
> parse.l:75:_gst_parse_yylex: flex: ASSIGNMENT:
> uri=rtsp://192.168.24.21/1286_bbc_world_news_2009_06_04_22_00_000.mpg
> 0:00:00.172555820  4127  0x8428050 DEBUG               playbin2
> gstplaybin2.c:1169:gst_play_bin_set_uri: set new uri to
> rtsp://192.168.24.21/1286_bbc_world_news_2009_06_04_22_00_000.mpg
> 0:00:00.172576792  4127  0x8428050 DEBUG           GST_PIPELINE
> parse.l:141:_gst_parse_yylex: flex: SPACE: [ ]
> 0:00:00.172591013  4127  0x8428050 DEBUG           GST_PIPELINE
> parse.l:75:_gst_parse_yylex: flex: ASSIGNMENT: source::debug=true
> 0:00:00.172611478  4127  0x8428050 INFO                 default
> gstchildproxy.c:195:gst_child_proxy_lookup: no such object source
> 0:00:00.172637905  4127  0x8428050 DEBUG           GST_PIPELINE
> parse.l:141:_gst_parse_yylex: flex: SPACE: [ ]
> 0:00:00.172662693  4127  0x8428050 DEBUG           GST_PIPELINE
> ./grammar.y:884:_gst_parse_launch: got 1 elements and 0 links
> [ skip ]
> 0:00:00.178681232  4127  0x8428050 INFO      GST_PLUGIN_LOADING
> gstplugin.c:658:gst_plugin_load_file: plugin
> "/home/wl/AVIK/player/rtspsrc/src/.libs/libgstrtsp.so" loaded
> 0:00:00.178705080  4127  0x8428050 DEBUG     GST_PLUGIN_LOADING
> gstpluginfeature.c:114:gst_plugin_feature_load: loaded plugin rtsp
> 0:00:00.178723241  4127  0x8428050 INFO     GST_ELEMENT_FACTORY
> gstelementfactory.c:400:gst_element_factory_create: creating element
> "rtspsrc" named "source"
> 0:00:00.178745758  4127  0x8428050 DEBUG                default
> gstelement.c:268:gst_element_base_class_init: type GstRTSPSrc : factory
> 0x8558090
> 0:00:00.179068806  4127  0x8428050 DEBUG                GST_BUS
> gstbus.c:194:gst_bus_init:<GstBus at 0x847e658> created
> 
> 





More information about the gstreamer-devel mailing list