Last active
June 21, 2020 12:13
-
-
Save daniel12fsp/52fdcc2aa04c4b1140ca428876803c7a to your computer and use it in GitHub Desktop.
Record screen/audio by ffmpeg
This file contains hidden or 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
| # 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