3

I need Windows software to record from a specific sound card for a certain period of time, that can be invoked with command-line parameters.

  • SoX would be perfect, except that I cannot select a device on Windows... only OSX.
  • VLC may work if I can figure out how to get it to choose a device.

Any suggestions?

6
  • possible duplicate of How can I record sound from the windows command line?
    – Nifle
    Sep 24, 2011 at 8:34
  • @Nifle, this is not a duplicate... did you even read my question, and the one you linked to? I need to choose the sound device to record with. This is makes my question distinct from the question you linked to, as well as the 15 others I found here that are similar.
    – Brad
    Sep 24, 2011 at 8:37
  • 1
    Why is this rather important information not in your question?
    – Nifle
    Sep 24, 2011 at 8:39
  • 1
    You could use SSD – Set Sound Device to set your default sound device and then start the recording (all from the command line)
    – Nifle
    Sep 24, 2011 at 8:43
  • @Nifle, and to the person who +1 your comment, it is part of my question. The title: "Record WAV from command line, with sound device selection The first line: "I need Windows software to record from a specific sound card..." Also, while I appreciate your link to SSD, it does not apply to my situation. I am trying to record sound, not play it. SSD only appears to set the playback device.
    – Brad
    Sep 25, 2011 at 4:06

1 Answer 1

2

I finally figured out a solution. It's about a year too late for me, but maybe this will help someone else.

As it turns out, FFMPEG supports DirectShow under Windows, allowing us to select an audio input. For example, the following command records my web cam's microphone, dumping an MP3 file along the way:

ffmpeg -f dshow -i audio="Microphone (2- Microsoft LifeCa" test.mp3

You can get a list of input devices by running:

ffmpeg -list_devices true -f dshow -i dummy

I found this solution while stumbling across a blog entry here: http://nerdlogger.com/2011/11/03/stream-your-windows-desktop-using-ffmpeg/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .