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

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

2024-09-13 Thread Pauli Virtanen
w that less re-encoding is done: Before: ffmpeg -i sample.flac -c aac -b:a 200k -bt:a 0 -y before.aac size=2776KiB time=00:03:10.98 bitrate= 119.1kbits/s speed=14.4x After: ffmpeg -i sample.flac -c aac -b:a 200k -bt:a 0 -y after.aac size=3897KiB time=00:03:10.98 bitrate= 167.1kbits/s speed=2

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

2024-09-13 Thread Pauli Virtanen
with AAC encoding to know how to fix the above, that'd need some more work / additional hints. Pauli Virtanen (1): avcodec/aacenc: improve bit_rate_tolerance=0 libavcodec/aacenc.c | 153 +++- libavcodec/aacenc.h | 1 + 2 files chan