ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Gscam can't find udpsrc, but gstreamer works fine

asked 2018-08-07 09:29:53 -0600

nirnakern gravatar image

Hi, I'm trying to use gscam ( http://wiki.ros.org/gscam ) with a camera connected via ethernet to my laptop running Ubuntu16.04, ROS kinetic and gstreamer 1.0.

I'm able to properly start gstreamer and see the stram window using the command:

gst-launch-1.0 udpsrc caps="application/x-rtp,media=video,clock-rate=90000,encoding-name=H264, payload=96" port=5002 ! rtph264depay  ! video/x-h264,framerate=24/1,width=640,height=480 ! queue ! avdec_h264 ! videoconvert ! autovideosink sync=FALSE

but following the gscam instuction, running the command:

export GSCAM_CONFIG="udpsrc caps="application/x-rtp,media=video,clock-rate=90000,encoding-name=H264,payload=96" port=5002 ! rtph264depay  ! video/x-h264,framerate=24/1,width=640,height=480 ! decodebin ! videoconvert"

and then:

rosrun gscam gscam

I get the error:

[FATAL] [1533651268.132080791]: no element "udpsrc"
[FATAL] [1533651268.132104353]: Failed to initialize gscam stream!

This happens both when installing gscam using:

sudo apt-get install ros-kinetic-gscam

and compiling it from source using catkin

Can anyone please help me?

edit retag flag offensive close merge delete

Comments

I'm having the same problem. Will let you know if I find a solution.

danzimmerman gravatar image danzimmerman  ( 2018-10-26 12:57:02 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-10-26 13:23:41 -0600

danzimmerman gravatar image

I had the same error with the same setup.

It's working now with gstreamer1.0 installed and gscam built from source with the -DGSTREAMER_VERSION_1_x=On flag as described here:

https://habr.com/post/415735/

I'm also streaming a hardware-encoded h264 camera similar to this question, where I found the article above:

https://answers.ros.org/question/2954...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-08-07 09:29:53 -0600

Seen: 1,521 times

Last updated: Oct 26 '18