[Libav-user] What should I do when avcodec_decode_audio4 fails?

YIRAN LI mrfun.china at gmail.com
Mon May 15 16:35:04 EEST 2017


2017-05-15 23:31 GMT+10:00 坚定前行 <powerpan at qq.com>:

>
>
> ---Original---
> *From:* "YIRAN LI"<mrfun.china at gmail.com>
> *Date:* 2017/5/15 21:26:07
> *To:* "This list is about using libavcodec, libavformat,
> libavutil,libavdevice and libavfilter."<libav-user at ffmpeg.org>;
> *Subject:* Re: [Libav-user] What should I do when avcodec_decode_audio4
> fails?
>
>
>
> 2017-05-15 20:00 GMT+10:00 Nicolas George <george at nsup.org>:
>
>> Le sextidi 26 floréal, an CCXXV, YIRAN LI a écrit :
>> > It's okay for me to add silence to makeup the decode failure but how
>> can I
>> > know how many silent samples to insert?
>>
>> If your frames come from a decent format, then the packets have a
>> timestamp.
>>
>> ​Hi Nicolas,
>
> That depends on timestamp, how if timestamp is inaccurate?
>>
>
> tooooooo much worries……  if we met this kind of dump file,just dump it.
>

​ffmpeg command line tool and ffplay handle this perfectly, there's no out
out sync at all. So there must ​be some way to do it. I just want to find a
quick answer instead of checking code myself.

Thanks

so you had solutions already…
>
>> Regards,
>>
>> --
>>   Nicolas George
>> _______________________________________________
>> 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/20170515/6481cc02/attachment.html>


More information about the Libav-user mailing list