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

Michael Niedermayer michael at niedermayer.cc
Sat Mar 11 17:28:57 EET 2017


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No snowflake in an avalanche ever feels responsible. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170311/5904b835/attachment.sig>


More information about the ffmpeg-devel mailing list