<div dir="ltr"><div><div>Hi,<br><br>I need to find out codec profile of some AAC media file. (I want to know if that file iz HE-ACC or some other codec profile).<br><br></div>I tried with source like this:<br><br><span style="font-family:courier new,monospace">AVFormatContext* </span><span style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">pFormatCtx;<br>
</span>avformat_open_input(pFormatCtx, input_path, NULL, NULL);<br>..<br>avformat_find_stream_info((*pFormatCtx), NULL);<br>..<br></span></div><div><span style="font-family:courier new,monospace">/* I hope i'll get FF_PROFILE_AAC_MAIN or FF_PROFILE_AAC_LOW or FF_PROFILE_AAC_HE ... */<br>
</span></div><div><span style="font-family:courier new,monospace">int wanted_profile = pFormatCtx->streams[audio_stream_index]->codec->profile;<br><br></span></div><div><span style="font-family:courier new,monospace">/* but I always get FF_PROFILE_UNKNOWN :( */</span><br>
<br></div><div>Can anyone help me to find out how to do it, please.<br></div><div><br></div><br clear="all"><div><div><div><div><div><div><br>-- <br>Pozdrav, Pavle
</div></div></div></div></div></div></div>