v4l2src error: Video device did not suggest any buffer size

Nicolas Dufresne nicolas at ndufresne.ca
Fri Sep 1 16:24:21 UTC 2017


Le vendredi 01 septembre 2017 à 05:50 -0700, Raya a écrit :
> Hello,
> 
> I have this pipeline:
> 
> gst-launch-1.0 -v v4l2src  ! videoconvert  !
> video/x-raw,format=I420,width=1280,height=720 ! x264enc ! h264parse !
> video/x-h264,stream-format=byte-stream,alignment=au ! filesink
> location=output.h264
> 
> When I launch it I get the following error:
> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Video
> device
> did not suggest any buffer size.
> 
> I searched over the internet but I could not find much information.
> 
> Could you please explain what it does refer to and how can I fix it ?

It indicates that your driver didn't provide a sizeimage (see through
VIDIOC_S_FTM). Fix your driver and this error will go away. Code to
watch when debugging the driver:

https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/sys/v4l2/gstv4l2object.c#n3047


regards,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170901/5f6b9d8f/attachment.sig>


More information about the gstreamer-devel mailing list