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 = min_buffer_size and max= avg_buffer_size should be in 5% range with avg_buffer_size in ffmpeg to avoid MUST fix issues with Apple meadiastreamvalidator.

...

You will need to set minrate:avgrate:maxrate = avgrate-2.5%:avgrate+2.5% and avgrate=bufsize :buffsize = 1:1:1:1 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.75M9M \
	-maxrate:v:0 10M9M \
	-minrate:v:0 9.5M9M \
	-bufsize:v:0 9.75M9M \
	-b:a:0 192k \
	-muxdelay 0 \
	-muxpreload 0 \
	.
	.
	.