How to encode audio in AAC-LC, AAC-HE-V1, AAC-HE-V2 using libavcodec?
I am trying to encode audio in AAC-LC,AAC-HE-V1, AAC-HE-V2 using
libavcodec/ffmpeg APIs.
But when I am using the following configuration and API calls.It says
"invalid AAC profile."
AVCodecContext *encoder_ctx;
encoder_ctx->codec_id = AV_CODEC_ID_AAC;
encoder_ctx->sample_fmt = AV_SAMPLE_FMT_S16;
encoder_ctx->profile = FF_PROFILE_AAC_HE;
encoder = avcodec_find_encoder(encoder_ctx->codec_id);
avcodec_open2(encoder_ctx, encoder, NULL);
Could you please explain what is wrong with this?
No comments:
Post a Comment