[gst-devel] How can I set properties of plugins, loaded by playbin2, launched with gst-launch?
wl2776
wl2776 at gmail.com
Mon Mar 15 09:26:46 CET 2010
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.
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
--
View this message in context: http://n4.nabble.com/How-can-I-set-properties-of-plugins-loaded-by-playbin2-launched-with-gst-launch-tp1590465p1593065.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list