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

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Nov 27 04:22:20 EET 2017


2017-11-27 3:14 GMT+01:00 Marco Paolieri <paolieri at gmail.com>:

> Now, it gives a different error:
>
>   ~/bin$ ./ffmpeg -f alsa -i hw:1,0 -t 30 out.wav
>   FFmpeg version 0.6.7, Copyright (c) 2000-2010 the FFmpeg developers
>    built on Nov 26 2017 18:07:01 with gcc 7.2.0
>    configuration: --disable-vaapi --disable-ffserver

> --prefix=/home/marco/ffmpeg_build
> --extra-cflags=-I/home/marco/ffmpeg_build/include
> --bindir=/home/marco/bin

You can avoid these extra options by not installing and
running the binary from the build directory (I never
install).

>    libavutil     50.15. 1 / 50.15. 1
>    libavcodec    52.72. 2 / 52.72. 2
>    libavformat   52.64. 2 / 52.64. 2
>    libavdevice   52. 2. 0 / 52. 2. 0
>    libswscale     0.11. 0 /  0.11. 0
>   [alsa @ 0x558ad41be420]cannot set channel count to 1 (Invalid argument)
>   hw:1,0: Input/output error

$ ffmpeg -f alsa -ac 2 -i hw:1,0 -t 30 out.wav

Carl Eugen


More information about the ffmpeg-user mailing list