---

How to record audio from mic using FFmpeg aka audio grabbing

“Recently a linuxer pointed out that in spite of the amazing and
widespread capabilities of FFmpeg, I have just been focused upon
its media conversion feature. If you take a look at all our
previous ffmpeg articles, the guy is right. So, from now we will
discuss other features of the superstar too, starting with audio
recording.

“Why don’t you try out the command first and we will see later
how it actually works.

[shredder12]$ ffmpeg -f oss -i /dev/dsp audio.mp3

“Once you run this command you will see ffmpeg saving some data
in the file audio.mp3. What is it? Its actually recording all the
audio that is going through the device /dev/dsp. Try speaking
something on your microphone and play the file.”


Complete Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis