Video station某個版本後,因為版權問題,Synology移除掉了DTS音軌支援,
這邊紀錄如何在更新Video Station app後,手動方式封裝DTS音軌,
以Synology DS916+ Video Station(2.4.9-1626) 為例:
安裝步驟
- 啟用NAS的SSH功能
- 使用PuTTY以SSH連入NAS,並使用admin登入 (PuTTy使用教學)(PuTTY官方下載頁)
- 輸入指令
sudo -i
更換權限為root - 複製並貼上下面的指令 :
# Save VideoStation's ffmpeg
mv -n /var/packages/VideoStation/target/bin/ffmpeg /var/packages/VideoStation/target/bin/ffmpeg.orig
# Injecting the script (last revision aka 12)
wget -O - https://gist.githubusercontent.com/BenjaminPoncet/bbef9edc1d0800528813e75c1669e57e/raw/ffmpeg-wrapper > /var/packages/VideoStation/target/bin/ffmpeg
# Change ownership and mode of the script
chown root:VideoStation /var/packages/VideoStation/target/bin/ffmpeg
chmod 750 /var/packages/VideoStation/target/bin/ffmpeg
chmod u+s /var/packages/VideoStation/target/bin/ffmpeg
# Save VideoStation's libsynovte.so
cp -n /var/packages/VideoStation/target/lib/libsynovte.so /var/packages/VideoStation/target/lib/libsynovte.so.orig
chown VideoStation:VideoStation /var/packages/VideoStation/target/lib/libsynovte.so.orig
# Patch libsynovte.so to authorize DTS, EAC3 and TrueHD
sed -i -e 's/eac3/3cae/' -e 's/dts/std/' -e 's/truehd/dheurt/' /var/packages/VideoStation/target/lib/libsynovte.so
- 重新啟動 VideoStation App(套件管理內停止再啟用)
- 大功告成,優點是可以放心更新了,缺點是每次更新後需要再進行一次DTS安裝(GitHub原文連結 : BenjaminPoncet/ffmpeg-wrapper )