[Libav-user] cant find
Pavle Rackovic
rpavle at gmail.com
Wed Jan 9 15:43:10 CET 2013
Hi,
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).
I tried with source like this:
AVFormatContext* pFormatCtx;
avformat_open_input(pFormatCtx, input_path, NULL, NULL);
..
avformat_find_stream_info((*pFormatCtx), NULL);
..
/* I hope i'll get FF_PROFILE_AAC_MAIN or FF_PROFILE_AAC_LOW or
FF_PROFILE_AAC_HE ... */
int wanted_profile =
pFormatCtx->streams[audio_stream_index]->codec->profile;
/* but I always get FF_PROFILE_UNKNOWN :( */
Can anyone help me to find out how to do it, please.
--
Pozdrav, Pavle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130109/f5ee04aa/attachment.html>
More information about the Libav-user
mailing list