ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I solved the problem in half, help send the video stream to ROS. There are two ways to receive and translate a hardware-encoded video:
https://wiki.matthiasbock.net/index.php/Logitech_C920,_streaming_H.264
and
http://oz9aec.net/software/gstreamer/using-the-logitech-c920-webcam-with-gstreamer-12
and my generalizing article in Russian:
https://habr.com/post/415567/
As a result, according to the second variant, we get: Broadcast over the network via Gstreamer On the receiving computer, start the receiver:
gst-launch-1.0 -v udpsrc port=6666 ! application/x-rtp, encoding-name=H264 ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! autovideosink
On the device with the camera, we start the transfer of the hardware-coded video:
gst-launch-1.0 uvch264src name=src auto-start=true src.vidsrc ! video/x-h264,width=160,height=120,framerate=30/1 ! h264parse ! rtph264pay ! udpsink host=192.168.1.196 port=6666
How now to send this video stream to ROS via gscam or another method?
2 | No.2 Revision |
I solved the problem in half, help send the video stream to ROS. There are two ways to receive and translate a hardware-encoded video:
https://wiki.matthiasbock.net/index.php/Logitech_C920,_streaming_H.264
and
http://oz9aec.net/software/gstreamer/using-the-logitech-c920-webcam-with-gstreamer-12
and my generalizing article in Russian:
https://habr.com/post/415567/
As a result, according to the second variant, we get: Broadcast over the network via Gstreamer On the receiving computer, start the receiver:
gst-launch-1.0 -v udpsrc port=6666 ! application/x-rtp, encoding-name=H264 ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! autovideosink
On the device with the camera, we start the transfer of the hardware-coded video:
gst-launch-1.0 uvch264src name=src auto-start=true src.vidsrc ! video/x-h264,width=160,height=120,framerate=30/1 ! h264parse ! rtph264pay ! udpsink host=192.168.1.196 port=6666
How now to And send this video stream to ROS via gscam or another method?in my arcticle:
https://habr.com/post/415735/