群晖 & QNAP NAS 相关配置记录

包括 EAC3、tmdb 相关

通用

TheMovieDB 连接问题

修改 /etc/hosts 即可。

108.138.246.125 api.themoviedb.org
108.157.4.33 api.themoviedb.org
65.9.82.98 api.themoviedb.org
108.138.246.125 api.themoviedb.org
13.226.235.52 api.themoviedb.org
13.226.235.66 api.themoviedb.org
13.226.235.66 api.themoviedb.org
65.8.158.64 api.themoviedb.org
99.84.192.84 api.themoviedb.org
213.226.235.113 api.themoviedb.org
18.65.25.58 api.themoviedb.org
13.226.235.66 api.themoviedb.org
18.65.181.58 api.themoviedb.org
54.230.130.15 api.themoviedb.org
18.65.181.14 api.themoviedb.org
204.246.164.4 api.themoviedb.org
13.224.163.98 api.themoviedb.org
13.35.166.12 api.themoviedb.org
13.224.163.120 api.themoviedb.org
13.224.163.26 api.themoviedb.org
13.224.163.85 api.themoviedb.org
13.224.163.85 api.themoviedb.org
13.224.163.85 api.themoviedb.org
13.224.163.85 api.themoviedb.org
13.224.163.98 api.themoviedb.org
13.225.94.113 api.themoviedb.org
13.225.94.11 api.themoviedb.org
13.35.24.58 api.themoviedb.org
143.204.121.27 api.themoviedb.org
157.240.1.33 api.themoviedb.org

sonarr skyhook 连接问题


记得重启或者升级了系统的话需要重新加。

QNAP

Let's Encrypt 证书问题

例如 curl -v https://jptv.club,证书显示没有过期但 curl 提示过期。

cd /share/
curl --silent --location --remote-name --insecure https://curl.haxx.se/ca/cacert.pem
mkdir certs
cat cacert.pem | awk 'split_after==1{n++;split_after=0} /-----END CERTIFICATE-----/ {split_after=1} {if(length($0) > 0) print > "certs/cert" n ".pem"}' 
cd certs
for filename in cert*pem;do mv $filename `openssl x509 -hash -noout -in $filename`.0; done;
cp *.0 /etc/ssl/certs/

qnap-letsencrypt是给你开网站用的。

群晖

EAC3 音轨问题

安装 SynoCommunity 的第三方源:

如果旧版群晖遇到了证书问题,使用以下命令解决:

mv /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt.bak
curl -Lko /etc/ssl/certs/ca-certificates.crt https://curl.se/ca/cacert.pem

然后安装 ffmpeg 套件,最后替换掉自带的 ffmpeg 套件。备份在这里这里

mv -n /var/packages/VideoStation/target/bin/ffmpeg /var/packages/VideoStation/target/bin/ffmpeg.orig

wget -O - https://gist.githubusercontent.com/BenjaminPoncet/bbef9edc1d0800528813e75c1669e57e/raw/ffmpeg-wrapper > /var/packages/VideoStation/target/bin/ffmpeg
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

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

sed -i -e 's/eac3/3cae/' -e 's/dts/std/' -e 's/truehd/dheurt/' /var/packages/VideoStation/target/lib/libsynovte.so

cp /var/packages/CodecPack/target/bin/ffmpeg41 /var/packages/CodecPack/target/bin/ffmpeg41.bak

cp /var/packages/VideoStation/target/bin/ffmpeg /var/packages/CodecPack/target/bin/ffmpeg41

同样的,VideoStation 更新了的话要重新做这个操作。至于如何还原:

mv -f /var/packages/VideoStation/target/bin/ffmpeg.orig /var/packages/VideoStation/target/bin/ffmpeg
mv -f /var/packages/VideoStation/target/lib/libsynovte.so.orig /var/packages/VideoStation/target/lib/libsynovte.so
mv -f /var/packages/CodecPack/target/bin/ffmpeg41.bak /var/packages/CodecPack/target/bin/ffmpeg41

如果喜欢本文,欢迎点击下方的「鼓掌」按钮!

如果上面没有加载出任何东西,可以点击这里