how to set array type property from command line

Stirling Westrup swestrup at gmail.com
Wed Apr 23 14:35:52 PDT 2014


On Wed, Mar 19, 2014 at 8:32 AM, Yogesh Tyagi <yogesh.bit2006 at gmail.com>wrote:

> Hi,
>
> I was trying to set array type propery from gst-launch in my plugin:
>
> gst-launch filesrc location=history.ts  ! demux name=d ! mpeg2_viddec
> ! vidsink 'crop-window=[10,10]' d. ! audio_sink
>
> "crop-window" takes two values but I am getting following error:
>
> WARNING: erroneous pipeline: could not set property "crop-window" in
> element "gstvidsink0" to "[10,10]"
>
> What is the correct way to set array type property from command line?
>
> [10,10] is a range specifier and means "all the numbers from 10 to 10".

What you want to provide is a pair of numbers, and that uses {}.

So try:

gst-launch filesrc location=history.ts  ! demux name=d ! mpeg2_viddec
! vidsink 'crop-window={10,10}' d. ! audio_sink


-- 
Stirling Westrup
Programmer, Entrepreneur.
https://www.linkedin.com/e/fpf/77228
http://www.linkedin.com/in/swestrup
http://technaut.livejournal.com
http://sourceforge.net/users/stirlingwestrup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140423/79c4d71f/attachment-0001.html>


More information about the gstreamer-devel mailing list