Skip to content

Instantly share code, notes, and snippets.

@VTimofeenko
Created January 30, 2020 18:49
Show Gist options
  • Save VTimofeenko/8daa139b1dd0c0aa976326a30450a6cd to your computer and use it in GitHub Desktop.
Save VTimofeenko/8daa139b1dd0c0aa976326a30450a6cd to your computer and use it in GitHub Desktop.
#!/bin/sh
# Records the screen and captures audio from running applications and the sounds IRL through microphone
# -i :0.0+0... may be used to specify the monitor that is being captured
# -f pulse -i ... can be taken from output of pactl list
ffmpeg -f x11grab \
-r 25 \
-s 1920x1080 \
-i :0.0+0,1080 \
-f pulse -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor \
-f pulse -i default \
-map 0:0 -map 1:0 -map 2:0 \
outfile.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment