[Libav-user] New encoding / decoding API
yijinliu at gmail.com
Sat Oct 22 01:25:19 EEST 2016
On Wed, Oct 19, 2016 at 8:03 PM, Shu Wang <halfelf.ronin at gmail.com> wrote:
> Hi Liu,
> *codec -> codecpar* 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.
> 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:
Thanks. I just got it done.. The confusing things for me are when to set
these various fields of AVStream.codecpar or AVCodecContext, when to copy
from one to the other other, especially the time_base.
For decoding / encoding, demux / mux, there are some subtle differences.
Unfortunately, there are limited documentation and related code comments
are not very clear for me.
What I did is to read the ffmpeg.c and try to figure out what it does. It
would be nice if the examples are updated in time.
> On Thu, Oct 20, 2016 at 6:13 AM, Chao Liu <yijinliu at gmail.com> wrote:
>> 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()/avcodec_receive_frame() instead
>> of avcodec_decode_video2. Are there any examples how to do the transition?
>> I noticed that all these examples
>> <https://www.ffmpeg.org/doxygen/3.1/examples.html> are still using the
>> old APIs. Should they be updated?
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
> Shu. Wang @ Bestminr
> Libav-user mailing list
> Libav-user at ffmpeg.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user