天天看點

音頻封裝遇到Malformed AAC bitstream detected的問題

音頻封裝遇到的問題:

 Malformed AAC bitstream detected: use the audio bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg)

解決:

在音頻資料處理之前,加上這句即可:

AVBitStreamFilterContext* aacbsfc = av_bitstream_filter_init("aac_adtstoasc");

原因是FIX:AAC in some container format (FLV, MP4, MKV etc.) need "aac_adtstoasc" bitstream filter (BSF)

繼續閱讀