群晖升级ffmpeg

群晖自带的 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

  • 打开配置文件 nano ~/.zshrc
# 加到最后一行

export PATH="/var/packages/ffmpeg/target/bin:$PATH"
  • 加载配置文件, source ~/.zshrc

你可能感兴趣的:(群晖升级ffmpeg)