Skip to content

Instantly share code, notes, and snippets.

@JanTvrdik
Last active October 31, 2021 08:21
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JanTvrdik/8adfb7de7b5d9c2ca0aac43777adf3a1 to your computer and use it in GitHub Desktop.
Save JanTvrdik/8adfb7de7b5d9c2ca0aac43777adf3a1 to your computer and use it in GitHub Desktop.
Windows FFmpeg-based H.264 lossless screen recording
# https://trac.ffmpeg.org/wiki/Capture/Desktop
# https://ffmpeg.org/ffmpeg-devices.html#gdigrab
# https://trac.ffmpeg.org/wiki/Encode/H.264#LosslessH.264
# WARNING: THE RECORDING WILL STOP WHEN UAC POPUP IS SHOWN
C:\SoftPortable\ffmpeg\bin\ffmpeg `
-f gdigrab -framerate 30 -draw_mouse 1 -i desktop `
-c:v libx264 -qp 0 -pix_fmt yuv444p -preset ultrafast `
"C:\Videos\recording-$(get-date -f yyyy-MM-dd-Hmss).mp4"
@AhmadMustafaa
Copy link

Is there any solution when pop up comes and recording not stop ? actually i want that my recording not stop when pop up comes or record it as well if it is possible ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment