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
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to