“The encoder 'aac' is experimental but experimental codecs are not enabled”

前端 未结 5 1656
無奈伤痛
無奈伤痛 2020-12-08 09:07

While converting flv to mp4 conversion using FFMPEG it\'s showing following error

[aac @ 0x2b4b640] The encoder \'aac\         


        
5条回答
  •  伪装坚强ぢ
    2020-12-08 09:43

    You can add the -strict experimental in your C++ code by setting the codec-context strict_std_complaince variable to -2 before opening the codec.

    AVCodecContext *c;
    c->strict_std_compliance = -2;
    
    /* open it */
    ret = avcodec_open2(c, codec, NULL);
    

    See the original author's explanation here.

提交回复
热议问题