Code:
sudo ffmpeg -framerate 60 -device /dev/dri/card1 -f kmsgrab -i - -vf 'hwdownload,format=bgr0' -c:v ffv1 -b:v 2500k -maxrate 4000k -y output.mkv
Frame rate is reduced to around 20 with light encoding.
Code:
sudo ffmpeg -framerate 60 -device /dev/dri/card1 -f kmsgrab -i - -vf 'hwdownload,format=bgr0' -c:v libx264 -b:v 2500k -maxrate 4000k -preset veryfast -x264-params qp=0 -tune animation -y output.mkv
Any ideas? I have tried and failed getting a gstreamer/pipewire/xdg-desktop-portal route working. Has anyone had good success with that?
Notes:
This was my best wf-recorder command:
Code:
yes | wf-recorder -a --codec mjpeg --pixel-format yuv420p -p qmax=5 --file output.mkv
Code:
sudo setcap cap_sys_admin+ep /usr/bin/ffmpeg
Statistics: Posted by Botspot — Sun Jan 05, 2025 3:22 am