[FFmpeg-user] m2ts file with TRUEHD audio

Jacky 690271929 at qq.com
Thu Oct 17 10:01:59 CEST 2013


carl:


i have upload the m2ts file here:
http://blog.fs-linux.org/truehd.m2ts, i debug /libavformat/mpegts.c and /libavformat/mpegenc.c, it seems demux suppport truehd, but mux don't support.


we have to add something  in function mpegts_write_pmt()  of /libavformat/mpegenc.c? do you have some infomation of truehd?


switch(st->codec->codec_type) {
        case AVMEDIA_TYPE_AUDIO:
            if(st->codec->codec_id==AV_CODEC_ID_EAC3){
                *q++=0x7a; // EAC3 descriptor see A038 DVB SI
                *q++=1; // 1 byte, all flags sets to 0
                *q++=0; // omit all fields...
            }
            if(st->codec->codec_id==AV_CODEC_ID_S302M){
                *q++ = 0x05; /* MPEG-2 registration descriptor*/
                *q++ = 4;
                *q++ = 'B';
                *q++ = 'S';
                *q++ = 'S';
                *q++ = 'D';
            }

             if(st->codec->codec_id==AV_CODEC_ID_TRUEHD){
              ????????????
             }
....
}


thank you very much.


More information about the ffmpeg-user mailing list