Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FFMpeg kmsgrab record pixels wrong

ffmpeg -f kmsgrab -i - -framerate 60 -vf 'hwdownload,format=bgr0' -preset ultrafast out.mkv

This is how a video frame should look like kitty terminal emulator in the wayland This is how it is recorded by ffmpegkitty terminal emulator in the waylandweston-simple-egl https://drive.google.com/file/d/11jOUTk3ZxOfwnfd7zS4d4qBLApTS3Vmx/view?usp=sharing

like image 366
Alex Joel Avatar asked Sep 06 '25 03:09

Alex Joel


1 Answers

Add the filter hwmap before the hwdownload. It should look something like this -vf 'hwmap=derive_device=vaapi,hwdownload,format=bgr0'.

like image 96
Anonymous Avatar answered Sep 09 '25 08:09

Anonymous