Skip to content

Instantly share code, notes, and snippets.

@daniel12fsp
Last active June 21, 2020 12:13
Show Gist options
  • Save daniel12fsp/52fdcc2aa04c4b1140ca428876803c7a to your computer and use it in GitHub Desktop.
Save daniel12fsp/52fdcc2aa04c4b1140ca428876803c7a to your computer and use it in GitHub Desktop.
Record screen/audio by ffmpeg
# Get device identification
pactl list short sources
# To record audio only in mp3
ffmpeg -f pulse -i alsa_input.pci-0000_00_1f.3.analog-stereo -acodec libmp3lame test-audio.mp3
# To record screen
# see more in https://wiki.archlinux.org/index.php/FFmpeg#Screen_capture
ffmpeg -f x11grab -video_size 1920x1080 -framerate 25 -i $DISPLAY -c:v ffvhuff screen.mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment