[FFmpeg-devel] Support TrueHD for MPEG Transport Stream format
Michael Niedermayer
michaelni at gmx.at
Tue Oct 22 09:28:02 CEST 2013
On Tue, Oct 22, 2013 at 12:16:11AM +0800, 刘 岐 wrote:
>
> 在 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
./ffmpeg -i 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 ref.m2ts
apply libavformat/mpegts.c hunk
make
./ffmpeg -i 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
md5sum out.m2ts ref.m2ts
de1ce1ec6f9ffce777ba175173c0577f out.m2ts
de1ce1ec6f9ffce777ba175173c0577f ref.m2ts
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Frequently ignored answer#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131022/f4e91ca1/attachment.asc>
More information about the ffmpeg-devel
mailing list