[FFmpeg-devel] Support TrueHD for MPEG Transport Stream format

刘 岐 lingjiujianke at gmail.com
Mon Oct 21 18:16:11 CEST 2013


在 2013-10-22,上午12:00,Carl Eugen Hoyos <cehoyos at ag.or.at> 写道:

> 刘 岐 <lingjiujianke <at> gmail.com> writes:
> 
>> --- a/libavformat/mpeg.h
>> +++ b/libavformat/mpeg.h
> 
>> #define STREAM_TYPE_VIDEO_CAVS      0x42
>> 
>> #define STREAM_TYPE_AUDIO_AC3       0x81
>> +#define STREAM_TYPE_AUDIO_TRUEHD    0x83
> 
> How is this related?
> 
>> --- a/libavformat/mpegts.c
>> +++ b/libavformat/mpegts.c
> 
>> /* ATSC ? */
>> static const StreamType MISC_types[] = {
>>     { 0x81, AVMEDIA_TYPE_AUDIO,   AV_CODEC_ID_AC3 },
>> +    { 0x83, AVMEDIA_TYPE_AUDIO,   AV_CODEC_ID_TRUEHD },
> 
> Do you have a sample that needs this part of the 
> patch to be decoded?
> 
http://ffmpeg.org/pipermail/ffmpeg-user/2013-October/017956.html
test sample is here :
http://blog.fs-linux.org/truehd.m2ts
http://blog.fs-linux.org/truehd2.m2ts

use command ffmpeg -i ~/Downloads/truehd.m2ts -vn -acodec copy -map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -map 0:5 -map 0:6 -map 0:7 -map 0:8 out.m2ts
and to see the out.m2ts

Steven



More information about the ffmpeg-devel mailing list