Skip to content

Instantly share code, notes, and snippets.

@Bioblaze
Forked from BonsaiDen/record.sh
Created June 26, 2020 05:23
Show Gist options
  • Save Bioblaze/6fadbf71e68f164410ae43c1c0e62444 to your computer and use it in GitHub Desktop.
Save Bioblaze/6fadbf71e68f164410ae43c1c0e62444 to your computer and use it in GitHub Desktop.
Record from Virtual Frame Buffer via ffmpeg
xvfb-run -s "-screen 0 1280x800x16" -e /dev/stdout -a /home/ivo/Desktop/foo.sh
./ffmpeg -r 30 -f x11grab -draw_mouse 0 -s 1280x800 -i :99 -c:v libvpx -quality realtime -cpu-used 0 -b:v 384k -qmin 10 -qmax 42 -maxrate 384k -bufsize 1000k -an screen.webm
# foo.sh
google-chrome --incognito --window-size=1280,800 --app=http://github.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment