I'm streaming udp video by using my picamera, using UAVcast. I can get this video from PC, but i can't get the video from raspberry pi. I got this stream in my PC using .sdp file. The same code i run in raspberry pi i get this error:
[rtp @ 0x1368680] Protocol 'rtp' not on whitelist 'file,crypto'! Unable to stop the stream: Inappropriate ioctl for device OpenCV(3.4.0-dev) Error: Unspecified error (GStreamer: unable to start pipeline ) in cvCaptureFromCAM_GStreamer, file /home/pi/opencv/modules/videoio/src/cap_gstreamer.cpp, line 890 VIDEOIO(cvCreateCapture_GStreamer (CV_CAP_GSTREAMER_FILE, filename)): raised OpenCV exception:
OpenCV(3.4.0-dev) /home/pi/opencv/modules/videoio/src/cap_gstreamer.cpp:890: error: (-2) GStreamer: unable to start pipeline in function cvCaptureFromCAM_GStreamer
OpenCV(3.4.0-dev) Error: Assertion failed (size.width>0 && size.height>0) in imshow, file /home/pi/opencv/modules/highgui/src/window.cpp, line 356 Traceback (most recent call last): File "cam3.py", line 19, in <module> cv2.imshow('frame',frame) cv2.error: OpenCV(3.4.0-dev) /home/pi/opencv/modules/highgui/src/window.cpp:356: error: (-215) size.width>0 && size.height>0 in function imshow
I've built opencv with support of gstreamer 0.1 and ffmpeg.
This is cmake results:
" Video I/O:\n" " DC1394: YES (ver 2.2.5)\n" " FFMPEG: YES\n" " avcodec: YES (ver 58.10.100)\n" " avformat: YES (ver 58.9.100)\n" " avutil: YES (ver 56.7.100)\n" " swscale: YES (ver 5.0.101)\n" " avresample: NO\n" " GStreamer: \n" " base: YES (ver 0.10.36)\n" " video: YES (ver 0.10.36)\n" " app: YES (ver 0.10.36)\n" " riff: YES (ver 0.10.36)\n" " pbutils: YES (ver 0.10.36)\n" " libv4l/libv4l2: NO\n" " v4l/v4l2: linux/videodev2.h\n" " gPhoto2: YES\n"
If someone can help to solve this headache problem, i'll be very glad ! Best Regards...