Issue with caps from string in only one case

Brendan Long self at brendanlong.com
Mon Jul 29 09:56:48 PDT 2013


On 07/27/2013 08:32 AM, Max Sarajlija wrote:
>
> Then after 'caps = Gst.Caps.from_string(capsString)' i tried 'print
> caps.to_string()' and i got nothing.
>
If caps is None, it probably means it wasn't able to parse your input.

> videotestsrc is-live=true name=source ! identity name=identity
> silent=TRUE ! video/x-raw format=(string)I420 width=320 height=240
> framerate=(fraction)5/1 pixel-aspect-ratio=(fraction)1/1
The (string) and (fraction) parts of this are suspicious. Does it work
if you use this:

videotestsrc is-live=true name=source ! identity name=identity
silent=TRUE ! video/x-raw format=I420 width=320 height=240 framerate=5/1
pixel-aspect-ratio=1/1


More information about the gstreamer-devel mailing list