<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 20, 2016 at 5:59 AM, Tuukka Pasanen <span dir="ltr"><<a href="mailto:pasanen.tuukka@gmail.com" target="_blank">pasanen.tuukka@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>Just wondering is this new decode/encode system here to stay? If
it is all examples should be upgraded as I used ffplay to see how
to make it work (Use the source) but it shouldn't be like that.
codepar is easiest to adapt but lot of old code is going to get
obsolete soon.<br></p></div></blockquote><div>I don't see why not.. I like the new decode / encode API. I have a camera which produces packets containing multiple frames. w/o this change I have to hack the AVPacket structure after decoding, which is ugly and error-prone.</div><div>The new API deals with this problem decently.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><p>
</p>
<p>Sincerely,</p>
<p>Tuukka<br>
</p><div><div class="h5">
<br>
<div class="m_-3790637072168041391moz-cite-prefix">20.10.2016, 06:03, Shu Wang kirjoitti:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Liu,
<div><br>
</div>
<div> <i>codec -> codecpar</i> isn't a big change, and is
easy to upgrade. Clone and pull the snapshot repo, you'll see
some examples has been updated, though not all of them. </div>
<div><br>
</div>
<div> While the new decode/encode API is another story. I
haven't tried these yet. Not many examples I can find. Maybe
the closest one is this: <a href="https://blogs.gentoo.org/lu_zero/2016/03/29/new-avcodec-api/" target="_blank">https://blogs.gentoo.<wbr>org/lu_zero/2016/03/29/new-<wbr>avcodec-api/</a></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Oct 20, 2016 at 6:13 AM, Chao
Liu <span dir="ltr"><<a href="mailto:yijinliu@gmail.com" target="_blank">yijinliu@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi,
<div>I am trying to upgrade our code to 3.1. There are a
lot of warnings about deprecated APIs, like use
AVStream.codecpar instead of AVStream.codec,
use avcodec_send_packet()/avc<wbr>odec_receive_frame()
instead of avcodec_decode_video2. Are there any examples
how to do the transition? I noticed that all these <a href="https://www.ffmpeg.org/doxygen/3.1/examples.html" target="_blank">examples</a> are still using the old
APIs. Should they be updated?</div>
</div>
<br>
______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/list<wbr>info/libav-user</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-3790637072168041391gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">Shu. Wang @ Bestminr<br>
<a href="http://halfelf.me" target="_blank">http://halfelf.me</a></div>
</div>
</div>
<br>
<fieldset class="m_-3790637072168041391mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
Libav-user mailing list
<a class="m_-3790637072168041391moz-txt-link-abbreviated" href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a>
<a class="m_-3790637072168041391moz-txt-link-freetext" href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a>
</pre>
</blockquote>
<br>
</div></div></div>
<br>______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
<br></blockquote></div><br></div></div>