2022/01/06

mkvtools dts to ac3

mkvtools dts to ac3


ffmpeg 參數有點多,麻煩了點,另一支程式 eac3to 滿好用的,很單純
tested: eac3to Interstellar.2014.1080p.BluRay.x264.AC3-WiKi.mkv Interstellar.2014.1080p.BluRay.x264.AC3-WiKi.ac3

先把 dts 轉出

用指令將 dts mka 檔轉成 ac3 檔
eac3to 放在 K:\OneDrive\_greensoft\mkvtoolnix-64-bit-53.0.0\eac3to
進 cmd 時要先修改 path
path=%path%;K:\OneDrive\_greensoft\mkvtoolnix-64-bit-53.0.0\eac3to
這樣不管 cd 到哪邊都可以執行 eac3to 指令

回 mkvtools ,把剛剛 eac3to 轉完的 ac3 檔加回來 
語言是 und (fined) ,記得修一下

最後再合併成一個檔


參考資料
I have no idea why you're using some external tool to extract the streams from mkv, re encode the audio, remux and then copy to the USB stick separately when you could just do it all in one ffmpeg command:

ffmpeg -i input.mkv -c:v copy -c:a ac3 -b:a 320k /path/to/usb/output.mkv
Replac 320k with 640k if you have a 5.1 channel stream, input.mkv with your source file and /path/to/usb/ with the path to the folder on your USB that you want the file in.

I have never encoded with that codec nor audio with >2 channels, so I don't know whether or not it needs some special parameters to work, but I believe it should work just fine.
tested: ffmpeg -i Interstellar.2014.1080p.BluRay.x264.AC3-WiKi.mkv -c:v copy -c:a ac3 -b:a 640k E:\ac3.mkv

沒有留言: