诺甘农圆盘

参考资料收集库

用户工具

站点工具


synology:dsm7开放videostation支持ac3等编码播放

群晖DSM7的Video Station激活正常播放EAC3/DTS/TrueHD等专利音轨

首先安装支持DSM7的第三方 ffmpeg 套件,记得选对自己的群晖CPU型号支持,下载地址:

https://github.com/th0ma7/synology/tree/master/packages/dsm7-beta

我的是DS416Play,X86的CPU所以下载了 ffmpeg_x64-7.0_4.3.2-36.spk

然后把以下脚本保存起来放在群晖里面,SSH登录用管理员权限运行。

$sudo bash ./patch_video_2021_dsm7.sh
patch_video_2021_dsm7.sh
# 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
mv /var/packages/CodecPack/target/bin/ffmpeg33 /var/packages/CodecPack/target/bin/ffmpeg33.orig
mv /var/packages/CodecPack/target/bin/ffmpeg41 /var/packages/CodecPack/target/bin/ffmpeg41.orig
cp /var/packages/VideoStation/target/bin/ffmpeg /var/packages/CodecPack/target/bin/ffmpeg33
cp /var/packages/VideoStation/target/bin/ffmpeg /var/packages/CodecPack/target/bin/ffmpeg41

用脚本修改文件后,打开套件中心停用和启动一下Video Station套件,再次打开点击播放带EAC3的电影就不会提示不支持格式了。

资料链接:https://sspai.com/post/66142

synology/dsm7开放videostation支持ac3等编码播放.txt · 最后更改: 2021/06/29 10:14 由 packingbox