Answers.Body: <p>I had the exact same problem with an intel hd 3000 igpu (i5-2467), but then I lowered the framerate and it was mostly gone, albeit once or twice it bothered me with this image glitch.</p>
  <p>The <strong>lower</strong> the <strong>framerate</strong>, the less errors = 15 fps was a good tradeoff I found ; 30fps was smoother but every minute or so I had some milliseconds lost.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-30T01:32:20.587Z
Answers.LastActivityDate: 2022-11-30T01:32:20.587Z
Answers.UserDisplayName: Rutcha
Body: <p>ffmpeg -f kmsgrab -i - -framerate 60 -vf 'hwdownload,format=bgr0' -preset ultrafast out.mkv</p>
  
  <p>This is how a video frame should look like
  <a href="https://i.sstatic.net/rsyio.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/rsyio.png" alt="kitty terminal emulator in the wayland"></a>
  This is how it is recorded by ffmpeg<a href="https://i.sstatic.net/zZyLG.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zZyLG.jpg" alt="kitty terminal emulator in the wayland"></a><a href="https://i.sstatic.net/fbtGL.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/fbtGL.jpg" alt="weston-simple-egl"></a>
  <a href="https://drive.google.com/file/d/11jOUTk3ZxOfwnfd7zS4d4qBLApTS3Vmx/view?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/file/d/11jOUTk3ZxOfwnfd7zS4d4qBLApTS3Vmx/view?usp=sharing</a></p>
  
Tags: <ffmpeg><video-recording><linux>
Title: FFMpeg kmsgrab record pixels in incorrect order
UserDisplayName: Alex Joel
ThreadText: # FFMpeg kmsgrab record pixels in incorrect order
  
  (Asked by: username_0 on 2020-02-13)
  
  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](https://i.sstatic.net/rsyio.png)](https://i.sstatic.net/rsyio.png)
  This is how it is recorded by ffmpeg[![kitty terminal emulator in the wayland](https://i.sstatic.net/zZyLG.jpg)](https://i.sstatic.net/zZyLG.jpg)[![weston-simple-egl](https://i.sstatic.net/fbtGL.jpg)](https://i.sstatic.net/fbtGL.jpg)
  <https://drive.google.com/file/d/11jOUTk3ZxOfwnfd7zS4d4qBLApTS3Vmx/view?usp=sharing>
  
  **Tags:** ffmpeg, video-recording, linux
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-11-30. Score: 0
  
  I had the exact same problem with an intel hd 3000 igpu (i5-2467), but then I lowered the framerate and it was mostly gone, albeit once or twice it bothered me with this image glitch.
  
  The **lower** the **framerate**, the less errors = 15 fps was a good tradeoff I found ; 30fps was smoother but every minute or so I had some milliseconds lost.
  
  
  ---
  
  