群晖升级ffmpeg

2022-03-15  本文已影响0人  洗洗睡吧i

群晖自带的 ffmpeg 版本较低、支持编码库也比较少, 似乎不支持h265。从 SynoCommunity 升级 ffmpeg。

SynoCommunity 上给出了 DSM7版本 各套件的适配情况:

issue #4524: https://github.com/SynoCommunity/spksrc/issues/4524

1. 先从 SynoCommunity 安装 ffmpeg 套件

2. 设置 Video Station 调用 SynoCommunity 版本的 ffmpeg

https://github.com/SynoCommunity/spksrc/wiki/FAQ-FFmpeg

命令如下:

sudo mv /var/packages/VideoStation/target/bin/ffmpeg /var/packages/VideoStation/target/bin/ffmpeg.old
sudo ln -sf /var/packages/ffmpeg/target/bin/ffmpeg /var/packages/VideoStation/target/bin/ffmpeg
sudo cp -p /var/packages/VideoStation/target/lib/libsynovte.so /var/packages/VideoStation/target/lib/libsynovte.so.old
sudo sed -i 's/eac3/ZXXZ/' /var/packages/VideoStation/target/lib/libsynovte.so
sudo sed -i 's/dts/ZXZ/' /var/packages/VideoStation/target/lib/libsynovte.so
sudo sed -i 's/truehd/ZXZZXZ/' /var/packages/VideoStation/target/lib/libsynovte.so

恢复原来的设置

# Reverse the above changes:

sudo mv -f /var/packages/VideoStation/target/bin/ffmpeg.old /var/packages/VideoStation/target/bin/ffmpeg
sudo mv -f /var/packages/VideoStation/target/lib/libsynovte.so.old /var/packages/VideoStation/target/lib/libsynovte.so

3. 设置 命令行 默认调用 SynoCommunity 版本的 ffmpeg

# 加到最后一行

export PATH="/var/packages/ffmpeg/target/bin:$PATH"
上一篇下一篇

猜你喜欢

热点阅读