[FFmpeg-user] video4linux2: Resource temporarily unavailable

llarevo at gmx.net llarevo at gmx.net
Tue Jul 10 15:27:41 CEST 2012


> > I try to change my standard encoding tool from mencoder to ffmpeg. Now
> > I've got a problem with analog capturing. When trying to capture with
> > ffmpeg -f v4l2 -i /dev/video0 out.mpg, I get lots of errors:
> > 
> > libv4l2: error dequeuing buf: Resource temporarily unavailable (s.b.)
> 
> Please post complete, uncut console output here on the mailing 
> list, external resources may disappear.

Sorry, I just wanted to keep the mail better readable. Here's the
complete information:

Hi,

I try to change my standard encoding tool from mencoder to ffmpeg. Now
I've got a problem with analog capturing. When trying to capture with
ffmpeg -f v4l2 -i /dev/video0 out.mpg, I get lots of errors:

libv4l2: error dequeuing buf: Resource temporarily unavailable (s.b.)

although I set the channel prior to the capturing via

v4lctl setchannel

Here you see an attempt with ffmpeg (after which a zero-byte outfile is
written):

ffmpeg -f v4l2 -i /dev/video0 out.mpg

ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun 13 2012 09:51:06 with gcc 4.7.0 20120507 (Red Hat
4.7.0-5)
  configuration: --prefix=/usr --bindir=/usr/bin
--datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg
--libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64
--extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
--enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass
--enable-libcdio --enable-libcelt --enable-libdc1394
--disable-indev=jack --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-openal --enable-libopenjpeg
--enable-libpulse --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2
--enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
--enable-avfilter --enable-postproc --enable-pthreads --disable-static
--enable-shared --enable-gpl --disable-debug --disable-stripping
--shlibdir=/usr/lib64 --enable-runtime-cpudetect
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
libv4l2: error dequeuing buf: Resource temporarily unavailable
libv4l2: error dequeuing buf: Resource temporarily unavailable
libv4l2: error dequeuing buf: Resource temporarily unavailable
libv4l2: error dequeuing buf: Resource temporarily unavailable
libv4l2: error dequeuing buf: Resource temporarily unavailable
--------5000 TIMES THE LINE ABOVE--------
libv4l2: error dequeuing buf: Resource temporarily unavailable
libv4l2: erro^C     <---------I stopped  that output--------
Estimating duration from bitrate, this may be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 1341859570.870366, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576,
-2147483 kb/s, 1.83 tbr, 1000k tbn, 1000k tbc
File 'out.mpeg' already exists. Overwrite ? [y/N] y
w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
[mpeg1video @ 0x235db00] MPEG1/2 does not support 5/1 fps
Output #0, mpeg, to 'out.mpeg':
    Stream #0:0: Video: mpeg1video, yuv420p, 720x576, q=2-31, 200 kb/s,
90k tbn, 5 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> mpeg1video)
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height
Received signal 2: terminating.





Here is an attempt with ffplay:

ffplay -v debug -f v4l2 -i /dev/video0

ffplay version 0.10.4 Copyright (c) 2003-2012 the FFmpeg developers
  built on Jun 13 2012 09:51:06 with gcc 4.7.0 20120507 (Red Hat
4.7.0-5)
  configuration: --prefix=/usr --bindir=/usr/bin
--datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg
--libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64
--extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
--enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass
--enable-libcdio --enable-libcelt --enable-libdc1394
--disable-indev=jack --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-openal --enable-libopenjpeg
--enable-libpulse --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2
--enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
--enable-avfilter --enable-postproc --enable-pthreads --disable-static
--enable-shared --enable-gpl --disable-debug --disable-stripping
--shlibdir=/usr/lib64 --enable-runtime-cpudetect
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[video4linux2,v4l2 @ 0x7ff1f80008c0] [7]Capabilities: 5010015
[video4linux2,v4l2 @ 0x7ff1f80008c0] Querying the device for the current
frame size
[video4linux2,v4l2 @ 0x7ff1f80008c0] Setting frame size to 720x576
[video4linux2,v4l2 @ 0x7ff1f80008c0] The V4L2 driver using the
interlaced modeThe V4L2 driver set input_id: 0, input: Television
[rawvideo @ 0x7ff1f8000e40] err{or,}_recognition separate: 1; 1
[rawvideo @ 0x7ff1f8000e40] err{or,}_recognition combined: 1; 10001






When I use ffmpeg -i /dev/video0 -f v4l2 out.mpg (-i and -f in the
opposite order) I get

/dev/video0: Invalid data found when processing input

as error:

ffmpeg -i /dev/video0 -f v4l2 out.mpg
ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun 13 2012 09:51:06 with gcc 4.7.0 20120507 (Red Hat
4.7.0-5)
  configuration: --prefix=/usr --bindir=/usr/bin
--datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg
--libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64
--extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
--enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass
--enable-libcdio --enable-libcelt --enable-libdc1394
--disable-indev=jack --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-openal --enable-libopenjpeg
--enable-libpulse --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2
--enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
--enable-avfilter --enable-postproc --enable-pthreads --disable-static
--enable-shared --enable-gpl --disable-debug --disable-stripping
--shlibdir=/usr/lib64 --enable-runtime-cpudetect
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
/dev/video0: Invalid data found when processing input


I belong to the group video on my system, so the access to 

crw-rw----+ 1 root video 81, 0 10. Jul 14:13 /dev/video0

should be OK.

mplayer tv:// and xawtv works

cat /dev/video0 > out.raw writes lots of data.






I'm using a Terratec Cinergy 400 on Fedora F17. The v4l2 device info is
here:

### v4l2 device info [/dev/video0] ###
    general info
        VIDIOC_QUERYCAP
            driver                  : "saa7134"
            card                    : "Terratec Cinergy 400 TV"
            bus_info                : "PCI:0000:04:01.0"
            version                 : 3.4.4
            capabilities            : 0x5010015
[VIDEO_CAPTURE,VIDEO_OVERLAY,VBI_CAPTURE,TUNER,READWRITE,STREAMING]
     
    standards
        VIDIOC_ENUMSTD(0)
            index                   : 0
            id                      : 0xb000 [NTSC_M,NTSC_M_JP,?]
            name                    : "NTSC"
            frameperiod.numerator   : 1001
            frameperiod.denominator : 30000
            framelines              : 525
        VIDIOC_ENUMSTD(1)
            index                   : 1
            id                      : 0x1000 [NTSC_M]
            name                    : "NTSC-M"
            frameperiod.numerator   : 1001
            frameperiod.denominator : 30000
            framelines              : 525
        VIDIOC_ENUMSTD(2)
            index                   : 2
            id                      : 0x2000 [NTSC_M_JP]
            name                    : "NTSC-M-JP"
            frameperiod.numerator   : 1001
            frameperiod.denominator : 30000
            framelines              : 525
        VIDIOC_ENUMSTD(3)
            index                   : 3
            id                      : 0x8000 [?]
            name                    : "NTSC-M-KR"
            frameperiod.numerator   : 1001
            frameperiod.denominator : 30000
            framelines              : 525
        VIDIOC_ENUMSTD(4)
            index                   : 4
            id                      : 0xff
[PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K]
            name                    : "PAL"
            frameperiod.numerator   : 1
            frameperiod.denominator : 25
            framelines              : 625
        VIDIOC_ENUMSTD(5)
            index                   : 5
            id                      : 0x7 [PAL_B,PAL_B1,PAL_G]
            name                    : "PAL-BG"
            frameperiod.numerator   : 1
            frameperiod.denominator : 25
            framelines              : 625
        VIDIOC_ENUMSTD(6)
            index                   : 6
            id                      : 0x8 [PAL_H]
            name                    : "PAL-H"
            frameperiod.numerator   : 1
            frameperiod.denominator : 25
            framelines              : 625
        VIDIOC_ENUMSTD(7)
            index                   : 7
            id                      : 0x10 [PAL_I]
            name                    : "PAL-I"
            frameperiod.numerator   : 1
            frameperiod.denominator : 25
            framelines              : 625
        VIDIOC_ENUMSTD(8)
            index                   : 8
            id                      : 0xe0 [PAL_D,PAL_D1,PAL_K]
            name                    : "PAL-DK"
            frameperiod.numerator   : 1
            frameperiod.denominator : 25
            framelines              : 625
        VIDIOC_ENUMSTD(9)
            index                   : 9
            id                      : 0x100 [PAL_M]
            name                    : "PAL-M"
            frameperiod.numerator   : 1001
            frameperiod.denominator : 30000
            framelines              : 525
        VIDIOC_ENUMSTD(10)
            index                   : 10
            id                      : 0x200 [PAL_N]
            name                    : "PAL-N"
            frameperiod.numerator   : 1
            frameperiod.denominator : 25
            framelines              : 625
        VIDIOC_ENUMSTD(11)
            index                   : 11
            id                      : 0x400 [PAL_Nc]
            name                    : "PAL-Nc"
            frameperiod.numerator   : 1
            frameperiod.denominator : 25
            framelines              : 625
        VIDIOC_ENUMSTD(12)
            index                   : 12
            id                      : 0x800 [PAL_60]
            name                    : "PAL-60"
            frameperiod.numerator   : 1001
            frameperiod.denominator : 30000
            framelines              : 525
        VIDIOC_ENUMSTD(13)
            index                   : 13
            id                      : 0xff0000
[SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,?ATSC_8_VSB]
            name                    : "SECAM"
            frameperiod.numerator   : 1
            frameperiod.denominator : 25
            framelines              : 625
        VIDIOC_ENUMSTD(14)
            index                   : 14
            id                      : 0x10000 [SECAM_B]
            name                    : "SECAM-B"
            frameperiod.numerator   : 1
            frameperiod.denominator : 25
            framelines              : 625
        VIDIOC_ENUMSTD(15)
            index                   : 15
            id                      : 0x40000 [SECAM_G]
            name                    : "SECAM-G"
            frameperiod.numerator   : 1
            frameperiod.denominator : 25
            framelines              : 625
        VIDIOC_ENUMSTD(16)
            index                   : 16
            id                      : 0x80000 [SECAM_H]
            name                    : "SECAM-H"
            frameperiod.numerator   : 1
            frameperiod.denominator : 25
            framelines              : 625
        VIDIOC_ENUMSTD(17)
            index                   : 17
            id                      : 0x320000
[SECAM_D,SECAM_K,SECAM_K1]
            name                    : "SECAM-DK"
            frameperiod.numerator   : 1
            frameperiod.denominator : 25
            framelines              : 625
        VIDIOC_ENUMSTD(18)
            index                   : 18
            id                      : 0x400000 [SECAM_L]
            name                    : "SECAM-L"
            frameperiod.numerator   : 1
            frameperiod.denominator : 25
            framelines              : 625
        VIDIOC_ENUMSTD(19)
            index                   : 19
            id                      : 0x800000 [?ATSC_8_VSB]
            name                    : "SECAM-Lc"
            frameperiod.numerator   : 1
            frameperiod.denominator : 25
            framelines              : 625
     
    inputs
        VIDIOC_ENUMINPUT(0)
            index                   : 0
            name                    : "Television"
            type                    : TUNER
            audioset                : 1
            tuner                   : 0
            std                     : 0xffbfff
[PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K,PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,?,SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,?ATSC_8_VSB]
            status                  : 0x0 []
        VIDIOC_ENUMINPUT(1)
            index                   : 1
            name                    : "Composite1"
            type                    : CAMERA
            audioset                : 1
            tuner                   : 0
            std                     : 0xffbfff
[PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K,PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,?,SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,?ATSC_8_VSB]
            status                  : 0x0 []
        VIDIOC_ENUMINPUT(2)
            index                   : 2
            name                    : "S-Video"
            type                    : CAMERA
            audioset                : 1
            tuner                   : 0
            std                     : 0xffbfff
[PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K,PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,?,SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,?ATSC_8_VSB]
            status                  : 0x0 []
        VIDIOC_ENUMINPUT(3)
            index                   : 3
            name                    : "Composite2"
            type                    : CAMERA
            audioset                : 1
            tuner                   : 0
            std                     : 0xffbfff
[PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K,PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,?,SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,?ATSC_8_VSB]
            status                  : 0x0 []
     
    tuners
        VIDIOC_G_TUNER(0)
            index                   : 0
            name                    : "Television"
            type                    : ANALOG_TV
            capability              : 0x72 [NORM,STEREO,LANG2,LANG1]
            rangelow                : 0
            rangehigh               : 4294967295
            rxsubchans              : 0x3 [MONO,STEREO]
            audmode                 : STEREO
            signal                  : 65535
            afc                     : 0
     
    video capture
        VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
            index                   : 0
            type                    : VIDEO_CAPTURE
            flags                   : 0
            description             : "8 bpp gray"
            pixelformat             : 0x59455247 [GREY]
        VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE)
            index                   : 1
            type                    : VIDEO_CAPTURE
            flags                   : 0
            description             : "15 bpp RGB, le"
            pixelformat             : 0x4f424752 [RGBO]
        VIDIOC_ENUM_FMT(2,VIDEO_CAPTURE)
            index                   : 2
            type                    : VIDEO_CAPTURE
            flags                   : 0
            description             : "15 bpp RGB, be"
            pixelformat             : 0x51424752 [RGBQ]
        VIDIOC_ENUM_FMT(3,VIDEO_CAPTURE)
            index                   : 3
            type                    : VIDEO_CAPTURE
            flags                   : 0
            description             : "16 bpp RGB, le"
            pixelformat             : 0x50424752 [RGBP]
     
        VIDIOC_ENUM_FMT(4,VIDEO_CAPTURE)
            index                   : 4
            type                    : VIDEO_CAPTURE
            flags                   : 0
            description             : "16 bpp RGB, be"
            pixelformat             : 0x52424752 [RGBR]
        VIDIOC_ENUM_FMT(5,VIDEO_CAPTURE)
            index                   : 5
            type                    : VIDEO_CAPTURE
            flags                   : 0
            description             : "24 bpp RGB, le"
            pixelformat             : 0x33524742 [BGR3]
        VIDIOC_ENUM_FMT(6,VIDEO_CAPTURE)
            index                   : 6
            type                    : VIDEO_CAPTURE
            flags                   : 0
            description             : "24 bpp RGB, be"
            pixelformat             : 0x33424752 [RGB3]
        VIDIOC_ENUM_FMT(7,VIDEO_CAPTURE)
            index                   : 7
            type                    : VIDEO_CAPTURE
            flags                   : 0
            description             : "32 bpp RGB, le"
            pixelformat             : 0x34524742 [BGR4]
        VIDIOC_ENUM_FMT(8,VIDEO_CAPTURE)
            index                   : 8
            type                    : VIDEO_CAPTURE
            flags                   : 0
            description             : "32 bpp RGB, be"
            pixelformat             : 0x34424752 [RGB4]
        VIDIOC_ENUM_FMT(9,VIDEO_CAPTURE)
            index                   : 9
            type                    : VIDEO_CAPTURE
            flags                   : 0
            description             : "4:2:2 packed, YUYV"
            pixelformat             : 0x56595559 [YUYV]
        VIDIOC_ENUM_FMT(10,VIDEO_CAPTURE)
            index                   : 10
            type                    : VIDEO_CAPTURE
            flags                   : 0
            description             : "4:2:2 packed, UYVY"
            pixelformat             : 0x59565955 [UYVY]
        VIDIOC_ENUM_FMT(11,VIDEO_CAPTURE)
            index                   : 11
            type                    : VIDEO_CAPTURE
            flags                   : 0
            description             : "4:2:2 planar, Y-Cb-Cr"
            pixelformat             : 0x50323234 [422P]
        VIDIOC_ENUM_FMT(12,VIDEO_CAPTURE)
            index                   : 12
            type                    : VIDEO_CAPTURE
            flags                   : 0
            description             : "4:2:0 planar, Y-Cb-Cr"
            pixelformat             : 0x32315559 [YU12]
        VIDIOC_ENUM_FMT(13,VIDEO_CAPTURE)
            index                   : 13
            type                    : VIDEO_CAPTURE
            flags                   : 0
            description             : "4:2:0 planar, Y-Cb-Cr"
            pixelformat             : 0x32315659 [YV12]
        VIDIOC_G_FMT(VIDEO_CAPTURE)
            type                    : VIDEO_CAPTURE
            fmt.pix.width           : 720
            fmt.pix.height          : 576
            fmt.pix.pixelformat     : 0x33524742 [BGR3]
            fmt.pix.field           : INTERLACED
            fmt.pix.bytesperline    : 2160
            fmt.pix.sizeimage       : 1244160
            fmt.pix.colorspace      : unknown
            fmt.pix.priv            : 0
     
    video overlay
        VIDIOC_ENUM_FMT(0,VIDEO_OVERLAY)
            index                   : 0
            type                    : VIDEO_OVERLAY
            flags                   : 0
            description             : "8 bpp gray"
            pixelformat             : 0x59455247 [GREY]
        VIDIOC_ENUM_FMT(1,VIDEO_OVERLAY)
            index                   : 1
            type                    : VIDEO_OVERLAY
            flags                   : 0
            description             : "15 bpp RGB, le"
            pixelformat             : 0x4f424752 [RGBO]
        VIDIOC_ENUM_FMT(2,VIDEO_OVERLAY)
            index                   : 2
            type                    : VIDEO_OVERLAY
            flags                   : 0
            description             : "15 bpp RGB, be"
            pixelformat             : 0x51424752 [RGBQ]
        VIDIOC_ENUM_FMT(3,VIDEO_OVERLAY)
            index                   : 3
            type                    : VIDEO_OVERLAY
            flags                   : 0
            description             : "16 bpp RGB, le"
            pixelformat             : 0x50424752 [RGBP]
        VIDIOC_ENUM_FMT(4,VIDEO_OVERLAY)
            index                   : 4
            type                    : VIDEO_OVERLAY
            flags                   : 0
            description             : "16 bpp RGB, be"
            pixelformat             : 0x52424752 [RGBR]
        VIDIOC_ENUM_FMT(5,VIDEO_OVERLAY)
            index                   : 5
            type                    : VIDEO_OVERLAY
            flags                   : 0
            description             : "24 bpp RGB, le"
            pixelformat             : 0x33524742 [BGR3]
        VIDIOC_ENUM_FMT(6,VIDEO_OVERLAY)
            index                   : 6
            type                    : VIDEO_OVERLAY
            flags                   : 0
            description             : "24 bpp RGB, be"
            pixelformat             : 0x33424752 [RGB3]
        VIDIOC_ENUM_FMT(7,VIDEO_OVERLAY)
            index                   : 7
            type                    : VIDEO_OVERLAY
            flags                   : 0
            description             : "32 bpp RGB, le"
            pixelformat             : 0x34524742 [BGR4]
        VIDIOC_ENUM_FMT(8,VIDEO_OVERLAY)
            index                   : 8
            type                    : VIDEO_OVERLAY
            flags                   : 0
            description             : "32 bpp RGB, be"
            pixelformat             : 0x34424752 [RGB4]
        VIDIOC_ENUM_FMT(9,VIDEO_OVERLAY)
            index                   : 9
            type                    : VIDEO_OVERLAY
            flags                   : 0
            description             : "4:2:2 packed, YUYV"
            pixelformat             : 0x56595559 [YUYV]
        VIDIOC_ENUM_FMT(10,VIDEO_OVERLAY)
            index                   : 10
            type                    : VIDEO_OVERLAY
            flags                   : 0
            description             : "4:2:2 packed, UYVY"
            pixelformat             : 0x59565955 [UYVY]
        VIDIOC_G_FMT(VIDEO_OVERLAY)
            type                    : VIDEO_OVERLAY
            fmt.win.w.left          : 0
            fmt.win.w.top           : 0
            fmt.win.w.width         : 0
            fmt.win.w.height        : 0
            fmt.win.field           : ANY
            fmt.win.chromakey       : 0
            fmt.win.clips           : (nil)
            fmt.win.clipcount       : 0
            fmt.win.bitmap          : (nil)
        VIDIOC_G_FBUF
            capability              : 0x4 [LIST_CLIPPING]
            flags                   : 0x0 []
            base                    : (nil)
            fmt.width               : 1920
            fmt.height              : 1200
            fmt.pixelformat         : 0x34524742 [BGR4]
            fmt.field               : ANY
            fmt.bytesperline        : 7680
            fmt.sizeimage           : 9216000
            fmt.colorspace          : unknown
            fmt.priv                : 0
     
    vbi capture
        VIDIOC_G_FMT(VBI_CAPTURE)
            type                    : VBI_CAPTURE
            fmt.vbi.sampling_rate   : 27000000
            fmt.vbi.offset          : 256
            fmt.vbi.samples_per_line: 2048
            fmt.vbi.sample_format   : 0x59455247 [GREY]
            fmt.vbi.start[0]        : 7
            fmt.vbi.start[1]        : 319
            fmt.vbi.count[0]        : 16
            fmt.vbi.count[1]        : 16
            fmt.vbi.flags           : 0
     
    controls
        VIDIOC_QUERYCTRL(BASE+0)
            id                      : 9963776
            type                    : INTEGER
            name                    : "Brightness"
            minimum                 : 0
            maximum                 : 255
            step                    : 1
            default_value           : 128
            flags                   : 0
        VIDIOC_QUERYCTRL(BASE+1)
            id                      : 9963777
            type                    : INTEGER
            name                    : "Contrast"
            minimum                 : 0
            maximum                 : 127
            step                    : 1
            default_value           : 68
            flags                   : 0
        VIDIOC_QUERYCTRL(BASE+2)
            id                      : 9963778
            type                    : INTEGER
            name                    : "Saturation"
            minimum                 : 0
            maximum                 : 127
            step                    : 1
            default_value           : 64
            flags                   : 0
        VIDIOC_QUERYCTRL(BASE+3)
            id                      : 9963779
            type                    : INTEGER
            name                    : "Hue"
            minimum                 : -128
            maximum                 : 127
            step                    : 1
            default_value           : 0
            flags                   : 0
        VIDIOC_QUERYCTRL(BASE+5)
            id                      : 9963781
            type                    : INTEGER
            name                    : "Volume"
            minimum                 : -15
            maximum                 : 15
            step                    : 1
            default_value           : 0
            flags                   : 0
        VIDIOC_QUERYCTRL(BASE+9)
            id                      : 9963785
            type                    : BOOLEAN
            name                    : "Mute"
            minimum                 : 0
            maximum                 : 1
            step                    : 0
            default_value           : 0
            flags                   : 0
        VIDIOC_QUERYCTRL(BASE+20)
            id                      : 9963796
            type                    : BOOLEAN
            name                    : "Mirror"
            minimum                 : 0
            maximum                 : 1
            step                    : 0
            default_value           : 0
            flags                   : 0
        VIDIOC_QUERYCTRL(PRIVATE_BASE+0)
            id                      : 134217728
            type                    : BOOLEAN
            name                    : "Invert"
            minimum                 : 0
            maximum                 : 1
            step                    : 0
            default_value           : 0
            flags                   : 0
        VIDIOC_QUERYCTRL(PRIVATE_BASE+1)
            id                      : 134217729
            type                    : INTEGER
            name                    : "y offset odd field"
            minimum                 : 0
            maximum                 : 128
            step                    : 1
            default_value           : 0
            flags                   : 0
        VIDIOC_QUERYCTRL(PRIVATE_BASE+2)
            id                      : 134217730
            type                    : INTEGER
            name                    : "y offset even field"
            minimum                 : 0
            maximum                 : 128
            step                    : 1
            default_value           : 0
            flags                   : 0
        VIDIOC_QUERYCTRL(PRIVATE_BASE+3)
            id                      : 134217731
            type                    : BOOLEAN
            name                    : "automute"
            minimum                 : 0
            maximum                 : 1
            step                    : 0
            default_value           : 1
            flags                   : 0






Since I'm new to ffmpeg, some help is very appreciated. 

Thanks in advance
--
Felix



More information about the ffmpeg-user mailing list