[FFmpeg-user] Cannot set ALSA buffer size (Invalid argument) during capture

Marco Paolieri paolieri at gmail.com
Sun Nov 26 23:51:18 EET 2017


Hi Carl,

Thank you for the help! I now compiled ffmpeg from sources (btw, the
online doc was great) but I get the same error:

$ ffmpeg -f alsa -i hw:1,0 -t 30 out.wav
ffmpeg version N-89254-g37c57df Copyright (c) 2000-2017 the FFmpeg developers
 built with gcc 7 (Debian 7.2.0-14)
 configuration: --prefix=/home/marco/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags=-I/home/marco/ffmpeg_build/include
--extra-ldflags=-L/home/marco/ffmpeg_build/
lib --extra-libs='-lpthread -lm' --bindir=/home/marco/bin --enable-gpl
--enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enabl
e-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libx265 --enable-nonfree
 libavutil      56.  3.100 / 56.  3.100
 libavcodec     58.  3.105 / 58.  3.105
 libavformat    58.  2.102 / 58.  2.102
 libavdevice    58.  0.100 / 58.  0.100
 libavfilter     7.  5.100 /  7.  5.100
 libswscale      5.  0.101 /  5.  0.101
 libswresample   3.  0.101 /  3.  0.101
 libpostproc    55.  0.100 / 55.  0.100
[alsa @ 0x55ac278ba740] cannot set ALSA buffer size (Invalid argument)
hw:1,0: Input/output error

I tried to compile ffmpeg 0.6.7 from GitHub, but without success; it
gives the error:

libavcodec/vaapi_mpeg4.c:89:73: error: implicit declaration of
function ‘ff_h263_get_gob_height’; did you mean ‘ff_h261_encode_init’?

Probably, I'm missing some old dependency?

Thanks,
Marco

On Sun, Nov 26, 2017 at 4:17 AM, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> 2017-11-26 13:06 GMT+01:00 Marco Paolieri <paolieri at gmail.com>:
>> Hello!
>>
>> I am trying to capture audio from an ATI Wonder 600 USB adapter using
>>
>> ffmpeg -f alsa -ac 2 -ar 48000 -i hw:1,0 -t 10 a.wav
>>
>> but I receive the error
>>
>> [alsa @ 0x555d7c2850a0] cannot set ALSA buffer size (Invalid argument)
>> hw:1,0: Input/output error
>
> It appears that this call and check are there for many years.
>
> Feel free to test a very old version of FFmpeg like 0.6 to
> find out if this is a regression.
>
>> using
>> - ffmpeg version 3.3.4-2+b3
>
> And please test current vanilla FFmpeg git head, nothing
> else is supported here.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list