WHOIGit / PhytO-ARM

PhytO-ARM: Phytoplankton Observing for Automated Real-time Management
https://hablab.whoi.edu/phyto-arm/
GNU General Public License v3.0
0 stars 0 forks source link

RTSP to ROS streaming is not working in container #8

Closed rgov closed 1 year ago

rgov commented 1 year ago
[rtsp @ 0x55c712b030] method DESCRIBE failed: 404 Not Found
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1758) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module source reported: Could not open resource for reading.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (888) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[ERROR:0] global ../modules/videoio/src/cap.cpp (116) open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.2.0) ../modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): rtsp://.../ in function 'icvExtractPattern'

This is after I installed GStreamer packages into the container, or else it didn't know how to open an rtsp URL

rgov commented 1 year ago

I was able to get it to work with the CAM220IP RTSP URL rtsp://admin:1234@192.168.13.30/h264 which is undocumented in the product manual, and when multiple customers asked Raymarine directly about this they didn't just post the information where it could be found with search engines later.

rgov commented 1 year ago

This was fixed by https://github.com/WHOIGit/ros-rtsp-camera/commit/1edf936a0944c4d5c5570ad0f7d391af093d138e.