ros-drivers / video_stream_opencv

A package to open video streams and publish them in ROS using the opencv videocapture mechanism
227 stars 159 forks source link

Feature Request: switch between UDP and TCP Mode #86

Closed majorx234 closed 3 years ago

majorx234 commented 3 years ago

Rtsp streams are also possible over udp. I've found just a workarround to set ENV-Variable: export OPENCV_FFMPEG_CAPTURE_OPTIONS="rtsp_transport;udp" bevor starting node via rosrun.

Would be nice to have a direct parameter in node for setting UDP mode.

awesomebytes commented 3 years ago

That seems to be pretty deep into the OpenCV backend. Exposing every possible options from the OpenCV backends (that may or not be used, for example some systems use gstreamer as backend) can be a lot of work.

I am very grateful that you posted here your workaround, though. It may help other people in the same situation. Thank you!