Skip to content

Instantly share code, notes, and snippets.

@Gnzlt
Created March 6, 2019 13:25
Show Gist options
  • Star 62 You must be signed in to star a gist
  • Fork 16 You must be signed in to fork a gist
  • Save Gnzlt/a2bd6551f0044a673e455b269646d487 to your computer and use it in GitHub Desktop.
Save Gnzlt/a2bd6551f0044a673e455b269646d487 to your computer and use it in GitHub Desktop.
Gource video export command
#!/bin/bash
gource \
-s .03 \
-1280x720 \
--auto-skip-seconds .1 \
--multi-sampling \
--stop-at-end \
--key \
--highlight-users \
--date-format "%d/%m/%y" \
--hide mouse,filenames \
--file-idle-time 0 \
--max-files 0 \
--background-colour 000000 \
--font-size 25 \
--output-ppm-stream - \
--output-framerate 30 \
| ffmpeg -y -r 30 -f image2pipe -vcodec ppm -i - -b 65536K movie.mp4
@mmakarin
Copy link

Thanks!

@allco
Copy link

allco commented Mar 18, 2022

You saved an hour for me. Thank man!

@tormich
Copy link

tormich commented May 26, 2022

🙏 Thank you!

@typomaker
Copy link

👍 👍 👍

@alexander-zierhut
Copy link

+1

@fwolfst
Copy link

fwolfst commented Feb 28, 2023

for me, the --hide param should be listed twice since comma-separating the values seems not to work. So

--hide mouse \
--hide filenames \

@dblock
Copy link

dblock commented Jul 7, 2023

On MacOS I had to add -pix_fmt yuv420p to make the output workable with quicktime & friends, per https://superuser.com/questions/820134/why-cant-quicktime-play-a-movie-file-encoded-by-ffmpeg

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