Video parameters in C Code

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Video parameters in C Code

chrisplus3
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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

AW: Video parameters in C Code

Thornton, Keith
 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:[hidden email]] Im Auftrag von chrisplus3
Gesendet: Montag, 22. Januar 2018 14:20
An: [hidden email]
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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel