1、套件中心更新最新VideoStation套件

2、安装最新第三方ffmpeg套件

(以下社区中心套件已作废)

套件来源 http://packages.synocommunity.com/

版本4.2.1-23以上支持dts 地址: https://synocommunity.com/package/ffmpeg

[https://packages.synocommunity.com/ffmpeg/23/ffmpeg.v23.f15047[apollolake-avoton-braswell-broadwell-broadwellnk-bromolow-cedarview-denverton-dockerx64-grantley-kvmx64-x86-x86_64].spk](https://link.zhihu.com/?target=https%3A//packages.synocommunity.com/ffmpeg/23/ffmpeg.v23.f15047%5Bapollolake-avoton-braswell-broadwell-broadwellnk-bromolow-cedarview-denverton-dockerx64-grantley-kvmx64-x86-x86_64%5D.spk)

安装以下套件:

套件来源 https://github.com/th0ma7/synology/tree/master/packages

版本4.2.2支持dts (以下链接仅支持x86_64系统,其他系统架构自己确定选择)

https://github.com/th0ma7/synology/blob/master/packages/ffmpeg_x64-6.1_4.2.2-28.spk

3、将ffmpeg套件的ffmpeg新版程序替换VideoStation套件中的对应旧版程序

cd /var/packages/VideoStation/target/bin
mv ffmpeg ffmpeg.orig
mv ffprobe ffprobe.orig
mv vainfo vainfo.orig
cp -a /var/packages/ffmpeg/target/bin/ffmpeg /var/packages/VideoStation/target/bin/
cp -a /var/packages/ffmpeg/target/bin/ffprobe /var/packages/VideoStation/target/bin/
cp -a /var/packages/ffmpeg/target/bin/vainfo /var/packages/VideoStation/target/bin/
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
chown VideoStation:VideoStation /var/packages/VideoStation/target/bin/ffprobe
chown VideoStation:VideoStation /var/packages/VideoStation/target/bin/vainfo

4、修改类库,添加dts支持

cp -an /var/packages/VideoStation/target/lib/libsynovte.so /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
最后修改:2023 年 08 月 02 日
如果觉得我的文章对你有用,请随意赞赏