[FFmpeg-user] Audio channel mapping from ac3 to aac

firefighter44x firefighter44x at yahoo.com.au
Fri Apr 29 02:36:15 CEST 2011


Had the same problem, this works for me:

add the following at line 91 of libavcodec/libfaac.c

    if (avctx->channels == 6) {
       faac_cfg->channel_map[0] = 2;
       faac_cfg->channel_map[1] = 0;
       faac_cfg->channel_map[2] = 1;
       faac_cfg->channel_map[3] = 4;
       faac_cfg->channel_map[4] = 5;
       faac_cfg->channel_map[5] = 3;
       av_log(avctx, AV_LOG_ERROR, "setting channel map to 2 0 1 4 5 3 /
%d\n", avctx->channels);
    }

--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Audio-channel-mapping-from-ac3-to-aac-tp3051477p3482614.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list