[FFmpeg-trac] #2367(undetermined:new): input_format / -pixel_format => libv4l2: error dequeuing buf: Resource temporarily unavailable

FFmpeg trac at avcodec.org
Sat Mar 16 08:44:10 CET 2013


#2367: input_format / -pixel_format => libv4l2: error dequeuing buf: Resource
temporarily unavailable
-------------------------------------+-------------------------------------
             Reporter:  MrNice       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  1.1.3
  undetermined                       |               Blocked By:
             Keywords:  dequeuing    |  Reproduced by developer:  0
  buf, input_format                  |
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: I am trying to capture S-VHS with a Dazzle DVC100
 device.

 This device is able to output 422 format
 {{{
 $ ffmpeg -f v4l2 -list_formats all -i /dev/video0
 ffmpeg version 1.1.3 Copyright (c) 2000-2013 the FFmpeg developers
   built on Mar 11 2013 17:14:27 with gcc 4.4.6 (GCC) 20120305 (Red Hat
 4.4.6-4)
   configuration: --prefix=/opt/ffmpeg-opt/usr --enable-shared
 --bindir=/opt/ffmpeg-opt/usr/bin --datadir=/opt/ffmpeg-opt/usr/share
 /ffmpeg-opt --incdir=/opt/ffmpeg-opt/usr/include/ffmpeg-opt --libdir=/opt
 /ffmpeg-opt/usr/lib64 --mandir=/opt/ffmpeg-opt/usr/share/man
 --shlibdir=/opt/ffmpeg-opt/usr/lib64 --arch=x86_64 --optflags='-O2 -g'
 --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass
 --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-
 libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-
 libopus --enable-libpulse --enable-libschroedinger --enable-libspeex
 --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264
 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc
 --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-
 debug --disable-stripping --build-suffix=1 --disable-doc --enable-runtime-
 cpudetect
   libavutil      52. 13.100 / 52. 13.100
   libavcodec     54. 86.100 / 54. 86.100
   libavformat    54. 59.106 / 54. 59.106
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 32.100 /  3. 32.100
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 [video4linux2,v4l2 @ 0x1957280] R :   yuyv422 : 16 bpp YUY2, 4:2:2, packed
 :
 [video4linux2,v4l2 @ 0x1957280] R :  rgb565le :   16 bpp RGB 565, LE :
 [video4linux2,v4l2 @ 0x1957280] R : Unsupported : 8 bpp Bayer BGBG..GRGR :
 [video4linux2,v4l2 @ 0x1957280] R : Unsupported : 8 bpp Bayer GRGR..BGBG :
 [video4linux2,v4l2 @ 0x1957280] R : Unsupported : 8 bpp Bayer GBGB..RGRG :
 [video4linux2,v4l2 @ 0x1957280] R :   yuv411p :        12 bpp YUV411 :
 /dev/video0: Immediate exit requested
 }}}

 I get the error :
 libv4l2: error dequeuing buf: Resource temporarily unavailable
 when I run the command.
 Note that when I remove the input_format option this is working well.
 I tried with the option
 -input_format yuyv422
 -pixel_format yuyv422
 -pix_fmt yuyv422
 the 3 lead to the same error.
 Please find the output with the -debug 1 option.

 {{{
 $ ffmpeg -debug 1 -f alsa -ac 2 -channel_layout stereo -i hw:0,0 -f v4l2
 -channel 1 -input_format yuyv422 -i /dev/video0 -map 0:a -map 1:v -c:a
 pcm_s16le -c:v ffv1 /Store3/Test/T`date +%Y%m%d_%H%M`.avi
 ffmpeg version 1.1.3 Copyright (c) 2000-2013 the FFmpeg developers
   built on Mar 11 2013 17:14:27 with gcc 4.4.6 (GCC) 20120305 (Red Hat
 4.4.6-4)
   configuration: --prefix=/opt/ffmpeg-opt/usr --enable-shared
 --bindir=/opt/ffmpeg-opt/usr/bin --datadir=/opt/ffmpeg-opt/usr/share
 /ffmpeg-opt --incdir=/opt/ffmpeg-opt/usr/include/ffmpeg-opt --libdir=/opt
 /ffmpeg-opt/usr/lib64 --mandir=/opt/ffmpeg-opt/usr/share/man
 --shlibdir=/opt/ffmpeg-opt/usr/lib64 --arch=x86_64 --optflags='-O2 -g'
 --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass
 --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-
 libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-
 libopus --enable-libpulse --enable-libschroedinger --enable-libspeex
 --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264
 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc
 --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-
 debug --disable-stripping --build-suffix=1 --disable-doc --enable-runtime-
 cpudetect
   libavutil      52. 13.100 / 52. 13.100
   libavcodec     54. 86.100 / 54. 86.100
   libavformat    54. 59.106 / 54. 59.106
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 32.100 /  3. 32.100
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
  matched as AVOption 'debug' with argument '1'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'alsa'.
 Reading option '-ac' ... matched as option 'ac' (set number of audio
 channels) with argument '2'.
 Reading option '-channel_layout' ... matched as option 'channel_layout'
 (set channel layout) with argument 'stereo'.
 Reading option '-i' ... matched as input file with argument 'hw:0,0'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'v4l2'.
 Reading option '-channel' ... matched as AVOption 'channel' with argument
 '1'.
 Reading option '-input_format' ... matched as AVOption 'input_format' with
 argument 'yuyv422'.
 Reading option '-i' ... matched as input file with argument '/dev/video0'.
 Reading option '-map' ... matched as option 'map' (set input stream
 mapping) with argument '0:a'.
 Reading option '-map' ... matched as option 'map' (set input stream
 mapping) with argument '1:v'.
 Reading option '-c:a' ... matched as option 'c' (codec name) with argument
 'pcm_s16le'.
 Reading option '-c:v' ... matched as option 'c' (codec name) with argument
 'ffv1'.
 Reading option '/Store3/Test/T20130316_0730.avi' ... matched as output
 file.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Successfully parsed a group of options.
 Parsing a group of options: input file hw:0,0.
 Applying option f (force format) with argument alsa.
 Applying option ac (set number of audio channels) with argument 2.
 Applying option channel_layout (set channel layout) with argument stereo.
 Successfully parsed a group of options.
 Opening an input file: hw:0,0.
 [alsa @ 0x1306c20] All info found
 [alsa @ 0x1306c20] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, alsa, from 'hw:0,0':
   Duration: N/A, start: 1363419044.643556, bitrate: 1536 kb/s
     Stream #0:0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, s16,
 1536 kb/s
 Successfully openened the file.
 Parsing a group of options: input file /dev/video0.
 Applying option f (force format) with argument v4l2.
 Successfully parsed a group of options.
 Opening an input file: /dev/video0.
 [video4linux2,v4l2 @ 0x131c500] [4]Capabilities: 5020041
 [video4linux2,v4l2 @ 0x131c500] Querying the device for the current frame
 size
 [video4linux2,v4l2 @ 0x131c500] Setting frame size to 720x576
 [video4linux2,v4l2 @ 0x131c500] The V4L2 driver using the interlaced
 modeThe V4L2 driver set input_id: 1, input: S-Video
 libv4l2: error dequeuing buf: Resource temporarily unavailable
 libv4l2: error dequeuing buf: Resource temporarily unavailable

 .....(cut as many error lines).....

 libv4l2: error dequeuing buf: Resource temporarily unavailable
 libv4l2: error dequeuing buf: Resource temporarily unavailable
 [video4linux2,v4l2 @ 0x131c500] All info found
 [video4linux2,v4l2 @ 0x131c500] Estimating duration from bitrate, this may
 be inaccurate
 Input #1, video4linux2,v4l2, from '/dev/video0':
   Duration: N/A, start: 1363419045.175310, bitrate: 165888 kb/s
     Stream #1:0, 1, 1/1000000: Video: rawvideo (YUY2 / 0x32595559),
 yuyv422, 720x576, 1/25, 165888 kb/s, 25 tbr, 1000k tbn, 25 tbc
 Successfully openened the file.
 Parsing a group of options: output file /Store3/Test/T20130316_0730.avi.
 Applying option map (set input stream mapping) with argument 0:a.
 Applying option map (set input stream mapping) with argument 1:v.
 Applying option c:a (codec name) with argument pcm_s16le.
 Applying option c:v (codec name) with argument ffv1.
 Successfully parsed a group of options.
 Opening an output file: /Store3/Test/T20130316_0730.avi.
 Successfully openened the file.
 [abuffer @ 0x131f940] Setting entry with key 'time_base' to value
 '1/48000'
 [abuffer @ 0x131f940] Setting entry with key 'sample_rate' to value
 '48000'
 [abuffer @ 0x131f940] Setting entry with key 'sample_fmt' to value 's16'
 [abuffer @ 0x131f940] Setting entry with key 'channel_layout' to value
 '0x3'
 [graph 0 input from stream 0:0 @ 0x131d820] tb:1/48000 samplefmt:s16
 samplerate:48000 chlayout:0x3
 [aformat @ 0x12f91a0] Setting entry with key 'sample_fmts' to value 's16'
 [buffer @ 0x13200e0] Setting entry with key 'video_size' to value
 '720x576'
 [buffer @ 0x13200e0] Setting entry with key 'pix_fmt' to value '1'
 [buffer @ 0x13200e0] Setting entry with key 'time_base' to value
 '1/1000000'
 [buffer @ 0x13200e0] Setting entry with key 'pixel_aspect' to value '0/1'
 [buffer @ 0x13200e0] Setting entry with key 'sws_param' to value 'flags=2'
 [buffer @ 0x13200e0] Setting entry with key 'frame_rate' to value '25/1'
 [graph 1 input from stream 1:0 @ 0x131f440] w:720 h:576 pixfmt:yuyv422
 tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
 [scale @ 0x1320340] Setting 'w' to value '0'
 [scale @ 0x1320340] Setting 'h' to value '0'
 [scale @ 0x1320340] Setting 'flags' to value '0x4'
 [auto-inserted scaler 0 @ 0x1320220] w:0 h:0 flags:'0x4' interl:0
 [format @ 0x131f6e0] auto-inserting filter 'auto-inserted scaler 0'
 between the filter 'Parsed_null_0' and the filter 'format'
 [auto-inserted scaler 0 @ 0x1320220] picking yuv422p out of 22 ref:yuyv422
 alpha:0
 [auto-inserted scaler 0 @ 0x1320220] w:720 h:576 fmt:yuyv422 sar:0/1 ->
 w:720 h:576 fmt:yuv422p sar:0/1 flags:0x4
 [ffv1 @ 0x131ea40] detected 8 logical cores
 Output #0, avi, to '/Store3/Test/T20130316_0730.avi':
   Metadata:
     ISFT            : Lavf54.59.106
     Stream #0:0, 0, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
 48000 Hz, stereo, s16, 1536 kb/s
     Stream #0:1, 0, 1/25: Video: ffv1 (FFV1 / 0x31564646), yuv422p,
 720x576, 1/25, q=2-31, 200 kb/s, 25 tbn, 25 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (pcm_s16le -> pcm_s16le)
   Stream #1:0 -> #0:1 (rawvideo -> ffv1)
 Press [q] to stop, [?] for help
 libv4l2: error dequeuing buf: Resource temporarily unavailable
 libv4l2: error dequeuing buf: Resource temporarily unavailable

 .....(cut as many error lines).....

 libv4l2: error dequeuing buf: Resource temporarily unavailable
 libv4l2: error dequeuing buf: Resource temporarily
 unavailablerate=10737.1kbits/s
 libv4l2: error dequeuing buf: Resource temporarily unavailable
 frame=   14 fps=0.0 q=0.0 Lsize=    1475kB time=00:00:01.07
 bitrate=11199.9kbits/s
 video:1260kB audio:202kB subtitle:0 global headers:0kB muxing overhead
 0.856143%
 }}}

 Let me know if you want more test or info.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2367>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list