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

Marco Paolieri paolieri at gmail.com
Sun Nov 26 14:06:33 EET 2017


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

using
- ffmpeg version 3.3.4-2+b3
- alsa k4.13.0-1-amd64
- linux 4.13.0-1-amd64

Note that `arecord -l` gives:

card 0: PCH [HDA Intel PCH], device 0: ALC1220 Analog [ALC1220 Analog]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC1220 Alt Analog [ALC1220 Alt Analog]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 1: Em28xxAudio [Em28xx Audio], device 0: Em28xx Audio [Empia 28xx Capture]
 Subdevices: 1/1
 Subdevice #0: subdevice #0

and I can capture audio/video without problems using the `qv4l2` test bench.

Thanks!
Marco


More information about the ffmpeg-user mailing list