3

I am looking to record my desktop in high quality (not nearly as lossy as H.264). I have tried OBS @ 200mbps and nVidia Shadowplay @ 50mbps and the text on my desktop is still noticibly blurry when i view the video I just recorded at the native resolution it was recorded at. OBS is a little bit better than nVidia.

1 Answer 1

3

Try lossless encoding with ffmpeg

First, with YUV444P

ffmpeg -f gdigrab -framerate 60 -i desktop -crf 0 -pix_fmt yuv444p -preset ultrafast yuv-cap.mp4

If not clear enough,

ffmpeg -f gdigrab -framerate 60 -i desktop -c:v libx264rgb -crf 0 -pix_fmt bgra -preset ultrafast rgb-cap.mp4

These will likely not be compatible with most video editors, but if the result is satisfactory, then you can transcode at leisure to a compatible codec like PNG in MOV..etc

You can add -draw_mouse 0 before -i desktop to skip recording the cursor.

7
  • How would I get this up to 60fps? Commented Feb 18, 2016 at 14:45
  • Command edited.
    – Gyan
    Commented Feb 18, 2016 at 14:47
  • Thank you. Is there a way to only capture one monitor? (i have two 1080p side-by side) Commented Feb 18, 2016 at 15:00
  • 1
    Yeah, two ways. Switch off one of them :) --or-- add -offset_x 1920 -offset_y 0 -video_size 1920x1080 before -i desktop if you want to capture the 2nd monitor which is the right half of your desktop.
    – Gyan
    Commented Feb 18, 2016 at 15:10
  • I've had a little time to test this out finally. gdigrab seems to be fairly horrible at capturing high framerate desktop recording. Commented Feb 25, 2016 at 22:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.