Skip to content

Instantly share code, notes, and snippets.

@Solonarv
Created January 8, 2015 00:09
Show Gist options
  • Save Solonarv/2b0c7f51af5542859a10 to your computer and use it in GitHub Desktop.
Save Solonarv/2b0c7f51af5542859a10 to your computer and use it in GitHub Desktop.
The script I use for recording
#!/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