<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<div><br></div><div>I am trying to use x264enc plugin with VBV buffer. However, I see that I need to set the "bitrate" and "vbv-buf-capacity". However, I am wondering if the encoder enters to 1-pass ABR mode since I set the bitrate, which is what I don't want. Could anyone give me an example settings for VBV buffer? What I currently have is:</div><div><pre style="margin-top: 0px; margin-bottom: 0px;">g_object_set(<span style=" color:#000080;">G_OBJECT</span>(<span style=" color:#800000;">_videoEncoder</span>),</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">"tune"</span>,<span style=" color:#c0c0c0;"> </span>(<span style=" color:#800080;">guint</span>)<span style=" color:#000080;">4</span>,</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">"speed-preset"</span>,<span style=" color:#c0c0c0;"> </span>(<span style=" color:#800080;">guint</span>)<span style=" color:#000080;">1</span>,</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">"byte-stream"</span>,<span style=" color:#c0c0c0;"> </span>(<span style=" color:#800080;">gboolean</span>)<span style=" color:#000080;">TRUE</span>,</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">"bitrate"</span>,<span style=" color:#c0c0c0;"> </span>(<span style=" color:#800080;">guint</span>)<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">7500</span>,</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">"vbv-buf-capacity"</span>,<span style=" color:#c0c0c0;"> </span>(<span style=" color:#800080;">guint</span>)<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">1500</span>,</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style="font-family: Calibri, sans-serif; font-size: 12pt; color: rgb(192, 192, 192);"> </span><span style="font-family: Calibri, sans-serif; font-size: 12pt; color: rgb(0, 128, 0);">"intra-refresh"</span><span style="font-family: Calibri, sans-serif; font-size: 12pt;">,</span><span style="font-family: Calibri, sans-serif; font-size: 12pt; color: rgb(192, 192, 192);"> </span><span style="font-family: Calibri, sans-serif; font-size: 12pt;">(</span><span style="font-family: Calibri, sans-serif; font-size: 12pt; color: rgb(128, 0, 128);">gboolean</span><span style="font-family: Calibri, sans-serif; font-size: 12pt;">)</span><span style="font-family: Calibri, sans-serif; font-size: 12pt; color: rgb(0, 0, 128);">TRUE</span><span style="font-family: Calibri, sans-serif; font-size: 12pt;">,</span><span style="font-family: Calibri, sans-serif; font-size: 12pt; color: rgb(192, 192, 192);"> </span></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">NULL</span>);</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><br></pre><pre style="margin-top: 0px; margin-bottom: 0px;"><br></pre><pre style="margin-top: 0px; margin-bottom: 0px;">I just want to have ultrafast-zerolatency encoding with VBV buffers set to <span style="font-family: Calibri, sans-serif; font-size: 12pt; color: rgb(128, 0, 0);">param</span><span style="font-family: Calibri, sans-serif; font-size: 12pt;">.</span><span style="font-family: Calibri, sans-serif; font-size: 12pt; color: rgb(128, 0, 0);">rc</span><span style="font-family: Calibri, sans-serif; font-size: 12pt;">.</span><span style="font-family: Calibri, sans-serif; font-size: 12pt; color: rgb(128, 0, 0);">i_vbv_max_bitrate= 10000, </span><span style="font-family: Calibri, sans-serif; font-size: 12pt; color: rgb(128, 0, 0);">param</span><span style="font-family: Calibri, sans-serif; font-size: 12pt;">.</span><span style="font-family: Calibri, sans-serif; font-size: 12pt; color: rgb(128, 0, 0);">rc</span><span style="font-family: Calibri, sans-serif; font-size: 12pt;">.</span><span style="font-family: Calibri, sans-serif; font-size: 12pt; color: rgb(128, 0, 0);">i_vbv_buffer_size= 10000.</span></pre><pre style="margin-top: 0px; margin-bottom: 0px;"><span style="font-family: Calibri, sans-serif; font-size: 12pt; color: rgb(128, 0, 0);"><br></span></pre><pre style="margin-top: 0px; margin-bottom: 0px;"><span style="font-family: Calibri, sans-serif; font-size: 12pt; color: rgb(128, 0, 0);">Thanks.</span></pre></div> </div></body>
</html>