Hacker News new | ask | show | jobs
by mjaniczek 1897 days ago

  function grab-screen-lossless {
    ffmpeg -an -f x11grab -video_size 1920x1080 -framerate 60 -i :0.0 -c:v h264_nvenc -preset llhq -tune zerolatency -crf 0 -qp 0 "${1}"
  }
  
  function grab-screen {
    ffmpeg -an -f x11grab -video_size 1920x1080 -framerate 60 -i :0.0 -c:v h264_nvenc -preset llhq -tune zerolatency -qp 10 "${1}"
  }
  
  function vid_compress {
    ffmpeg -i "${1}" -codec:v libx264 -preset:v fast -pix_fmt yuv420p "${2}"
  }
1 comments

Wow never realized ffmpeg could be used like this!

Unfortunately both these commands create a somewhat jerky video on my rx 550 on linux mint and drives CPU crazy (ryzen 3500).

I guess it's my underpowered graphics card, but any way to tweak your grab-screen-lossless for a smoother capture?

I'm surprised those specific commands work at all on your machine, since they use the Nvidia-specific nvenc.
Also I tried with -vcodec huffyuv after searching the internet, but no change in performace :/
probably because i habe a gt 710 in the second slot for driving my 4 monitor setup. also it could be the reason why the capture is so choppy.