gscam
gscam copied to clipboard
noetic critical errors
I'm trying to get running gscam on ros noetic.
I cloned this repo, installed all gstreamer dependencies and built the package with required CMake flag -DGSTREAMER_VERSION_1_x=On
.
The camera provides an udp-stream. I'm able to recieve the data using gstreamer directly: gst-launch-1.0 -v udpsrc port=5012 caps="application/x-rtp,encoding-name=H264,payload=96" ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! decodebin ! videoconvert ! autovideosink
.
When I try the same with the gscam node, I export GSCAM_CONFIG="udpsrc port=5012 caps="application/x-rtp,encoding-name=H264,payload=96" ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! decodebin ! videoconvert"
and run rosrun gscam gscam
and my terminal become flooded with error messages:
(gscam:122311): GStreamer-CRITICAL **: 09:29:45.330: gst_buffer_get_sizes_range: assertion 'GST_IS_BUFFER (buffer)' failed
** (gscam:122311): CRITICAL **: 09:29:45.330: gst_queue_array_peek_nth: assertion 'idx < array->length' failed
What I'm doing wrong?
did you ever get this solved ?
same issue, was working fine on melodic
This is the fix for noetic.
https://github.com/ros-drivers/gscam/pull/61/files#diff-ffaf92757bf8311b71143424da20297eb8f8ff84f9c4c45c646327a59f243347