Skip to content

Instantly share code, notes, and snippets.

@AndreVallestero
Last active January 16, 2021 21:23
Show Gist options
  • Save AndreVallestero/33ec912eb8dcdcf507a2639a846b0302 to your computer and use it in GitHub Desktop.
Save AndreVallestero/33ec912eb8dcdcf507a2639a846b0302 to your computer and use it in GitHub Desktop.
@echo off
REM Install Virtual Audio Cable https://vb-audio.com/Cable/
REM Enable go to VAC recording device and enable listening on default playback device
REM Have anything you want recorded set to output to VAC Input (playback device)
REM To find out your microphone device name use the following:
REM ffmpeg -list_devices true -f dshow -i dummy
set microphone="Microphone (Yeti Stereo Microphone)"
echo Press q to stop
ffmpeg -v 0 -stats ^
-f dshow -i audio=%microphone% ^
-f dshow -i audio="CABLE Output (VB-Audio Virtual Cable)" ^
-filter_complex amix=inputs=2:duration=longest ^
-rtbufsize 128M -c:a libopus -vbr on -b:a 32k -ac 1 -vn -sn ^
%date%-%time:~0,2%-%time:~3,2%-%time:~6,2%.opus
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment