v4l2 and device driver issue

Nicolas Dufresne nicolas.dufresne at collabora.com
Wed Jan 8 16:58:42 PST 2014


Le mercredi 08 janvier 2014 à 17:56 -0500, Scott McCue a écrit :
> The pipeline is very simple. My app uses gstreamer libraries/API to invoke the equivalent of
> 'gst-launch-1.0 -e v4l2src device=/dev/video0 ! queue leaky=0 ! filesink location = timestamped_filename.ts'
> 
> Using GST_DEBUG=2 I receive the following error messages upon building and PLAYING
> a pipeline in my app. I see the error both from my application and from gst-launch-1.0.
> 
> (python:24452): GStreamer-CRITICAL **: gst_structure_fixate_field_nearest_int: assertion `gst_structure_has_field (structure, field_name)' failed
> 
> (python:24452): GStreamer-CRITICAL **: gst_structure_fixate_field_nearest_int: assertion `gst_structure_has_field (structure, field_name)' failed
> 
> (python:24452): GStreamer-CRITICAL **: gst_structure_fixate_field_nearest_fraction: assertion `gst_structure_has_field (structure, field_name)' failed
> 0:00:07.815728394 24452 0x7f8c34043320 WARN                    v4l2 gstv4l2object.c:2415:gst_v4l2_object_set_format:<camera_device> error: Device '/dev/video0' cannot capture at 0x0
> 0:00:07.815739015 24452 0x7f8c34043320 WARN                    v4l2 gstv4l2object.c:2415:gst_v4l2_object_set_format:<camera_device> error: Call to S_FMT failed for MPEG @ 0x0: Inappropriate ioctl for device

Interesting, and what do you get if you fix the width/height/framerate ?
i.e:

gst-launch-1.0 -e v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480,framerate=30/1 ! queue ! filesink location=timestamped_filename.ts

Also please open a bug at bugs.gnome.org, but take note that we'll need
your help as developer may not own such a device. To the bug, I would
suggest to attach a trace with GST_DEBUG=2,v4l2*:7 additionally kernel
traces from the driver could be useful, you need to enable it:

  echo 0xff > /sys/module/videobuf2_core/parameters/debug
  echo 0xff > /sys/module/<DRIVER NAME>/parameters/debug

And then you can retrieve the trace using dmesg.

cheers,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140108/59b2bdd8/attachment.pgp>


More information about the gstreamer-devel mailing list