Gstreamer and scrollarea
Unsolved
General and Desktop
-
I'm using gstreamer how can i put the camera stream in a ui->scrollarea?
gst_init(nullptr, nullptr); GstElement *pipeline = gst_parse_launch("udpsrc port=5200 ! application/x-rtp, media=video, clock-rate=90000, payload=96 ! rtpjpegdepay ! jpegdec ! videoconvert ! autovideosink", nullptr); gst_element_set_state(pipeline, GST_STATE_PLAYING); GstBus *bus = gst_element_get_bus(pipeline); GstMessage *msg = gst_bus_timed_pop_filtered(bus, GST_CLOCK_TIME_NONE, static_cast<GstMessageType>(GST_MESSAGE_ERROR | GST_MESSAGE_EOS)); gst_message_unref(msg); gst_object_unref(bus); gst_element_set_state(pipeline, GST_STATE_NULL); gst_object_unref(pipeline);
-
I'm using gstreamer how can i put the camera stream in a ui->scrollarea?
gst_init(nullptr, nullptr); GstElement *pipeline = gst_parse_launch("udpsrc port=5200 ! application/x-rtp, media=video, clock-rate=90000, payload=96 ! rtpjpegdepay ! jpegdec ! videoconvert ! autovideosink", nullptr); gst_element_set_state(pipeline, GST_STATE_PLAYING); GstBus *bus = gst_element_get_bus(pipeline); GstMessage *msg = gst_bus_timed_pop_filtered(bus, GST_CLOCK_TIME_NONE, static_cast<GstMessageType>(GST_MESSAGE_ERROR | GST_MESSAGE_EOS)); gst_message_unref(msg); gst_object_unref(bus); gst_element_set_state(pipeline, GST_STATE_NULL); gst_object_unref(pipeline);
@micheal15 use GstGLVideoItem as sink to add to and display your pipeline.
An example can be found here:
https://github.com/GStreamer/gst-plugins-good/blob/master/tests/examples/qt/qmlsink/main.qml