[x265] Dynamic rate control

Ralf Globisch rglobisch at csir.co.za
Tue Oct 13 15:11:31 CEST 2015


> x265_encoder_reconfig does not work yet for bitrate changes.

Ok, thanks for the confirmation. Does the "yet" imply that there is a
plan for this, or that someone is already working on it?
> Yes, as Mario says, I can't imagine encoder reconfiguring to be a good
> solution for adaptive streaming. x265 (and x264) ratecontrol needs
some
> history to "learn" and adapt to content, and bitrate-keeping accuracy
is
> poor for the first couple of seconds.

Ok, makes sense. Thanks for the response!





On Tue, Oct 13, 2015 at 11:42 AM, Mario *LigH* Rohkrämer
<contact at ligh.de>
wrote:

> Am 12.10.2015, 18:07 Uhr, schrieb Ralf Globisch
<rglobisch at csir.co.za>:
>
> Hi,
>>
>> I'm trying to use x265 in a adaptive streaming scenario i.e. adapting
to
>> network conditions.
>>
>> Calling x265_encoder_reconfig to change the bitrate does not work.Is
>> there a way of doing this without closing and re-opening the codec?
>>
>> I've tried the following:
>>
>> x265_param* params;
>> x265_encoder* encoder;
>> ....
>> params->rc.bitrate = uiNewTargetBitrate;
>> int res = x265_encoder_reconfig(encoder, params);
>>
>> While the call does not fail, it doesn't seem to affect the rate.
>>
>> Thanks,
>> Ralf
>>
>
> So you are using a client-to-server feedback control, trying to
control
> the video bitrate based on the download speed, in a realtime encode
> scenario?
>
> The usual approach I knew so far was providing several video streams
with
> different setups and switching between them (like in MPEG DASH, as
used by
> YouTube for HD video features).
>
> I don't know the interna, but I could imagine that reconfiguring the
> bitrate control will have a quite slow effect, probably only from the
next
> GOP on, when it comes to effect at all. I wonder if you may have to
force a
> kind of encoder reset after reconfiguring... Just a thought.
>
> --
>
> Fun and success!
> Mario *LigH* Rohkrämer
> mailto:contact at ligh.de
>
>
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>



-- 
Deepthi Nandakumar
Engineering Manager, x265
Multicoreware, Inc

-- 
This message is subject to the CSIR's copyright terms and conditions,
e-mail legal notice, and implemented Open Document Format (ODF)
standard. 
The full disclaimer details can be found at
http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by
MailScanner, 
and is believed to be clean.

Please consider the environment before printing this email.




-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.

Please consider the environment before printing this email.



More information about the x265-devel mailing list