[x264-devel] X264 dynamic rate control

Ralf Globisch rglobisch at csir.co.za
Thu Nov 5 20:04:19 CET 2015


Thanks for the response. 

> Hi.
> Ratecontrol reconfiguration is not possible when using NAL HRD. You
> should see warning:
> "VBV parameters cannot be changed when NAL HRD is in use\n"
> http://git.videolan.org/gitweb.cgi?p=x264.git;a=blob;f=encoder/ratecontrol.c;hb=HEAD#l706

Hmm, I'm fairly certain I didn't see that warning. I'll double check tomorrow on the machine I was testing on.
> Why do you use i_nal_hrd? It is not like you encoding for bluray that
> you need it. Also why do you use X264_NAL_HRD_CBR and not
> X264_NAL_HRD_VBR which imho more effective for network bandwidth
> utilization? If you really want CBR than you can use:
> p.rc.b_filler = 1;
> instead of:
> p.i_nal_hrd = X264_NAL_HRD_CBR;

I don't really want/need CBR, I found a couple of old posts online that recommended CBR over ABR to do adaptive 
bitrate streaming, and then changing the VBV parameters to adapt the bitrate.

What configuration/parameters would you recommend so that I can stream at some bitrate e.g. 200kbps, and then in response to e.g.
network congestion, reconfigure the codec (without closing and re-opening it) to adapt to a different bitrate e.g. 100kbps?



-- 
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 x264-devel mailing list