[FFmpeg-user] Recording audio from mic and speakers from commandline

Mohan G mail2mohan81 at gmail.com
Sat Oct 17 14:34:34 CEST 2015


> The solution could have been better, if I could specify the
> recording-interfaces along with the "ffmpeg" command itself. Please
> let me know if it is possible.
>

After getting the names of all the system recording interfaces using
"pacmd" and use them with ffmpeg.

ffmpeg -f pulse -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
-f pulse -i alsa_input.pci-0000_00_1b.0.analog-stereo -acodec
libmp3lame -map 0:0 -map 1:0 outfile.mkv

- Mohan


More information about the ffmpeg-user mailing list