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

FFmpeg trac at avcodec.org
Sun Mar 17 22:49:55 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):

 New version N-50974-g7d15cd4 fix the bug.
 However, I think there is another issue with leading to invalid, clipping.
 Could you confirm and I'll open another ticket.

 {{{$ 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 16 2013 12:54:29 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. 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/T20130317_2143.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 @ 0xf03220] All info found
 [alsa @ 0xf03220] Estimating duration from bitrate, this may be inaccurate
 Input #0, alsa, from 'hw:0,0':
   Duration: N/A, start: 1363556581.980450, 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 @ 0xf24ec0] fd:6 capabilities:5020041
 [video4linux2,v4l2 @ 0xf24ec0] Selecting input_channel: 1
 [video4linux2,v4l2 @ 0xf24ec0] input_channel: 1, input_name: S-Video
 [video4linux2,v4l2 @ 0xf24ec0] Querying the device for the current frame
 size
 [video4linux2,v4l2 @ 0xf24ec0] Setting frame size to 720x576
 [video4linux2,v4l2 @ 0xf24ec0] The V4L2 driver is using the interlaced
 mode
 [video4linux2,v4l2 @ 0xf24ec0] Current standard: PAL, id: 255,
 frameperiod: 1/25
 [video4linux2,v4l2 @ 0xf24ec0] All info found
 [video4linux2,v4l2 @ 0xf24ec0] Estimating duration from bitrate, this may
 be inaccurate
 Input #1, video4linux2,v4l2, from '/dev/video0':
   Duration: N/A, start: 1363556582.486511, 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/T20130317_2143.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/T20130317_2143.avi.
 Successfully opened the file.
 [abuffer @ 0xf02c40] Setting entry with key 'time_base' to value '1/48000'
 [abuffer @ 0xf02c40] Setting entry with key 'sample_rate' to value '48000'
 [abuffer @ 0xf02c40] Setting entry with key 'sample_fmt' to value 's16'
 [abuffer @ 0xf02c40] Setting entry with key 'channel_layout' to value
 '0x3'
 [graph 0 input from stream 0:0 @ 0xf268c0] tb:1/48000 samplefmt:s16
 samplerate:48000 chlayout:0x3
 [aformat @ 0xefb300] Setting entry with key 'sample_fmts' to value 's16'
 [buffer @ 0xf0ae60] Setting entry with key 'video_size' to value '720x576'
 [buffer @ 0xf0ae60] Setting entry with key 'pix_fmt' to value '1'
 [buffer @ 0xf0ae60] Setting entry with key 'time_base' to value
 '1/1000000'
 [buffer @ 0xf0ae60] Setting entry with key 'pixel_aspect' to value '0/1'
 [buffer @ 0xf0ae60] Setting entry with key 'sws_param' to value 'flags=2'
 [buffer @ 0xf0ae60] Setting entry with key 'frame_rate' to value '25/1'
 [graph 1 input from stream 1:0 @ 0xf0c1c0] w:720 h:576 pixfmt:yuyv422
 tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
 [scale @ 0xf0bb80] Setting 'w' to value '0'
 [scale @ 0xf0bb80] Setting 'h' to value '0'
 [scale @ 0xf0bb80] Setting 'flags' to value '0x4'
 [auto-inserted scaler 0 @ 0xf0c600] w:0 h:0 flags:'0x4' interl:0
 [format @ 0xf0b320] auto-inserting filter 'auto-inserted scaler 0' between
 the filter 'Parsed_null_0' and the filter 'format'
 [auto-inserted scaler 0 @ 0xf0c600] picking yuv422p out of 26 ref:yuyv422
 alpha:0
 [auto-inserted scaler 0 @ 0xf0c600] w:720 h:576 fmt:yuyv422 sar:0/1 ->
 w:720 h:576 fmt:yuv422p sar:0/1 flags:0x4
 [ffv1 @ 0xf27ea0] detected 8 logical cores
 Output #0, avi, to '/Store3/Test/T20130317_2143.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 @ 0xf26e00] st:0 PTS: 29475 DTS: 29475 < 29476 invalid, clipping
 [avi @ 0xf26e00] st:0 PTS: 34342 DTS: 34342 < 34343 invalid, clipping
 [avi @ 0xf26e00] st:0 PTS: 34829 DTS: 34829 < 34830 invalid, clipping
 [avi @ 0xf26e00] st:0 PTS: 35511 DTS: 35511 < 35512 invalid, clipping
 st:0 PTS: 51680 DTS: 51680 < 51681 invalid, clipping:01.01
 bitrate=16557.2kbits/s
 [avi @ 0xf26e00] st:0 PTS: 52166 DTS: 52166 < 52167 invalid, clipping
 [avi @ 0xf26e00] st:0 PTS: 52650 DTS: 52650 < 52651 invalid, clipping
 st:0 PTS: 100196 DTS: 100196 < 100197 invalid, clipping.01
 bitrate=24289.5kbits/s
 [avi @ 0xf26e00] st:0 PTS: 101165 DTS: 101165 < 101166 invalid, clipping
 [avi @ 0xf26e00] st:0 PTS: 101650 DTS: 101650 < 101651 invalid, clipping
 st:0 PTS: 124676 DTS: 124676 < 124677 invalid, clipping.50
 bitrate=26231.1kbits/s
 st:0 PTS: 165310 DTS: 165310 < 165311 invalid, clipping.01
 bitrate=27341.6kbits/s
 st:0 PTS: 170862 DTS: 170862 < 170863 invalid, clipping.53
 bitrate=28044.0kbits/s
 frame=   83 fps= 25 q=0.0 Lsize=   13162kB time=00:00:03.77
 bitrate=28541.0kbits/s
 video:12428kB audio:708kB subtitle:0 global headers:0kB muxing overhead
 0.194942%}}}

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


More information about the FFmpeg-trac mailing list