Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#2367 closed defect (invalid)

input_format / -pixel_format => libv4l2: error dequeuing buf: Resource temporarily unavailable

Reported by: MrNice Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: v4l2
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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.

Change History (9)

comment:1 Changed 4 years ago by cehoyos

  • Keywords v4l2 added; dequeuing buf input_format removed

Please test current git head (or 1.2), some changes were made that are supposed to fix this problem, see ticket #1570.

comment:2 Changed 4 years ago 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/Tdate +%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%}}}

comment:3 Changed 4 years ago by holden

Hi, could you please compile current git head without "--enable-libv4l2" and test again?
I suspect this could be the problem, since I cannot reproduce the "invalid, clipping" issue here (but I have not tried with --enable-libv4l2).
libv4l2 is mostly useful with devices or webcams that support strange pixelformats, but yuyv422 is supported natively by ffmpeg.

comment:4 Changed 4 years ago by MrNice

I found out that the "invalid, clipping error" is related to the audio, IMHO.
I tried recording 1 minute with the command:
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 ???? -c:v ffv1 /Store3/Test/Tdate +%Y%m%d_%H%M.avi
with ???? the following;
flac (but players can't read it)
ac3
mp3
I had no error at all when recording 1mn these 3,
but a constant 30 seconds audio lateness (30s at the beginning and still 30s after 1mn)

With
mp2 ==> I had clipping after 23 seconds recording and had 20 seconds more lateness(30s+20s=50s) when reading. The message was in yellow colour instead of green.
[avi @ 0x23fde00] st:0 PTS: 954 DTS: 954 < 962 invalid, clipping
* drop!

with
pcm_alaw ==> immediate error green
pcm_f32le ==> immediate error green
pcm_f64le ==> immediate error green
pcm_mulaw ==> immediate error green
pcm_s16le ==> immediate error green
pcm_s24le ==> immediate error green
pcm_u8 ==> immediate error green
and a constant 30 seconds lateness (30s at the beginning and still 30s after 1mn)
There is no drop unlike with mp2 above.
Tested reading with VLC and MPlayer.

With the command
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/Tdate +%Y%m%d_%H%M.mkv

I had no error and a constant 30 seconds lateness (30s at the beginning and still 30s after 1mn)

Maybe this will help.
I'll ask if I can get a rebuilt.

comment:5 Changed 4 years ago 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/Tdate +%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%

comment:6 Changed 3 years ago 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.

comment:7 Changed 3 years ago by cehoyos

  • Resolution set to invalid
  • Status changed from new to closed
  • Version changed from 1.1.3 to unspecified

The original issue was fixed at the time the ticket was opened, the other problem needs a separate ticket.

comment:8 in reply to: ↑ description Changed 3 years ago by cehoyos

Replying to MrNice:

[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 :

Do you still have access to this device?
The Bayer colour spaces should be supported now with ffmpeg -f v4l2, but these are unfortunately untested...
Possible options to test are -pix_fmt bayer_bggr8, -pix_fmt bayer_grgb8 and -pix_fmt bayer_gbrg8

comment:9 Changed 3 years ago by MrNice

Yes I still have the device to test.
Unfortunately I have another issue with my Mint-Mate 1.6.1 (with NVidia video card).

Audio is flickering and changes setup every few seconds, I can't record and play properly.
I tried with Ubuntu 13.10, UbuntuStudio? as well, same issue.

As you are in the sound field, maybe you know this issue and could have an answer. If you get a change, please look at:
https://answers.launchpad.net/ubuntu/+question/243594
http://ubuntuforums.org/showthread.php?t=2204270
http://forums.linuxmint.com/viewtopic.php?f=48&t=157635

When this will be fixed I will be happy to test ffmpeg as I need to capture again.
Many thanks

Note: See TracTickets for help on using tickets.