[FFmpeg-devel] [PATCH v3 2/3] avcodec: estimate output bitrate for uncompressed video codecs

Tobias Rapp t.rapp at noa-archive.com
Fri Mar 17 13:20:53 EET 2017


On 11.03.2017 16:28, Michael Niedermayer wrote:
> On Tue, Mar 07, 2017 at 03:39:18PM +0100, Tobias Rapp wrote:
>> Allows to get a more realistic total bitrate (and estimated file size)
>> in avi_write_header. Previously a static default value of 200k was
>> assumed.
>>
>> Adds an internal helper function for bitrate guessing.
>>
>> Signed-off-by: Tobias Rapp <t.rapp at noa-archive.com>
>> ---
>>  libavcodec/internal.h                |  6 ++++++
>>  libavcodec/r210enc.c                 | 15 +++++++++++++++
>>  libavcodec/rawenc.c                  |  2 ++
>>  libavcodec/utils.c                   | 21 +++++++++++++++++++++
>>  libavcodec/v210enc.c                 |  3 +++
>>  libavcodec/v308enc.c                 |  3 +++
>>  libavcodec/v408enc.c                 |  2 ++
>>  libavcodec/v410enc.c                 |  3 +++
>>  libavcodec/y41penc.c                 |  1 +
>>  tests/ref/fate/v410enc               |  2 +-
>>  tests/ref/vsynth/vsynth1-bpp1        |  2 +-
>>  tests/ref/vsynth/vsynth1-bpp15       |  2 +-
>>  tests/ref/vsynth/vsynth1-r210        |  2 +-
>>  tests/ref/vsynth/vsynth1-rgb         |  2 +-
>>  tests/ref/vsynth/vsynth1-v210        |  2 +-
>>  tests/ref/vsynth/vsynth1-v210-10     |  2 +-
>>  tests/ref/vsynth/vsynth1-v308        |  2 +-
>>  tests/ref/vsynth/vsynth1-v408        |  2 +-
>>  tests/ref/vsynth/vsynth1-y41p        |  2 +-
>>  tests/ref/vsynth/vsynth1-yuv         |  2 +-
>>  tests/ref/vsynth/vsynth2-bpp1        |  2 +-
>>  tests/ref/vsynth/vsynth2-bpp15       |  2 +-
>>  tests/ref/vsynth/vsynth2-r210        |  2 +-
>>  tests/ref/vsynth/vsynth2-rgb         |  2 +-
>>  tests/ref/vsynth/vsynth2-v210        |  2 +-
>>  tests/ref/vsynth/vsynth2-v210-10     |  2 +-
>>  tests/ref/vsynth/vsynth2-v308        |  2 +-
>>  tests/ref/vsynth/vsynth2-v408        |  2 +-
>>  tests/ref/vsynth/vsynth2-y41p        |  2 +-
>>  tests/ref/vsynth/vsynth2-yuv         |  2 +-
>>  tests/ref/vsynth/vsynth3-bpp1        |  2 +-
>>  tests/ref/vsynth/vsynth3-bpp15       |  2 +-
>>  tests/ref/vsynth/vsynth3-r210        |  2 +-
>>  tests/ref/vsynth/vsynth3-rgb         |  2 +-
>>  tests/ref/vsynth/vsynth3-v210        |  2 +-
>>  tests/ref/vsynth/vsynth3-v210-10     |  2 +-
>>  tests/ref/vsynth/vsynth3-v308        |  2 +-
>>  tests/ref/vsynth/vsynth3-v408        |  2 +-
>>  tests/ref/vsynth/vsynth3-yuv         |  2 +-
>>  tests/ref/vsynth/vsynth_lena-bpp1    |  2 +-
>>  tests/ref/vsynth/vsynth_lena-bpp15   |  2 +-
>>  tests/ref/vsynth/vsynth_lena-r210    |  2 +-
>>  tests/ref/vsynth/vsynth_lena-rgb     |  2 +-
>>  tests/ref/vsynth/vsynth_lena-v210    |  2 +-
>>  tests/ref/vsynth/vsynth_lena-v210-10 |  2 +-
>>  tests/ref/vsynth/vsynth_lena-v308    |  2 +-
>>  tests/ref/vsynth/vsynth_lena-v408    |  2 +-
>>  tests/ref/vsynth/vsynth_lena-y41p    |  2 +-
>>  tests/ref/vsynth/vsynth_lena-yuv     |  2 +-
>>  49 files changed, 96 insertions(+), 40 deletions(-)
>
> should be ok

Pushed.

Thanks,
Tobias




More information about the ffmpeg-devel mailing list