Skip to content

Instantly share code, notes, and snippets.

@JanTvrdik
Last active October 31, 2021 08:21
Embed
What would you like to do?
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