Last active
October 31, 2021 08:21
-
-
Save JanTvrdik/8adfb7de7b5d9c2ca0aac43777adf3a1 to your computer and use it in GitHub Desktop.
Windows FFmpeg-based H.264 lossless screen recording
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 ?