I try to create video with gource. I succeed with the following command line:
gource $LOG_FILE --log-format custom --stop-at-end --caption-file ${FILENAME}_captions.log --caption-duration 3 --title $TITLE --seconds-per-day 0.7 --auto-skip-seconds 1 --date-format\
"%d/%m/%y" --hide "mouse,progress" --user-scale 0.6 --caption-size 20 -1380x950 -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420\
p -crf 1 -threads 4 -bf 0 $FILENAME.mp4
But the video are too big, 9Go for 4 min. How can I reduce the size with ffmpeg?
I use Fedora.
-crf 1
, but-bf 0
makes little sense. x264 only uses B frames when they will help overall quality. If you need compat with ancient hardware players, use-profile baseline
. (One case where x264's b-frame decisions aren't optimal (or weren't in 2009?) is a series of not-very-similar still pictures, where lots of I macroblocks are needed: forum.doom9.org/showthread.php?t=145005)-threads
if you want it not to saturate all your CPUs. (like ifgource
needs significant CPU time?)