FFmpeg bandwidth skyrockets upon scene change after the scene has been identical for 5 minutes.
|Reported by:||adamfenn28||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug:
When RTMP streaming with FFmpeg, using either videotoolbox or x264, and streaming a static image for 5 or more minutes, before a scene change to a different image or motion video, FFmpeg will suddenly produce huge frames upon the scene change, resulting in 2-3x the configured bit rate, for 60 seconds. If the scene is left consistent for longer than 5 minutes, the impact will last for longer than 60 seconds.
How to reproduce:
Stream with FFmpeg using x264 or videotoolbox, and stream a static image for 5 minutes. Observer the output bit rate and output frame size. Then change the scene to a video. The frame size and bit rate will skyrocket. Wait 60 seconds. Continue to observe the bitrate and frame size. They will be reduced.
This is using ffmpeg version 3.2