Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You will need to set minrate:maxrate = avgrate-2.5%:avgrate+2.5% and maxrateavgrate=bufsize with ffmpeg to avoid above case. The ffmpeg options you should do is something like below:

Code Block
ffmpeg -i "/tmp/ck_ffmpeg/2021-09-22_305fde4e/src.mp4" \
	.
	.
	.
	-filter:v:0 "scale=iw*sar*min(1920/(iw*sar)\,1080/ih):ih*min(1920/(iw*sar)\,1080/ih), pad=1920:1080:(ow-iw)/2:(oh-ih)/2, format=yuv420p, fps=30" \
	-b:v:0 9.5M75M \
	-maxrate:v:0 10M \
	-minrate:v:0 9M9.5M \
	-bufsize:v:0 10M9.75M \
	-b:a:0 192k \
	-muxdelay 0 \
	-muxpreload 0 \
	.
	.
	.