2 回答
TA貢獻1801條經驗 獲得超16個贊
使用最新版ffmpeg-0.11 libx264-125,使用默認編碼時,用Eyecard發現profile-idc一直是PROFILE_H264_HIGH (profile-idc=100),但是項目要求是baseline,設置了AVCodecContext的->profile=FF_PROFILE_H264_BASELINE也沒用,經過多方查找,需要如下解決方法:AVDictionary *opts = NULL;av_dict_set(&opts, "profile", "baseline", 0); /* open the codec */ if (avcodec_open2(m_pEncoderCtx, encoder, &opts) < 0) 真是曲折啊。
TA貢獻1887條經驗 獲得超5個贊
使用最新版ffmpeg-0.11 libx264-125,使用默認編碼時,用Eyecard發現profile-idc一直是PROFILE_H264_HIGH (profile-idc=100),但是項目要求是baseline,設置了AVCodecContext的->profile=FF_PROFILE_H264_BASELINE也沒用,經過多方查找,需要如下解決方法:AVDictionary *opts = NULL;av_dict_set(&opts, "profile", "baseline", 0); /* open the codec */ if (avcodec_open2(m_pEncoderCtx, encoder, &opts) < 0) 真是曲折啊。
- 2 回答
- 0 關注
- 1439 瀏覽
添加回答
舉報
