set caps in a program
Thomas Scheuermann
scheuermann at barco.com
Tue Nov 5 22:59:43 PST 2013
Am 05.11.2013 16:46, schrieb Sebastian Dröge:
> On Di, 2013-11-05 at 16:35 +0100, Thomas Scheuermann wrote:
>> Hello,
>>
>> How can I set caps in a program?
>> I want to do something like this:
>> gst-launch-1.0 videotestsrc pattern=0 !
>> "video/x-raw,width=1920,height=1080,framerate=60/1" ! xvimagesink
>> I create the videotestsrc element with gst_element_factory_make but I
>> don't know how I can then set the caps on the "src" pad of the
>> videotestsrc element.
>> Is there an example anywhere?
> The caps string in the parse-launch syntax is just a shortcut to insert
> a capsfilter element.
>
> In your code you could instantiate a capsfilter element, and set the
> caps you want via the "caps" property of it. Then properly link it
> between source and sink like any other element.
Thanks, I've got it running this way.
This message is subject to the following terms and conditions: MAIL DISCLAIMER<http://www.barco.com/en/maildisclaimer>
More information about the gstreamer-devel
mailing list