Recording Webcam and Audio with ffmpeg on Windows

2

1

I am trying to record video + audio with ffmpeg of my defualt webcam.

This works with video:

ffmpeg -f vfwcap -r 25 -i 0  -ab 64 -ar 22050 -ac 1 output.avi 

but no sound is recorded. Is it possible to do that with Windows?

I have two web cams and a virtual screen sharing driver commncetd. Is it possible to specufy another input video? I tried changing -i {1..9} but this did not help.

yarek

Posted 2011-06-10T14:15:45.713

Reputation: 371

I've been looking for a similar project, but posts on their help forum indicate that Windows can't capture audio. However, many of these posts are old. It might be possible using OSS, but I'm not sure if OSS has been ported to Windows. – Opieus – 2011-06-20T17:36:49.263

What is OSS, Open Source Software? Could you be more specific with your answer? – slotishtype – 2011-06-20T18:42:49.060

Sorry, OSS in this context is Open Sound System. It's one of the input devices that ffmpeg supports. – Opieus – 2011-06-21T22:16:45.720

try it with the "dshow" input option – rogerdpack – 2013-11-06T16:18:23.037

No answers