Recording audio to a file from the cmd line in the backgroun
Posted: 28 Aug 2007 22:06
I am using VLC to record audio from the microphone input to a Speex file. This works fine with this command line:
I need this to run completely in the background -- no windows, no stderr messages, no output at all. Using the dummy module still shows a cmd.exe window so that you can stop the recording. Is there any way to make VLC stop creating this cmd.exe window and stopping the recording through another means? I've tried vlc:quit on the cmd line of another instance of vlc.exe but that didn't work. If I could just be rid of the cmd.exe window, I could use the Windows taskkill command to kill VLC.
Obviously I'm running this on Windows, but if you know how to make this happen on other platforms, I can translate between them well enough.
Code: Select all
"C:\Program Files\VideoLAN\VLC\vlc.exe" dshow:// :dshow-vdev="none" :dshow-adev="" :dshow-size="" :sout=#transcode{acodec=spx,ab=32,channels=1,samplerate=8000}:duplicate{dst=std{access=file,mux=ogg,dst="C:\testrec.ogg"}}
Obviously I'm running this on Windows, but if you know how to make this happen on other platforms, I can translate between them well enough.