|
I built opencv+gstreamer and now i'm trying to run pipeline using next code:
cv::VideoCapture cap("udpsrc port=5000 ! application/x-rtp,media=video, payload=26,encoding-name=JPEG,framerate=30/1 ! rtpjpegdepay ! jpegdec ! videoconvert ! appsink", cv::CAP_GSTREAMER);
But it don't work and GST_DEBUG gives me next verbose (there are just WARNS):
0:00:00.091552122 6712 00482000 WARN filesrc gstfilesrc.c:533:gst_file_src_start:<source> error: No such file "C:\Users\Yumatov\Documents\build-testgstopencv-Desktop_Qt_5_12_2_MinGW_32_bit-Debug\udpsrc port=5000 ! application\x-rtp,media=video, payload=26,encoding-name=JPEG,framerate=30\1 ! rtpjpegdepay ! jpegdec ! videoconvert ! appsink"
0:00:00.091614363 6712 00482000 INFO GST_ERROR_SYSTEM gstelement.c:2141:gst_element_message_full_with_details:<source> posting message: Resource not found.
0:00:00.091671639 6712 00482000 INFO GST_ERROR_SYSTEM gstelement.c:2168:gst_element_message_full_with_details:<source> posted error message: Resource not found.
0:00:00.091719644 6712 00482000 WARN basesrc gstbasesrc.c:3469:gst_base_src_start:<source> error: Failed to start
0:00:00.093382284 6712 00482000 INFO filesrc gstfilesrc.c:468:gst_file_src_start:<source> opening file C:\Users\Yumatov\Documents\build-testgstopencv-Desktop_Qt_5_12_2_MinGW_32_bit-Debug\udpsrc port=5000 ! application\x-rtp,media=video, payload=26,encoding-name=JPEG,framerate=30\1 ! rtpjpegdepay ! jpegdec ! videoconvert ! appsink
0:00:00.093470680 6712 00482000 WARN filesrc gstfilesrc.c:533:gst_file_src_start:<source>
error: No such file "C:\Users\Yumatov\Documents\build-testgstopencv-Desktop_Qt_5_12_2_MinGW_32_bit-Debug\udpsrc port=5000 ! application\x-rtp,media=video, payload=26,encoding-name=JPEG,framerate=30\1 ! rtpjpegdepay ! jpegdec ! videoconvert ! appsink"
0:00:00.093608736 6712 00482000 INFO GST_ERROR_SYSTEM gstelement.c:2141:gst_element_message_full_with_details:<source> posting message: Resource not found.
0:00:00.093666674 6712 00482000 INFO GST_ERROR_SYSTEM gstelement.c:2168:gst_element_message_full_with_details:<source> posted error me
ssage: Resource not found.
0:00:00.093716666 6712 00482000 WARN basesrc gstbasesrc.c:3469:gst_base_src_start:<source> error: Failed to start
0:00:00.093772286 6712 00482000 INFO GST_ERROR_SYSTEM gstelement.c:2141:gst_element_message_full_with_details:<source> posting message: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
0:00:00.093825588 6712 00482000 INFO GST_ERROR_SYSTEM gstelement.c:2168:gst_element_message_full_with_details:<source> posted error message: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Desktop_Qt_5_12_2_MinGW_32_bit-Debug\udpsrc port=5000 ! application\x-rtp,media=video, payload=26,encoding-name=JPEG,framerate=30\1 ! rtpjpegdepay ! jpegdec ! videoconvert ! appsink
0:00:00.094257636 6712 00482000 WARN filesrc gstfilesrc.c:533:gst_file_src_start:<source> error: No such file "C:\Users\Yumatov\Documents\build-testgstopencv-Desktop_Qt_5_12_2_MinGW_32_bit-Debug\udpsrc port=5000 ! application\x-rtp,media=video, payload=26,encoding-name=JPEG,framerate=30\1 ! rtpjpegdepay ! jpegdec ! videoconvert ! appsink"
0:00:00.094322857 6712 00482000 INFO GST_ERROR_SYSTEM gstelement.c:2141:gst_element_message_full_with_details:<source> posting message: Resource not found.
0:00:00.094376822 6712 00482000 INFO GST_ERROR_SYSTEM gstelement.c:2168:gst_element_message_full_with_details:<source> posted error message: Resource not found.
0:00:00.094424496 6712 00482000 WARN basesrc gstbasesrc.c:3469:gst_base_src_start:<source> error: Failed to start
0:00:00.094479123 6712 00482000 INFO GST_ERROR_SYSTEM gstelement.c:2141:gst_element_message_full_with_details:<source> posting message: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
0:00:00.094531101 6712 00482000 INFO GST_ERROR_SYSTEM gstelement.c:2168:gst_element_message_full_with_details:<source> posted error message: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
0:00:00.094578113 6712 00482000 WARN basesrc gstbasesrc.c:3824:gst_base_src_activate_push:<source> Failed to start in push mode
0:00:00.094624794 6712 00482000 INFO GST_PADS gstpad.c:1277:activate_mode_internal:<source:src> failed to activate in push mode
0:00:00.094670151 6712 00482000 WARN GST_PADS gstpad.c:1142:gst_pad_set_active:<source:src> Failed to activate pad
This pipeline works using gst-launch... My system: win7, mingw32, opencv 4.1.0
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
|