Record audio with FFMPEG

screencast | record-audio | record video | noise cancelation

ALSA

choose a card number as microphone source

arecord -l

proceed as WAV for starters (MONO: one channel)

ffmpeg -f alsa -i hw:2 -ac 1 output.wav

PULSE

make sure the microphone is enabled

pavucontrol --> input devices
100%

choose a card number as microphone source

pactl list short sources

enable the microphone as default source

pactl set-default-source echocancel

ready to go

ffmpeg -f pulse -i default -ac 1 output.m4a

Resources

https://trac.ffmpeg.org/wiki/Capture/ALSA

https://trac.ffmpeg.org/wiki/Capture/PulseAudio

https://wiki.archlinux.org/title/PulseAudio/Troubleshooting


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun