[Libav-user] Need help with transcoding to AAC example

Przemysław Sobala przemyslaw.sobala at gmail.com
Thu Mar 31 13:52:15 CEST 2016


W dniu 31.03.2016 o 12:18, Hendrik Leppkes pisze:
> On Thu, Mar 31, 2016 at 11:55 AM, Przemysław Sobala
> <przemyslaw.sobala at gmail.com> wrote:
>> Hello
>>     I've altered doc/examples/transcoding.c to encode using aac codec:
>>
>
> The transcoding example isn't all the powerful, its specifically
> designed to transcode to the same format for demo purposes, which
> assumes the frame size of the input is the same as the frame size of
> the output.
> If you use another codec, thats not guaranteed anymore, and there
> would need to be a audio fifo to deliver appropriate frames to the
> audio encode API.
>
> There is another example, transcode_aac, which handles this audio fifo.
>
> - Hendrik

OK, so I just have to implement audio fifo from transcode_aac example.

One more question: if I want to change audio sample rate would I have to 
use some auto inserted resampler filter or libswrresample/libavresample 
API (what's the difference)?

--
Best Regards
Przemysław Sobala


More information about the Libav-user mailing list