参考

安装过程参考这个链接

最新的ffmpeg-wrapper

我的软件版本信息如下

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

具体操作

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

# download latest ffmpeg wrapper
sudo wget -O - https://gist.github.com/BenjaminPoncet/bbef9edc1d0800528813e75c1669e57e > /var/packages/VideoStation/target/bin/ffmpeg

# Change ownership and mode of the script
sudo chown root:VideoStation /var/packages/VideoStation/target/bin/ffmpeg
sudo chmod 750 /var/packages/VideoStation/target/bin/ffmpeg
sudo chmod u+s /var/packages/VideoStation/target/bin/ffmpeg

# back up VideoStation's libsynovte.so
sudo cp -n /var/packages/VideoStation/target/lib/libsynovte.so /var/packages/VideoStation/target/lib/libsynovte.so.orig
sudo chown VideoStation:VideoStation /var/packages/VideoStation/target/lib/libsynovte.so.orig

# Patch libsynovte.so to authorize DTS, EAC3 and TrueHD
sudo 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

完美解决!!!!

发表评论