Skip to content

Instantly share code, notes, and snippets.

@raspberrypisig
Last active February 27, 2026 00:23
Show Gist options
  • Select an option

  • Save raspberrypisig/37ceaaf5371737aa7e2ec3dbf3d637f7 to your computer and use it in GitHub Desktop.

Select an option

Save raspberrypisig/37ceaaf5371737aa7e2ec3dbf3d637f7 to your computer and use it in GitHub Desktop.
ffmpeg screen recording

In windows cmd, to change title

title boo
ffmpeg -list_devices true -f dshow -i dummy

To record cmd window

ffmpeg -f gdigrab -draw_mouse 0 -framerate 6 -i title="espforge" -pix_fmt yuv420p output.mp4
ffmpeg -i output.mp4 -vcodec libwebp -filter:v "fps=5" -lossless 0 -q:v 20 -compression_level 6 -preset text -loop 0 final.webp

To record entire desktop, use -i desktop

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