Record Only audio from Webcam logitech


Record From webcam’s mic

note some webcams could require -ac 2
note hw:1,0 it’s a parameter that could change to get it … just run this

 cat /proc/asound/pcm 

i get

 00-00: ALC861-VD Analog : ALC861-VD Analog : playback 1 : capture 1
00-06: Si3054 Modem : Si3054 Modem : playback 1 : capture 1
01-00: USB Audio : USB Audio : capture 1

so i need to use -i hw:1,0

the base command it’s this

ffmpeg -f alsa -ac 1 -ar 48000 -i hw:1,0 -acodec pcm_s16le -vn audio_recording.wav 

for mp3 , remember that if you get an error it’s because ffmpeg has not mp3 support … you need to compile it or just install some special packages from repos …

ffmpeg -f alsa -ac 1 -ar 48000 -i hw:1,0   -vn audio_recording.mp3

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: