GSCAM problems using UDPSRC
Hi,
I'm having some problem to get my UDP video stream to be decoded by gscam. I'm using Ubuntu 14.04.4 LTS, ROS Indigo and my gscam has been built manually using CMake flag β-DGSTREAMERVERSION1_x=Onβ.
Gstreamer video shown correct using:
gst-launch-1.0 udpsrc port=50201 ! queue ! tsdemux ! h264parse ! decodebin ! autovideosink sync=false
When I try to use gscam I do the following steps:
export GSCAM_CONFIG="udpsrc port=50201 ! tsdemux ! h264parse ! decodebin ! videoconvert β
rosrun gscam gscam
Which gives me:
[ INFO] [1607550275.742974744]: Using gstreamer config from env: "udpsrc port=50201 ! tsdemux ! h264parse ! decodebin "
[ INFO] [1607550275.747167735]: using default calibration URL
[ INFO] [1607550275.747222002]: camera calibration URL: file:///home/antwes/.ros/camera_info/camera.yaml
[ INFO] [1607550275.747358681]: Unable to open camera calibration file [/home/antwes/.ros/camera_info/camera.yaml]
[ WARN] [1607550275.747401424]: Camera calibration file /home/antwes/.ros/camera_info/camera.yaml not found.
[ INFO] [1607550275.747435716]: Loaded camera calibration from
[ WARN] [1607550275.748100046]: No camera frameid set, using frame "/cameraframe".
[ INFO] [1607550275.770456730]: Time offset: 1607526892,275
[ INFO] [1607550275.856253045]: Publishing stream...
[ INFO] [1607550275.856457401]: Started stream.
Then "rostopic list" shows gscam distributes topics, but when trying to view image:
rosrun imageview imageview image:=/camera/image_raw
Nothing shows, just a grey window.
Anyone hsa ideas of what is going wrong here? Could it be that video has the wrong format, read it must be RGB in the gscam doc. I've tried different parameters to the "videconvert" tag to convert output but no success.
Please help! :)
Asked by antwes on 2020-12-09 17:41:30 UTC
Comments
Are you getting images at the expected framerate? I notice that you dropped the
queue
element inGSCAM_CONFIG
-- was that intentional?It would be helpful to include a self-contained pipeline using
videotestsrc
, that makes it easier for others to reproduce the problem.You could try to increase the GST_DEBUG level, perhaps:
GST_DEBUG=4 gst-launch-1.0 ...
There is a lot of debug output, but you'll often see interesting errors.Asked by clyde on 2021-03-24 15:01:11 UTC
Another idea to try:
sync_sink
defaults to true in gscam, try setting it to false. This will match your gst-launch-1.0 test pipeline.Asked by clyde on 2021-05-20 11:05:20 UTC