我喜欢的:
- Gnome系用户,按
ctrl+shift+alt+r
,屏幕右上角有红点出现,开始录屏,结束的话再按一次ctrl+shift+alt+r
,录好的视频在 ~/Videos下 - ffmpeg
# Use the x11grab device:
ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 output.mp4
# This will grab the image from desktop, starting with the upper-left corner at x=100, y=200 with a width and height of 1024?768.
# If you need audio too, you can use ALSA (see Capture/ALSA for more info):
ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 -f alsa -ac 2 -i hw:0 output.mkv
# Or the pulse input device:
ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 -f pulse -ac 2 -i default output.mkv
更多细节看 https://trac.ffmpeg.org/wiki/Capture/Desktop#Linux
原文地址:https://www.cnblogs.com/hencins/p/12375338.html
时间: 2024-10-02 18:34:05