[FFmpeg-devel] Add on-the-fly bitrate adjustment for encoding

Michael Niedermayer michael at niedermayer.cc
Fri Oct 11 20:44:08 EEST 2019


On Thu, Oct 10, 2019 at 09:24:08AM -0700, Adrian Cable wrote:
> This is an addition to ffmpeg.c which enables on-the-fly encoder (e.g. H.264) bitrate adjustment using ffmpeg interactive mode. For example, specify “-b:v 299k -bufsize 299k” on the command line to start encoding at 299kbit/sec, then to adjust the encoder bitrate to 200kbit/sec during encoding, type:
> 
>  
> 
> r200000
> 
>  
> 
> -Adrian
> 

>  ffmpeg.c |   40 ++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 40 insertions(+)
> 6c4ba49bdd422993c402395158f9fdbbfd20feb9  0001-Support-on-the-fly-encoder-bitrate-adjustment-using-.patch
> From ba2ee84e34bc57c42203a1f7329ab72e4f19ce02 Mon Sep 17 00:00:00 2001
> From: Adrian Cable <adrian.cable at gmail.com>
> Date: Thu, 10 Oct 2019 09:17:42 -0700
> Subject: [PATCH] Support on-the-fly encoder bitrate adjustment using ffmpeg
>  interactive mode

I think if this is supported it should not be limited to just changing the
bitrate. Also it needs to be ensured that the used encoder and muxer 
can handle such a change

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20191011/e9a95a5d/attachment.sig>


More information about the ffmpeg-devel mailing list