[Libav-user] infinite loop in avcodec_encode_audio when encoding AAC

jan hölscher jan.hoelscher at codergrid.de
Sat Aug 6 11:55:55 CEST 2011


One other thing,

Allways allocate memory with av_malloc instead of malloc and free it with
av_free.

Regards,
Jan
Am 06.08.2011 11:19 schrieb "Josh Gargus" <josh at schwa.ca>:
> I'm also not sure which encoder I'm using. I meant to be using faac, but I
think that I may be using Konstantin Shishkov's encoder. How would I tell?
>
> I'm finding the codec with avcodec_find_encoder(CODEC_ID_AAC). When I try
instead calling avcodec_find_encoder_by_name(), it fails with "libfaac" and
"libvo_aacenc", and succeeds with "aac".
>
> Might I have more luck with libfaac or libvo_aacenc?
>
> Cheers,
> Josh
>
>
> On Aug 6, 2011, at 2:00 AM, Josh Gargus wrote:
>
>> On Aug 6, 2011, at 1:39 AM, jan hölscher wrote:
>>> What value is stored in audioCodec->frame_size, i think it is 0.
>>>
>>>
>>
>> No, audioCodec->frame_size is 1024.
>>
>> I should also mention that it does not hang immediately… it will encode
successfully for several seconds before entering the infinite loop.
>>
>> Cheers,
>> Josh
>>
>>
>>> Regards,
>>> Jan
>>>
>>> Am 06.08.2011 07:26 schrieb "Josh Gargus" <josh at schwa.ca>:
>>> > I'm running into a problem that seems essentially the same as:
>>> >
>>> >
http://stackoverflow.com/questions/2410459/encode-audio-to-aac-with-libavcodec
>>> >
>>> > … except that I'm already encoding at a far lower bitrate than the
threshold that started to cause him problems (I encode at 64000bits/sec, and
he was OK below 386000bits/sec).
>>> >
>>> > Has anyone else seen anything else like this? I'll be happy to provide
more details if anyone is interested.
>>> >
>>> > Thanks,
>>> > Josh
>>> _______________________________________________
>>> Libav-user mailing list
>>> Libav-user at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110806/690ecf9b/attachment.html>


More information about the Libav-user mailing list