How can I set capabilities on videotestsrc?
Psychesnet Hsieh
psychesnet at gmail.com
Fri Jul 31 07:05:16 UTC 2020
Hi all,
On my PC, I can run "gst-launch-1.0 videotestsrc pattern=1 ! video/x-raw,
width=1920, height=1080 ! autovideosink" to get correct result.
But, if I use C language to write a sample code, not
using gst_parse_launch, how can I set capabilities for videotestsrc? Thanks.
caps = gst_caps_new_simple ("video/x-raw",
"width", G_TYPE_INT, 1920,
"height", G_TYPE_INT, 1080,
"framerate", G_TYPE_INT, 60,
NULL);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200731/96e12751/attachment.htm>
More information about the gstreamer-devel
mailing list