Install ffmpeg and MKVToolNix.
Check mkv tracks info.
mkvinfo -g
Result:
video: H264
audio: dts
subtitle: srt1
subtitle: srt2
Extract tracks
mkvextract tracks "XXX.2012.720p.BluRay.X264.mkv" 0:1.264 1:1.dts 2:1.srt 3:2.srt
Convert dts to aac(native aac codec)
ffmpeg -i 1.dts -acodec aac -ab 640k -strict experimental 1.aac
or Use libfaac(--enable-libfaac)
ffmpeg -i 1.dts -acodec libfaac -ab 576k 1.aac
Convert your subtitles(my last post)
mp4box -ttxt origin.srt
Combine all files
mp4box -add cht.ttxt:hdlr=sbtl:lang=eng -add 1.264:fps=23.976 -add 1.aac:lang=eng output.m4v
[ref]
http://ffmpeg.org/trac/ffmpeg/wiki/AACEncodingGuide
http://rodrigopolo.com/ffmpeg/cheats.php
You may also try this method to play MKV,FLV,VOB,AVI,WMV etc on Apple TV http://www.idealshare.net/itunes-quicktime/apple-tv-mkv-solution.html
回覆刪除