Ask Your Question
1

Translate RTSP over UDP stream into ROS messages

asked 2018-05-24 04:16:23 -0500

fiorellasibona gravatar image

Hi everyone! I have searched the Web in order to find out whether a cheap IP camera stream, which sends data using RTSP over UDP (it is an ONVIF camera), can be read and translated into ROS message, that will be somehow processed (e.g. for object recognition etc.)

  • My first search was related to OpenCV but it turned out that OpenCV does not support RTSP over UDP. I'd like to work using Python programming language but I cannot manage to understand if there is a way to connect to my camera.
  • Many solutions I have found are RTSP/TCP based so the error which pops-up is the typical "Nonmatching transport in server reply".
  • I also was wondering if the axis_camera package can be used for controlling any ONVIF compliant IP cameras.

Are there any ideas?

Thank you,

Fiorella

(I am working with ROS Kinetic on Ubuntu 16.04)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-05-24 04:59:46 -0500

gvdhoorn gravatar image

I believe gscam can do this. GStreamer supports rtsp and can open those streams (it claims to also be able to open UDP streams).

gscam is not necessarily easy to get to work, but it's one of the few pkgs that I know of that can do this.

Tip: get things working with plain gstreamer first. Then transfer the working config to gscam.

edit flag offensive delete link more

Comments

Thanks for the tip, indeed I excluded gstream as a solution since I hoped there was an easier/off-the-shelf solution. Anyways I'll give a try and in case of success I'll certainly share my solution!

fiorellasibona gravatar image fiorellasibona  ( 2018-05-24 08:37:10 -0500 )edit

Negative results are also results, so please let us know in either case.

gvdhoorn gravatar image gvdhoorn  ( 2018-05-24 10:38:10 -0500 )edit

You're right...as soon as I'll get any kind of result I'll be happy to share it!

fiorellasibona gravatar image fiorellasibona  ( 2018-05-24 10:49:40 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-05-24 04:16:23 -0500

Seen: 839 times

Last updated: May 24 '18