<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 19, 2014 at 8:32 AM, Yogesh Tyagi <span dir="ltr"><<a href="mailto:yogesh.bit2006@gmail.com" target="_blank">yogesh.bit2006@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I was trying to set array type propery from gst-launch in my plugin:<br>
<br>
gst-launch filesrc location=history.ts  ! demux name=d ! mpeg2_viddec<br>
! vidsink 'crop-window=[10,10]' d. ! audio_sink<br>
<br>
"crop-window" takes two values but I am getting following error:<br>
<br>
WARNING: erroneous pipeline: could not set property "crop-window" in<br>
element "gstvidsink0" to "[10,10]"<br>
<br>
What is the correct way to set array type property from command line?<br>
<br></blockquote></div>[10,10] is a range specifier and means "all the numbers from 10 to 10".<br><br></div><div class="gmail_extra">What you want to provide is a pair of numbers, and that uses {}.<br><br></div>
<div class="gmail_extra">So try:<br><br>gst-launch filesrc location=history.ts  ! demux name=d ! mpeg2_viddec<br>
! vidsink 'crop-window={10,10}' d. ! audio_sink<br></div><div class="gmail_extra"><br><br>-- <br>Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br>
<a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br><a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a>
</div></div>