Last active
January 31, 2020 15:17
-
-
Save jkauppinen/6374858e130634f129a04f1cf8e76ea6 to your computer and use it in GitHub Desktop.
Ubuntu 18.04 screen recording with audio
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
# Notes based on ffmpeg documentation: https://trac.ffmpeg.org/wiki/Capture/Desktop and general googling | |
# These settings work on Ubuntu 18.04 with rode podcaster usb microphone. | |
# Show screen information | |
xdpyinfo | |
# List audio capture devices | |
arecord -l | |
# Check device information (external usb mic in this case) | |
arecord --dump-hw-params -D hw:1,0 | |
# Test that audio works with arecord | |
arecord -D hw:1,0 -f S24_3LE test.wav | |
# Record audio with ffmmpeg | |
ffmpeg -f alsa -acodec pcm_s24le -ac 1 -ar 44100 -i hw:1,0 test.wav | |
# Record full screen on 2560x1440 resolution | |
ffmpeg -video_size 2560x1440 -draw_mouse 0 -show_region 1 -framerate 25 -f x11grab -i :0.0 test.mp4 | |
# Record full screen on 2560x1440 resolution and audio | |
ffmpeg -video_size 2560x1440 -draw_mouse 0 -show_region 1 -framerate 25 -f x11grab -i :0.0 -f alsa -acodec pcm_s24le -ac 1 -ar 44100 -i hw:1,0 out.flv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment