[Libav-user] [FFmpeg-devel] audio_encode_example

Abhishek Ballaney denim83 at yahoo.com
Thu Mar 1 14:04:21 CET 2012

Hi all,

Thanks for your valuable inputs.  Am attaching audio_encode_example() using new API of
avcodec_encode_audio2().  Its working for me now!


--- On Thu, 1/3/12, Don Moir <donmoir at comcast.net> wrote:

From: Don Moir <donmoir at comcast.net>
Subject: Re: [Libav-user] [FFmpeg-devel]  audio_encode_example
To: libav-user at ffmpeg.org
Date: Thursday, 1 March, 2012, 3:28 AM

> i've read ffmpeg-0.10\doc\examples\decoding_encoding.c. Its having
> audio_encode_example() using avcodec_encode_audio() (which is deprecated).

> Can someone provide audio_encode_example() using new API of
> avcodec_encode_audio2()?

If you look in libavcodec\utils.c you will see that avcodec_encode_audio now
calls avcodec_encode_audio2. You can look at the code for
avcodec_encode_audio (utils.c) and check how it now handles
avcodec_encode_audio2 and that should be enough for you to move to

Libav-user mailing list
Libav-user at ffmpeg.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120301/9a50ebb7/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: encoding.c
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120301/9a50ebb7/attachment.c>

More information about the Libav-user mailing list