<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">ср, 7 нояб. 2018 г. в 14:14, Paul B Mahol <<a href="mailto:onemda@gmail.com">onemda@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 11/7/18, Vasiliy Volkov <<a href="mailto:volk.vasiliy@gmail.com" target="_blank">volk.vasiliy@gmail.com</a>> wrote:<br>
> Hi, again,<br>
><br>
> we've encountered an issue with decoding audio streams. Sometimes audio<br>
> codec headers are not aligned to PES packets (we work with mpegts). So when<br>
> we try to decode such streams libav decoder fails, because he can't find<br>
> where to start decoding process. For such task libav has parsers, which<br>
> need to be used for correct decoding arbitrary bitstreams: first you find<br>
> position of header, next send to decoder. We've find that there are exists<br>
> private api for such task: libavcodec/mpegaudiodecheader.h but it's<br>
> private, and using it in our project is not very clean way, and all public<br>
> API's requires to use avio* methods which we don't like to use.<br>
><br>
> Is there any other of private API way to find audio frames headers<br>
> positions?<br>
><br>
<br>
What is wrong with using parsers?<br></blockquote><div><br></div><div>Parsers are private api and when we compile libav they are not included,</div><div>so we need to copy header file into our project and then access -- it's not good way.</div><div>So what is the proper way?</div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div></div>