Created
January 8, 2015 00:09
-
-
Save Solonarv/2b0c7f51af5542859a10 to your computer and use it in GitHub Desktop.
The script I use for recording
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
savedir=$1 | |
# ffmpeg -f x11grab -s 1680x1050 -r 30 -i :0.0 -f alsa -i plug:looprec -b:v 2M -qmin 0 -qmax 15 "$savedir/video+loopback.mkv" & | |
ffmpeg -f x11grab -s 1680x1050 -r 30 -i :0.0 -f alsa -i plug:looprec -c:v libx264 -preset ultrafast -qp 0 -c:a libfaac "$savedir/video+loopback.mkv" & | |
ffmpeg -f alsa -i default -c:a libfaac "$savedir/audio-micro.aac" & | |
read -n1 -p'Press any key to stop recording' | |
# Send Ctrl-C to both ffmpeg instances | |
killall -SIGINT ffmpeg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment