解决方法转自知乎文章: VideoStation DTS\EAC3\TureHD
首先安装 ffmpeg
- (管理员账号)进入 DSM 桌面,打开套件中心,点击设置 ---> 常规,在信任层级中选择任何发行者;
- 接着点击 套件来源,选择 新增 添加第三方源(https://packages.synocommunity.com/)
- 在刚刚添加的第三方套件源中找到 ffmpeg 进行安装。
解决方案
- 打开SSh终端,以管理员身份登录DSM,键入命令 sudo -i, 输入管理员密码进入root用户 (same password as for "admin")
- 执行下面代码:Copy / paste the following commands:
# 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
- Syno launches /var/packages/CodecPack/target/bin/ffmpeg33 to convert video, so i launch this command:
mv /var/packages/CodecPack/target/bin/ffmpeg33 /var/packages/CodecPack/target/bin/ffmpeg33.orig
cp /var/packages/VideoStation/target/bin/ffmpeg /var/packages/CodecPack/target/bin/ffmpeg33
重启VideoStation (Stop/Start in "Package Center")
享受VideoStation DTS解码播放吧。
更新升级:Update the wrapper (for x64, x86 and old arm arch)
- Copy / paste the following commands:
# Injecting the script (last revision aka 12)
wget -O - https://gist.githubusercontent.com/BenjaminPoncet/bbef9edc1d0800528813e75c1669e57e/raw/ffmpeg-wrapper > /var/packages/VideoStation/target/bin/ffmpeg
卸载安装:Uninstallation (for x64, x86 and old arm arch)
- Copy / paste the following commands:
# Restore VideoStation's ffmpeg, libsynovte.so
mv -f /var/packages/VideoStation/target/bin/ffmpeg.orig /var/packages/VideoStation/target/bin/ffmpeg
mv -f /var/packages/VideoStation/target/lib/libsynovte.so.orig /var/packages/VideoStation/target/lib/libsynovte.so
- Or, more simply, uninstall and re-install VideoStation