Failed to enumerate video formats and Inappropriate ioctl for device Error

Zafrullah Syed zafrullahmehdi at gmail.com
Thu Dec 19 07:06:50 PST 2013


I am facing problems with gstreamer pipeline. videotestsrc is working
fine but when I try to use v4l driver it gives me the following
errors.

[Working ] gst-launch videotestsrc ! video/x-raw-rgb, framerate=25/1,
width=640, height=360 ! fakesink

[Not Working]
root at overo:~# gst-launch-0.10 -v v4l2src device=/dev/video6
queue-size=8 ! video/x-raw-yuv,format=\(fourcc\)UYVY,width=720,height=480
! ffmpegcolorspace ! tcpserversink host=192.168.1.104 port=5000
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed
to enumerate possible video formats device '/dev/video6' can work with
Additional debug info:
/home/siguser/yocto-28-11/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gst-plugins-good/0.10.31-r8/gst-plugins-good-0.10.31/sys/v4l2/gstv4l2object.c(1122):
gst_v4l2_object_fill_format_list ():
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Failed to get number 0 in pixelformat enumeration for /dev/video6. (25
- Inappropriate ioctl for device)
Setting pipeline to NULL ...
Freeing pipeline ...


root at overo:~# gst-launch-0.10 v4l2src --gst-debug=0 device=/dev/video6
! video/x-raw-yuv,width=640,height=480,framerate=\(fraction\)2/1 !
ffmpegcolorspace ! smokeenc keyframe=8 qmax=40 ! udpsink
host=192.168.1.104 port=5000
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed
to enumerate possible video formats device '/dev/video6' can work with
Additional debug info:
/home/siguser/yocto-28-11/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gst-plugins-good/0.10.31-r8/gst-plugins-good-0.10.31/sys/v4l2/gstv4l2object.c(1122):
gst_v4l2_object_fill_format_list ():
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Failed to get number 0 in pixelformat enumeration for /dev/video6. (25
- Inappropriate ioctl for device)
Setting pipeline to NULL ...
Freeing pipeline ...

My webcam supported video formats:
root at overo:~# LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so v4l2-ctl -d 6
--list-formats
ioctl: VIDIOC_ENUM_FMT
Index       : 0
Type        : Video Capture
Pixel Format: 'RGB3' (emulated)
Name        : RGB3

Index       : 1
Type        : Video Capture
Pixel Format: 'BGR3' (emulated)
Name        : BGR3

Index       : 2
Type        : Video Capture
Pixel Format: 'YU12' (emulated)
Name        : YU12

Index       : 3
Type        : Video Capture
Pixel Format: 'YV12' (emulated)
Name        : YV12

Can anyone please suggest me where I am doing wrong?

-- 
Regards,
Zafrullah Syed


More information about the gstreamer-devel mailing list