[gst-devel] caps parsing error in gst.parse_launch
Stefan Kost
ensonic at hora-obscura.de
Wed Apr 22 22:04:44 CEST 2009
Florent schrieb:
> Hello,
>
> I have an issue about caps declaration.
>
> My project (gst-gengui) is intended to be used in the same fashion as
> gst-launch. In other terms, my app gets all the arguments (argv) and
> concanetes them to form the same string as in command line. Then,
> gst.parse_launch launches the pipeline from the description. The
> problem is that if the string contains some "capsfilter
> caps='video/x-h264...' " there is a caps parsing error.
Please tell us what error you get :)
Stefan
>
> The only workaround i could find is to specify the caps somewhere
> else, create them and set them as property :
> 1) cap = gst.caps_from_string(caps_string)
> 2) capsfilter.set_property("caps",cap)
>
> I don't know why, but syntax is different for gst-gengui command line
> usage and in the config file.
>
> In config file, what works (no double quotes between caps) is
> declaring the description as follows (no quotes, no named capsfilter
> element):
> pipeline_desc = "videotestsrc ! video/x-raw-yuv, format=(fourcc)YUY2,
> width=(int)320, height=(int)240, framerate=(fraction)15/1 !
> ffmpegcolorspace ! videobalance ! queue ! xvimagesink"
>
> command line equivalent (quotes needed):
> gst-gengui videotestsrc ! "video/x-raw-yuv, format=(fourcc)YUY2,
> width=(int)320, height=(int)240, framerate=(fraction)50/1" ! queue !
> xvimagesink
>
> whereas gst-launch can work with
> - video/x-raw-rgb
> - "video/x-raw-rgb"
> - capsfilter caps="video/x-raw-rgb"
>
> I would be happy to find a nicer workaround than parsing the
> description string for caps and setting the caps by hand, or defining
> drastic declaration conventions...
>
> Regards,
>
> Florent
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> 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