voelin-media: bitrate increases reach encoders that cannot change it running

VA-API, AMF, SVT-AV1 and the other wrappers without a live bitrate change
applied a new target only at the next keyframe, so a still screen kept
the bandwidth estimate's low start value for good. An increase of half or
more now reopens the session (a keyframe) once it is five seconds old;
smaller ones still wait for a keyframe, drops below half apply at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
Claude committed 2026-09-29 01:13:44 +00:00
1 parent 0844d35411
commit 0924cfcc82
3 files changed
+50 -4

No files matched your search

+4 -2
View File
@@ -324,8 +324,10 @@ the software encoders above are used as before.
are skipped; alternatives are tried in order.
- Runtime changes: x264, NVENC and Quick Sync take bitrate changes on the
running encoder (FFmpeg's wrappers compare `b` / `maxrate` / `bufsize`
before each frame); the others reopen at the next keyframe, or at once
when the target falls below half (congestion). A new frame rate or size
before each frame); the others reopen at the next keyframe, at once
when the target falls below half (congestion), and when it rose by half
or more and the session is 5 s old (the estimate ramping up after the
start would otherwise never reach the encoder). A new frame rate or size
opens a new session (keyframe); the old one is flushed first, so frames an
encoder with a delay still held come out.
- Buffers: per session one software `AVFrame` (`av_frame_get_buffer`,