Re: [FFmpeg-devel] [WIP PATCH 0/1] avcodec/aacenc: improve bit_rate_tolerance=0

2024-09-15 Thread Lynne via ffmpeg-devel
On 15/09/2024 17:14, Pauli Virtanen wrote: la, 2024-09-14 kello 00:15 +0300, Pauli Virtanen kirjoitti: [clip] - it appears the resulting frame_bits depends also on some other state than s->lambda. iteration with lambda1, lambda2>lambda1, and then again with lambda1 can produce different f

Re: [FFmpeg-devel] [WIP PATCH 0/1] avcodec/aacenc: improve bit_rate_tolerance=0

2024-09-15 Thread Pauli Virtanen
la, 2024-09-14 kello 00:15 +0300, Pauli Virtanen kirjoitti: [clip] > - it appears the resulting frame_bits depends also on some other state > than s->lambda. iteration with lambda1, lambda2>lambda1, and then again > with lambda1 can produce different frame_bits on the two lambda1 > iteration

[FFmpeg-devel] [WIP PATCH 0/1] avcodec/aacenc: improve bit_rate_tolerance=0

2024-09-13 Thread Pauli Virtanen
In the FFMPEG native AAC encoder, bit_rate_tolerance=0 (-bt:a 0) enforces a strict bitrate mode, where maximum length of the AAC frame (frame_bits) is capped below nominal bitrate (rate_bits). It currently seems to have some issues: - encoder can get stuck in an infinite loop - sound quality issu