[FFmpeg-devel] [PATCH] avcodec/mediacodec: Add support of dynamic bitrate
Dmitrii Okunev
xaionaro at gmail.com
Wed May 29 14:45:48 EEST 2024
Thanks for the response.
On Wed, 2024-05-29 at 12:19 +0800, Zhao Zhili wrote:
> > 在 2024年5月29日,上午5:56,Dmitrii Okunev <xaionaro at gmail.com> 写道:
> >
> > MediaCodec supports parameter "video-bitrate" to change the bitrate
> > on fly. This commit adds capability to use it.
> >
> > It adds option -bitrate_ctrl_socket to the encoder which makes
> > the encoder to create an UNIX socket and listen for messages
> > to change the bitrate.
>
> Thank you for your contribution. However, libavcodec as a library has a clear define of margin, IO such as socket cannot be put into libavcodec. Reconfigure bitrate should be done via libavcodec API.
This was the last resort, I tried to find another solution before posting this patch.
But of course I'll gladly adapt the solution: could you give examples/pointers on how to change values via libavcodec API on fly in ffmpeg?
Best regards, Dmitrii.
More information about the ffmpeg-devel
mailing list