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

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Nov 27 00:13:43 EET 2017


2017-11-26 22:51 GMT+01:00 Marco Paolieri <paolieri at gmail.com>:
> 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

Great if that worked for you, if you don't plan to distribute,
installing libraries into /usr/local and running without
extra-options may be simpler.

>  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?

Unlikely, but try --disable-vaapi

Please do not top-post here, Carl Eugen


More information about the ffmpeg-user mailing list