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

Revision history [back]

Thanks to the comment of @TommyP, I did:

$ gst-launch v4l2src device=/dev/video0 ! video/x-raw-rgb,framerate=25/1, width=640,height=360 ! ffmpegcolorspace ! ximagesink

Which is what gscam also tries to more or less do. This gave following output:

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format
Additional debug info:
gstbasesrc.c(2830): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Check your filtered caps, if any
Setting pipeline to NULL ...
Freeing pipeline ...

The part where it says "could not negotiate format' indicated that my parameters were faulty, e.i. my camera does not support them.

Using GTK UVC video viewer, I found that the only framerates supported by my webcam are 30/1 and 15/1. gscam works using either one of these.

Thanks to the comment of @TommyP, I did:

$ gst-launch v4l2src device=/dev/video0 ! video/x-raw-rgb,framerate=25/1, width=640,height=360 ! ffmpegcolorspace ! ximagesink

Which is what gscam also tries to more or less to do. This gave following output:

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format
Additional debug info:
gstbasesrc.c(2830): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Check your filtered caps, if any
Setting pipeline to NULL ...
Freeing pipeline ...

The part where it says "could not negotiate format' indicated that my parameters were faulty, e.i. my camera does not support them.

Using GTK UVC video viewer, I found that the only framerates supported by my webcam are 30/1 and 15/1. gscam works using either one of these.