Contents

参考

安装过程参考这个链接

最新的ffmpeg-wrapper

上面的项目作者已经不再更新,可以参考这个项目:https://github.com/darknebular/Wrapper_VideoStation/tree/main或者https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher,如果需要使用这个项目,则需要修改代码,使用最新wrapper文件(2024.05.30)

我的软件版本信息如下

软件版本更新之后都正常工作了。

DMS:6.2.4-25556
video station:2.5.0-1656
ffmpeg:4.3.2-37
Advanced Media Extensions:1.0.1-0025

更新了最新的DSM7.0后

DMS:7.0-41890
video station:3.0.1-2067
ffmpeg:4.3.2-37
Advanced Media Extensions:1.1.1-0202

更新了最新的DSM7.1后

DMS:7.1-42661
video station:3.0.3-2084
ffmpeg:4.3.3-39
Advanced Media Extensions:2.0.0-1017

更新了最新的DSM 7.1-42661 Update 3

DMS:7.1-42661 Update 3
video station:3.0.3-2084
ffmpeg:4.4.2-44
Advanced Media Extensions:2.0.1-1021

更新了最新的DSM 7.1.1-42962

DMS:7.1.1-42962
video station:3.0.4-2107
ffmpeg:4.4.2-46
Advanced Media Extensions:3.0.1-2004

更新了最新的DSM 7.1.1-42962-update2

DMS:7.1.1-42962-update2
video station:3.0.5-2503
ffmpeg:4.4.3-47
Advanced Media Extensions:3.0.1-2004

更新了最新的DSM 7.2-64570 Update 1

DMS:DSM 7.2-64570 Update 1
video station:3.1.0-3153
ffmpeg:4.4.4-49
Advanced Media Extensions:3.1.0-3005

更新了最新的DSM 7.2.1-69057 Update 5(2024.05.30)

DMS:DSM 7.2.1-69057 Update 5
video station:3.1.1-3168
ffmpeg:4.4.4-49
Advanced Media Extensions:3.1.0-3005

具体操作

# use root user with password
sudo -i

# backup video station's ffmpeg 
mv -n /var/packages/VideoStation/target/bin/ffmpeg /var/packages/VideoStation/target/bin/ffmpeg.orig

# download latest ffmpeg wrapper
wget -O - https://gist.githubusercontent.com/BenjaminPoncet/bbef9edc1d0800528813e75c1669e57e/raw/391c9fcd770424d9abbb7ef2150793e35ecc32b8/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

# back up 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

# Apply the WRAPPER to the decoder diff DSM6.x and DSM7.x:

DS 6.x.x执行下面指令

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
chmod 755 /var/packages/CodecPack/target/bin/ffmpeg33

DS 7.x.x执行下面指令

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/ffmpeg41
chmod 755 /var/packages/CodecPack/target/bin/ffmpeg41
# restart video station
sudo synopkg restart VideoStation

卸载

sudo rm /var/packages/VideoStation/target/bin/ffmpeg

sudo mv -f /var/packages/VideoStation/target/bin/ffmpeg.orig /var/packages/VideoStation/target/bin/ffmpeg

sudo rm /var/packages/VideoStation/target/lib/libsynovte.so

sudo mv -f /var/packages/VideoStation/target/lib/libsynovte.so.orig /var/packages/VideoStation/target/lib/libsynovte.so

# DSM 6.x
sudo rm /var/packages/CodecPack/target/bin/ffmpeg33
sudo mv /var/packages/CodecPack/target/bin/ffmpeg33.orig /var/packages/CodecPack/target/bin/ffmpeg33

# DSM 7.x
sudo rm /var/packages/CodecPack/target/bin/ffmpeg41
sudo mv /var/packages/CodecPack/target/bin/ffmpeg41.orig /var/packages/CodecPack/target/bin/ffmpeg41

完美解决!!!