[gst-devel] playbin2 properties

Stefan Kost ensonic at hora-obscura.de
Thu Aug 5 23:32:10 CEST 2010


Am 23.07.2010 08:35, schrieb Zhao, Halley:
> I tried:
> gst_child_proxy_set(GST_OBJECT(playbin), "audiosink::buffer-time", 3000000, NULL);
> however, it returns with warning:
> "no property audiosink::buffer-time in object player"
> Similar warning for "audio-sink::mute".
> 
When are you doing it. Maybe the audiosink has not yet been created.

Stefan
> 
> 
> -----Original Message-----
> From: Stefan Kost [mailto:ensonic at hora-obscura.de] 
> Sent: 2010年6月4日 4:48
> To: Discussion of the development of GStreamer
> Subject: Re: [gst-devel] playbin2 properties
> 
> Am 03.06.2010 20:59, schrieb pl bossart:
>>>> Is there a trick to set those properties on the sink without changing
>>>> the code?
>>> You can use gst_child_proxy_set(), or just read the audio_sink property
>>> and do g_object_set() there.
>>
>> I understand that there's support to get/set the properties of a
>> child, but what I really wanted is to have the child properties show
>> as part of the ntaive ones supported by playbin2. For example
>> gst-inspect playbin2 would return audiosink::buffer-latency, 
> 
> that does not work as the ontent of a bin might be dynamic.
> 
> and
>> likewise gst-launch playbin2 uri=<> audiosink::buffer-latency=100000
>> would set the audio sink property.
> 
> that works (its a parse_launch feature). You can also use fully pipeline for
> gstelement arguments:
> gst-launch playbin2 uri=<> audio-sink="audiodelay ! pulsesink"
> 
> Stefan
> 
>>
>> ------------------------------------------------------------------------------
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate 
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
>> lucky parental unit.  See the prize list and enter to win: 
>> http://p.sf.net/sfu/thinkgeek-promo
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 
> 
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate 
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
> lucky parental unit.  See the prize list and enter to win: 
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list