Versions Compared

Key

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

You need to set buff_size = max_buffer_size in ffmpeg, and * 1.5, min_buffer_size and = max_buffer_size should be in 5% range with * 0.92, avg_buffer_size = max_buffer_size * 0.96, gop=60, fps=30 in ffmpeg to avoid MUST fix issues with Apple meadiastreamvalidator.

...

You will need to set minrate:maxrate = avgrate-5%:avgrate+5% and maxrate=bufsize :buffsize = 0.92:0.96:1:1.5 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" \
	.
	.
	.
	-g 60
	-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.5M6M \
	-maxrate:v:0 10M \
	-minrate:v:0 9M9.2M \
	-bufsize:v:0 10M15M \
	-b:a:0 192k \
	-muxdelay 0 \
	-muxpreload 0 \
	.
	.
	.