[FFmpeg-trac] #2370(avdevice:open): v4l2 should not need ENUMSTD
FFmpeg
trac at avcodec.org
Mon Sep 2 12:22:23 CEST 2013
#2370: v4l2 should not need ENUMSTD
-------------------------------------+-------------------------------------
Reporter: ubitux | Owner: holden
Type: defect | Status: open
Priority: normal | Component: avdevice
Version: git-master | Resolution:
Keywords: v4l2 | Blocked By:
regression | Reproduced by developer: 1
Blocking: |
Analyzed by developer: 1 |
-------------------------------------+-------------------------------------
Comment (by mrlika):
This regression effects DVP-7620HE device driver. Latest ffmpeg throws the
following error:
{{{
ffmpeg -f video4linux2 -i /dev/video1 -an -vcodec copy -s cif test.h264
-loglevel verbose
ffmpeg version git-2013-07-12-0da0caa Copyright (c) 2000-2013 the FFmpeg
developers
built on Jul 12 2013 16:55:30 with gcc 4.7 (Ubuntu/Linaro
4.7.3-1ubuntu1)
configuration: --enable-libfaac --enable-libmp3lame --enable-nonfree
--disable-vaapi --enable-shared --enable-libx264 --enable-version3
--enable-gpl
libavutil 52. 39.100 / 52. 39.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.102 / 55. 12.102
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 80.100 / 3. 80.100
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[video4linux2,v4l2 @ 0x1467900] fd:3 capabilities:4000001
[video4linux2,v4l2 @ 0x1467900] Querying the device for the current frame
size
[video4linux2,v4l2 @ 0x1467900] Setting frame size to 1920x1080
[video4linux2,v4l2 @ 0x1467900] ioctl(VIDIOC_ENUMSTD): Invalid argument
/dev/video1: Invalid argument
}}}
Older FFmpeg versions work correct with this device:
{{{
ffmpeg -f video4linux2 -i /dev/video1 -an -vcodec copy -s cif test.h264
-loglevel verbose
ffmpeg version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2000-2013 the Libav
developers
built on Mar 30 2013 22:20:06 with gcc 4.7.2
configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect
--extra-version='6:0.8.6-1ubuntu2' --libdir=/usr/lib/x86_64-linux-gnu
--prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype
--enable-gnutls --enable-libgsm --enable-libpulse --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau
--enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-
postproc --enable-swscale --enable-libcdio --enable-x11grab
--shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
libavutil 51. 22. 1 / 51. 22. 1
libavcodec 53. 35. 0 / 53. 35. 0
libavformat 53. 21. 1 / 53. 21. 1
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 15. 0 / 2. 15. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 52. 0. 0 / 52. 0. 0
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a
future release. Please use avconv instead.
[video4linux2 @ 0x1b6a1e0] [4]Capabilities: 4000001
[video4linux2 @ 0x1b6a1e0] Querying the device for the current frame size
[video4linux2 @ 0x1b6a1e0] Setting frame size to 1920x1080
[video4linux2 @ 0x1b6a1e0] Estimating duration from bitrate, this may be
inaccurate
Input #0, video4linux2, from '/dev/video1':
Duration: N/A, start: 1378115441.148443, bitrate: 829440 kb/s
Stream #0.0: Video: rawvideo, yuyv422, 1920x1080, 829440 kb/s, 25 tbr,
1000k tbn, 25 tbc
File 'test.h264' already exists. Overwrite ? [y/N] y
Output #0, h264, to 'test.h264':
Metadata:
encoder : Lavf53.21.1
Stream #0.0: Video: rawvideo, yuyv422, 1920x1080, q=2-31, 829440 kb/s,
90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2370#comment:7>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list