x264 --help <div><br></div><div>Look at "--zones"<br><br><div class="gmail_quote">On Mon, Mar 2, 2009 at 4:25 PM, Mark Sauer <span dir="ltr"><<a href="mailto:mark@skitter.tv">mark@skitter.tv</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I am looking at creating an application of x.264, but I would like to be able to specify the bit rate of different sections of the video sequence. <br>
IE, I'd like to be able to say<br>
<br>
frames 1-300 are at 600 kbps<br>
frames 301-450 are at 1200 kbps<br>
frames 451-900 are at 900 kbps<br>
<br>
and so on. I noticed there is an interface to the library "x264_encoder_reconfig", but the body doesn't seem to allow for changes to the bitrate.<br>
<br>
Would it be safe to do something like:<br>
<br>
x264_encoder_open( set bitrate to 600 );<br>
<br>
for(i=0;i<300;i++) {<br>
x264_encoder_encode( frame i );<br>
store the nal blocks in a file, etc<br>
}<br>
<br>
x264_encoder_close();<br>
x264_encoder_open( set bitrate to 1200 );<br>
<br>
for(i=300;i<450;i++) {<br>
x264_encoder_encode( frame i );<br>
store the nal blocks in a file, etc<br>
}<br>
<br>
x264_encoder_close();<br>
x264_encoder_open( set bitrate to 900 );<br>
<br>
for(i=451;i<900;i++) {<br>
x264_encoder_encode( frame i );<br>
store the nal blocks in a file, etc<br>
}<br>
<br>
x264_encoder_close();<br>
<br>
Or would there possibly be some issues with this approach? <br>
Thanks<br><font color="#888888">
Mark Sauer<br>
_______________________________________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org" target="_blank">x264-devel@videolan.org</a><br>
<a href="http://mailman.videolan.org/listinfo/x264-devel" target="_blank">http://mailman.videolan.org/listinfo/x264-devel</a><br>
</font></blockquote></div><br></div>