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

FFmpeg trac at avcodec.org
Fri Apr 12 19:59:26 CEST 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 holden):

 Hi, thanks for the test and sorry for the late reply. I was not able to
 reproduce the problem:

 {{{
 $ ffmpeg -y -loglevel debug -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 FF.avi
 ffmpeg version N-51696-gb4eb06d Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Apr  9 2013 20:59:53 with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
   configuration: --enable-gpl --enable-x11grab --enable-libxvid --enable-
 libmp3lame --enable-libtheora --enable-libvorbis --enable-libopus
 --enable-libvpx --enable-libx264
   libavutil      52. 25.100 / 52. 25.100
   libavcodec     55.  2.100 / 55.  2.100
   libavformat    55.  1.100 / 55.  1.100
   libavdevice    55.  0.100 / 55.  0.100
   libavfilter     3. 49.101 /  3. 49.101
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 Splitting the commandline.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argument '1'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument 'debug'.
 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 'FF.avi' ... matched as output file.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option y (overwrite output files) with argument 1.
 Applying option loglevel (set logging level) with argument debug.
 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 @ 0x28a9a40] All info found
 Input #0, alsa, from 'hw:0,0':
   Duration: N/A, start: 1365788762.263006, 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 @ 0x28bea80] fd:3 capabilities:5010015
 [video4linux2,v4l2 @ 0x28bea80] Selecting input_channel: 1
 [video4linux2,v4l2 @ 0x28bea80] Current input_channel: 1, input_name:
 Composite1
 [video4linux2,v4l2 @ 0x28bea80] Querying the device for the current frame
 size
 [video4linux2,v4l2 @ 0x28bea80] Setting frame size to 720x576
 [video4linux2,v4l2 @ 0x28bea80] The V4L2 driver is using the interlaced
 mode
 [video4linux2,v4l2 @ 0x28bea80] Current standard: PAL, id: 255,
 frameperiod: 1/25
 [video4linux2,v4l2 @ 0x28bea80] All info found
 Input #1, video4linux2,v4l2, from '/dev/video0':
   Duration: N/A, start: 1365788762.329118, 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 FF.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: FF.avi.
 Successfully opened the file.
 [abuffer @ 0x289aaa0] Setting entry with key 'time_base' to value
 '1/48000'
 [abuffer @ 0x289aaa0] Setting entry with key 'sample_rate' to value
 '48000'
 [abuffer @ 0x289aaa0] Setting entry with key 'sample_fmt' to value 's16'
 [abuffer @ 0x289aaa0] Setting entry with key 'channel_layout' to value
 '0x3'
 [graph 0 input from stream 0:0 @ 0x28bb500] tb:1/48000 samplefmt:s16
 samplerate:48000 chlayout:0x3
 [aformat @ 0x289a9c0] Setting entry with key 'sample_fmts' to value 's16'
 [AVFilterGraph @ 0x28bb480] query_formats: 4 queried, 9 merged, 0 already
 done, 0 delayed
 [buffer @ 0x28c8a60] Setting entry with key 'video_size' to value
 '720x576'
 [buffer @ 0x28c8a60] Setting entry with key 'pix_fmt' to value '1'
 [buffer @ 0x28c8a60] Setting entry with key 'time_base' to value
 '1/1000000'
 [buffer @ 0x28c8a60] Setting entry with key 'pixel_aspect' to value '0/1'
 [buffer @ 0x28c8a60] Setting entry with key 'sws_param' to value 'flags=2'
 [buffer @ 0x28c8a60] Setting entry with key 'frame_rate' to value '25/1'
 [graph 1 input from stream 1:0 @ 0x28be480] w:720 h:576 pixfmt:yuyv422
 tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
 [scale @ 0x28c92e0] Setting 'w' to value '0'
 [scale @ 0x28c92e0] Setting 'h' to value '0'
 [scale @ 0x28c92e0] Setting 'flags' to value '0x4'
 [auto-inserted scaler 0 @ 0x28c91c0] w:0 h:0 flags:'0x4' interl:0
 [format @ 0x28bdc00] auto-inserting filter 'auto-inserted scaler 0'
 between the filter 'Parsed_null_0' and the filter 'format'
 [AVFilterGraph @ 0x28be2e0] query_formats: 4 queried, 3 merged, 1 already
 done, 0 delayed
 [auto-inserted scaler 0 @ 0x28c91c0] picking yuv422p out of 26 ref:yuyv422
 alpha:0
 [auto-inserted scaler 0 @ 0x28c91c0] w:720 h:576 fmt:yuyv422 sar:0/1 ->
 w:720 h:576 fmt:yuv422p sar:0/1 flags:0x4
 [ffv1 @ 0x28bd280] detected 1 logical cores
 Output #0, avi, to 'FF.avi':
   Metadata:
     ISFT            : Lavf55.1.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
 frame= 1009 fps= 25 q=0.0 Lsize=   97450kB time=00:00:40.38
 bitrate=19768.6kbits/s
 video:86997kB audio:7572kB subtitle:0 global headers:0kB muxing overhead
 3.047274%
 Statistics: 10 seeks, 124607 writeouts
 }}}

 The bug in the title has already been solved, and this new issue is
 probably something not related to v4l2, but it has to do with the avi
 muxer... so I think a new ticket should be opened. Thanks.

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


More information about the FFmpeg-trac mailing list