<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 22, 2016 at 10:31 AM, Víctor M. Jáquez L. <span dir="ltr"><<a href="mailto:vjaquez@igalia.com" target="_blank">vjaquez@igalia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 07/22/16 at 02:43am, Ezequiel Garcia wrote:<br>
> Currently, I am using libx264 to encode analog videos on a video server product.<br>
> I'm near the CPU limit, so I was considering switching to vaapi-based encoding.<br>
> My initial experiments were *very* promising, as my CPU went down like a sack<br>
> of potatoes<br>
><br>
> The only issue I found so far is that file size is greatly increased<br>
> (around 4 times bigger!), yet I'm unable to tune vaapih264enc<br>
> to match libx264.<br>
<br>
</span>Sree can give more details about this than me, but as far as I know,<br>
gstreamer-vaapi generates a lot of I frames with small GOP and that is because<br>
on how gstreamer-vaapi encoders were written originally.<br>
<br>
But Sree right now is working to improve this.<br></blockquote><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Unfortunately We don't have rich set of tuning options like x264 , but we will improve this in future.</div><div><br></div><div>For GOP adjustments, currently we only have "max-bframes" property.You might have already experimented with it :)</div><div><br></div><div>There are few options to reduce the file size,</div><div>-- enable cabac (no need if you are using git master of gstreamer-vaapi where cabac enabled by default)</div><div>-- increase max-bframes value</div><div>-- increase the init-qp value</div><div><br></div><div>Some works to add hierachical encode is on going: <a href="https://cgit.freedesktop.org/~sree/gstreamer-vaapi/log/?h=svc">https://cgit.freedesktop.org/~sree/gstreamer-vaapi/log/?h=svc</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<span class="gmail-HOEnZb"><font color="#888888"><br>
vmjl<br>
</font></span><span class="gmail-im gmail-HOEnZb"><br>
><br>
> Before I start diving into the encoder internals, I was wondering:<br>
><br>
> Is this an intrinsic limitaion of the hardware encoder, or should<br>
> I dig into libva parameters? For example, I haven't found a way to<br>
> change the GOP size to improve compression (while keeping quality).<br>
><br>
> Maybe we need to add extra knobs in the gstreamer frontend?<br>
><br>
> Thanks!<br>
</span><div class="gmail-HOEnZb"><div class="gmail-h5">_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Regards,<br><br>Sreerenj Balachandran<br>Intel Open Source Technology Center</div>
</div></div>