AW: Video parameters in C Code
Thornton, Keith
keith.thornton at zeiss.com
Mon Jan 22 13:36:45 UTC 2018
Hi, like this
recordingFilter = gst_element_factory_make("capsfilter", "filter");
gst_object_ref(GST_OBJECT(recordingFilter));
GstCaps* caps_YUY2 = gst_caps_new_simple("video/x-raw",
"width", G_TYPE_INT, VIDEO_RES_HD1080P_WIDTH,
"height", G_TYPE_INT, VIDEO_RES_HD1080P_HEIGHT,
"framerate", GST_TYPE_FRACTION, m_incomingFramerateNumerator, m_incomingFramerateDenominator,
"format", G_TYPE_STRING, "YUY2",
nullptr);
g_object_set(G_OBJECT(recordingFilter), "caps", caps_YUY2, static_cast<char *>(nullptr));
gst_caps_unref(caps_YUY2);
-----Ursprüngliche Nachricht-----
Von: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] Im Auftrag von chrisplus3
Gesendet: Montag, 22. Januar 2018 14:20
An: gstreamer-devel at lists.freedesktop.org
Betreff: Video parameters in C Code
Hey there,
simple question:
How can I add these parameters to my pipeline in C:
"... ! video/x-raw, width=1280, height=800 ! ..."
This is copied from the fully functional gst-launch command with the following elements:
udpsrc ! rtpjpegdepay ! jpegparse ! imxvpudec ! ... <HERE> ... !
imxg2dvideosink
Are these parameters properties or caps of a specific element ?
Thanks in advance
Christian
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list