Skip to content

Instantly share code, notes, and snippets.

@holys
Last active December 19, 2015 08:39
Show Gist options
  • Save holys/5927206 to your computer and use it in GitHub Desktop.
Save holys/5927206 to your computer and use it in GitHub Desktop.
  • generate the raw video file (gource.ppm)

这一步有点慢, 有些卡顿, 但是对后面的播放是没有影响的.

 gource --title "easylib" --hide filenames  -f -1920x1080 --camera-mode overview  --auto-skip-seconds 0.3 --highlight-all-users --elasticity 0.1 -b 000000  --disable-progress -o gource.ppm
  • make video
ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i gource.ppm -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4
  • add audio to video
ffmpeg -i gource.mp4 -i audio.mp3 -map 0 -map 1 -codec copy -shortest one.mp4 
  • 后期处理

剪辑音频

ffmpeg -ss 00:00:14.00 -t 24 -i output.mp3 -ab 256k new.mp3  

Reference: https://code.google.com/p/gource/wiki/Videos

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