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

FFmpeg trac at avcodec.org
Wed Mar 20 08:49:21 CET 2013


#2367: input_format / -pixel_format => libv4l2: error dequeuing buf: Resource
temporarily unavailable
--------------------------------+----------------------------------------
             Reporter:  MrNice  |                    Owner:
                 Type:  defect  |                   Status:  new
             Priority:  normal  |                Component:  undetermined
              Version:  1.1.3   |               Resolution:
             Keywords:  v4l2    |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+----------------------------------------

Comment (by MrNice):

 Rebuild is done without v4l2

 New test:

 # 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 N-50974-g7d15cd4 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Mar 19 2013 23:01:41 with gcc 4.4.7 (GCC) 20120313 (Red Hat
 4.4.7-3)
   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-libx264 --disable-libv4l2
 --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. 19.100 / 52. 19.100
   libavcodec     55.  0.100 / 55.  0.100
   libavformat    55.  0.100 / 55.  0.100
   libavdevice    55.  0.100 / 55.  0.100
   libavfilter     3. 45.104 /  3. 45.104
   libswscale      2.  2.100 /  2.  2.100
   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/T20130320_0732.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 @ 0x16f0220] All info found
 [alsa @ 0x16f0220] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, alsa, from 'hw:0,0':
   Duration: N/A, start: 1363764754.387283, bitrate: 1536 kb/s
     Stream #0:0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, s16,
 1536 kb/s
 Successfully opened 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 @ 0x1711ec0] fd:4 capabilities:5020041
 [video4linux2,v4l2 @ 0x1711ec0] Selecting input_channel: 1
 [video4linux2,v4l2 @ 0x1711ec0] input_channel: 1, input_name: S-Video
 [video4linux2,v4l2 @ 0x1711ec0] Querying the device for the current frame
 size
 [video4linux2,v4l2 @ 0x1711ec0] Setting frame size to 720x576
 [video4linux2,v4l2 @ 0x1711ec0] The V4L2 driver is using the interlaced
 mode
 [video4linux2,v4l2 @ 0x1711ec0] Current standard: PAL, id: 255,
 frameperiod: 1/25
 [video4linux2,v4l2 @ 0x1711ec0] All info found
 [video4linux2,v4l2 @ 0x1711ec0] Estimating duration from bitrate, this may
 be inaccurate
 Input #1, video4linux2,v4l2, from '/dev/video0':
   Duration: N/A, start: 1363764754.982879, bitrate: 165888 kb/s
     Stream #1:0, 1, 1/1000000: Video: rawvideo (YUY2 / 0x32595559),
 yuyv422, 720x576, 1/1000000, 165888 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k
 tbc
 Successfully opened the file.
 Parsing a group of options: output file /Store3/Test/T20130320_0732.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/T20130320_0732.avi.
 Successfully opened the file.
 [abuffer @ 0x1712fc0] Setting entry with key 'time_base' to value
 '1/48000'
 [abuffer @ 0x1712fc0] Setting entry with key 'sample_rate' to value
 '48000'
 [abuffer @ 0x1712fc0] Setting entry with key 'sample_fmt' to value 's16'
 [abuffer @ 0x1712fc0] Setting entry with key 'channel_layout' to value
 '0x3'
 [graph 0 input from stream 0:0 @ 0x16efc00] tb:1/48000 samplefmt:s16
 samplerate:48000 chlayout:0x3
 [aformat @ 0x16e8300] Setting entry with key 'sample_fmts' to value 's16'
 [buffer @ 0x16f7ec0] Setting entry with key 'video_size' to value
 '720x576'
 [buffer @ 0x16f7ec0] Setting entry with key 'pix_fmt' to value '1'
 [buffer @ 0x16f7ec0] Setting entry with key 'time_base' to value
 '1/1000000'
 [buffer @ 0x16f7ec0] Setting entry with key 'pixel_aspect' to value '0/1'
 [buffer @ 0x16f7ec0] Setting entry with key 'sws_param' to value 'flags=2'
 [buffer @ 0x16f7ec0] Setting entry with key 'frame_rate' to value '25/1'
 [graph 1 input from stream 1:0 @ 0x16f9320] w:720 h:576 pixfmt:yuyv422
 tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
 [scale @ 0x16f9b20] Setting 'w' to value '0'
 [scale @ 0x16f9b20] Setting 'h' to value '0'
 [scale @ 0x16f9b20] Setting 'flags' to value '0x4'
 [auto-inserted scaler 0 @ 0x16f9a00] w:0 h:0 flags:'0x4' interl:0
 [format @ 0x16f82c0] auto-inserting filter 'auto-inserted scaler 0'
 between the filter 'Parsed_null_0' and the filter 'format'
 [auto-inserted scaler 0 @ 0x16f9a00] picking yuv422p out of 26 ref:yuyv422
 alpha:0
 [auto-inserted scaler 0 @ 0x16f9a00] w:720 h:576 fmt:yuyv422 sar:0/1 ->
 w:720 h:576 fmt:yuv422p sar:0/1 flags:0x4
 [ffv1 @ 0x1714260] detected 8 logical cores
 Output #0, avi, to '/Store3/Test/T20130320_0732.avi':
   Metadata:
     ISFT            : Lavf55.0.100
     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
 [avi @ 0x17131c0] st:0 PTS: 33256 DTS: 33256 < 33257 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 33257 DTS: 33257 < 33258 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 33258 DTS: 33258 < 33259 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 33259 DTS: 33259 < 33260 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 33260 DTS: 33260 < 33261 invalid, clipping
 st:0 PTS: 102074 DTS: 102074 < 102075 invalid, clipping.62
 bitrate=12958.3kbits/s
 st:0 PTS: 106940 DTS: 106940 < 106941 invalid, clipping.13
 bitrate=14169.8kbits/s
 [avi @ 0x17131c0] st:0 PTS: 112789 DTS: 112789 < 112790 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 113282 DTS: 113282 < 113283 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 120598 DTS: 120598 < 120599 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 123050 DTS: 123050 < 123051 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 123536 DTS: 123536 < 123537 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 124512 DTS: 124512 < 124513 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 125485 DTS: 125485 < 125486 invalid, clipping
 st:0 PTS: 132803 DTS: 132803 < 132804 invalid, clipping.63
 bitrate=15269.0kbits/s
 [avi @ 0x17131c0] st:0 PTS: 132804 DTS: 132804 < 132805 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 135246 DTS: 135246 < 135247 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 136708 DTS: 136708 < 136709 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 143545 DTS: 143545 < 143546 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 144034 DTS: 144034 < 144035 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 144035 DTS: 144035 < 144036 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 144521 DTS: 144521 < 144522 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 148908 DTS: 148908 < 148909 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 148909 DTS: 148909 < 148910 invalid, clipping
 st:0 PTS: 155756 DTS: 155756 < 155757 invalid, clipping.13
 bitrate=15775.3kbits/s
 [avi @ 0x17131c0] st:0 PTS: 162598 DTS: 162598 < 162599 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 163090 DTS: 163090 < 163091 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 163091 DTS: 163091 < 163092 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 163577 DTS: 163577 < 163578 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 166990 DTS: 166990 < 166991 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 167475 DTS: 167475 < 167476 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 167476 DTS: 167476 < 167477 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 168449 DTS: 168449 < 168450 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 168938 DTS: 168938 < 168939 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 168939 DTS: 168939 < 168940 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 172832 DTS: 172832 < 172833 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 173324 DTS: 173324 < 173325 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 173325 DTS: 173325 < 173326 invalid, clipping
 st:0 PTS: 174298 DTS: 174298 < 174299 invalid, clipping.63
 bitrate=16359.7kbits/s
 [avi @ 0x17131c0] st:0 PTS: 174787 DTS: 174787 < 174788 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 174788 DTS: 174788 < 174789 invalid, clipping
 [avi @ 0x17131c0] st:0 PTS: 177218 DTS: 177218 < 177219 invalid, clipping
 frame=   84 fps= 25 q=0.0 Lsize=    8039kB time=00:00:03.95
 bitrate=16645.1kbits/s
 video:7271kB audio:742kB subtitle:0 global headers:0kB muxing overhead
 0.316930%

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


More information about the FFmpeg-trac mailing list