Opened 9 years ago
Closed 9 years ago
#4739 closed defect (duplicate)
Inappropriate ioctl for "/dev/video0" device
Reported by: | Al Mamun Mahbub | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avdevice |
Version: | unspecified | Keywords: | v4l2 |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Hi..
I am trying to stream with ffmpeg using the device XI006AEPRO which is functionally a 6 channel AV capture card.. I have installed the driver and can watch video from connected devices through vlc.. When trying to use the device with FFMPEG (dumping file or streaming live) it shows the error message saying..
"[video4linux2,v4l2 @ 0x2eb09e0] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device
/dev/video0: Inappropriate ioctl for device"
Command line along with output is provided below..
root@support-OptiPlex-3020:~# /root/bin/ffmpeg -f v4l2 -i /dev/video0 -c:v libx264 -b:v 800k -f mpegts udp://192.168.1.188:8888
ffmpeg version git-2014-03-24-33a7e28 Copyright (c) 2000-2014 the FFmpeg developers
built on Mar 25 2014 00:27:40 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264
libavutil 52. 69.100 / 52. 69.100
libavcodec 55. 54.100 / 55. 54.100
libavformat 55. 35.100 / 55. 35.100
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
[video4linux2,v4l2 @ 0x23f5900] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device
/dev/video0: Inappropriate ioctl for device
The same thing happens even with the newly compiled FFMPEG..
support@support-OptiPlex-3020:~/Desktop$ ffmpeg -f v4l2 -i /dev/video0 -c:v libx264 -b:v 800k -f mpegts udp://192.168.1.188:8888
ffmpeg version N-73370-gc9220d5 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --prefix=/home/support/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/support/ffmpeg_build/include --extra-ldflags=-L/home/support/ffmpeg_build/lib --bindir=/home/support/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-nonfree
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 46.100 / 56. 46.100
libavformat 56. 40.100 / 56. 40.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 19.100 / 5. 19.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
[video4linux2,v4l2 @ 0x2050160] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device
/dev/video0: Inappropriate ioctl for device
support@support-OptiPlex-3020:~/Desktop$
Change History (3)
comment:1 by , 9 years ago
Component: | ffmpeg → avdevice |
---|---|
Keywords: | v4l2 added |
Type: | task → defect |
comment:2 by , 9 years ago
Hi..
I have just installed "ffmpeg version git-2015-07-26-f37a5dc" but no luck.. please check..
root@support-OptiPlex?-3020:~/bin# /root/bin/ffmpeg -i /dev/video0 -c:v libx264 -b:v 800k -f mpegts udp://192.168.1.188:8888
ffmpeg version git-2015-07-26-f37a5dc Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-nonfree
libavutil 54. 29.100 / 54. 29.100
libavcodec 56. 55.100 / 56. 55.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 29.100 / 5. 29.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[video4linux2,v4l2 @ 0x226d1a0] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device
/dev/video0: Inappropriate ioctl for device
comment:3 by , 9 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Please test current FFmpeg git head.