Environment:
Fedora 34, 5.12.13-300.fc34.x86_64
FFMPEG 4.4-4.fc34
GNOME 40.1.0
What I am trying to do:
Create a lossless screencast file (video only, audio not required) that can be used as a source file for video editing.
What have I tried
- GNOME built-in screen recorder This does a great job recording, but the output file (.webm) has lossy compression
- ffmpeg
I found this command:
ffmpeg -f x11grab -r 25 -s 1920x1080 -i :0.0 -c:v qtrle output.movwhich did a great job, but only if I logged out (Wayland) and logged back in using x11. Running under Wayland produces a black video file.
How can I create a screencast file with lossless compression or no compression?
Edit 1: I made some progress with these commands:
sudo setcap cap_sys_admin+ep /usr/bin/ffmpeg
ffmpeg -f kmsgrab -r 24 -i :0.0 -s 1920x1080 -vf 'hwdownload,format=bgr0' -t 00:00:10 output.flv
The command works, but the output file seems like the video is kind of scrambled. I have dual monitors(1920x1080) and onboard Intel graphics. The problem happens on my single monitor system as well.