在DSM6.17版本中,Video Station(套件版本号:2.4.10-1632)是可以正常播放含有DTS视频编码或者EAC3音频编码的,随着DSM系统版本和Video Station套件不断升级,群晖却开倒车不支持DST和EAC3了,用Video Station播放含有DTS视频编码或者EAC3音频编码的时候,就会这样提示不支持此视频格式。如果不想更换别的播放器,可以这样解决:
1、打开套件中心,设置,套件来源,新增,名称随意写,位置填写 https://packages.synocommunity.com/ ,确定;(温馨提醒:可能会说小伙伴说添加失败,有可能是这个域名被墙了,需要那个什么,你懂的!)
2、套件中心左边就会多出一个社群,点社群,找到ffmpeg,安装套件;
3、下载中,下载时间由你的网络决定,如果下载速度慢的话,可以把packages.synocommunity.com这个地址放到那个什么里面,让它强制走代理。如果实在不行就手动下载再手动安装(下载地址:https://github.com/th0ma7/synology/tree/master/packages/dsm7-beta);
6、看到ffmpeg套件显示已安装,就是可以;
7、在套件中心,已安装,找到Video Station,点击图标;
11、打开群晖控制面板,终端机和SNMP,在启动SSH功能打勾,并设置一个端口,默认的端口是22,建议改成4位数字的端口号,应用;
12、在Win电脑打开SSH软件(我这里使用的是MobaXterm),以root账号登录,登录成功会如下图显示有root@开头的字样;
13、输入命令,备份ffmpeg原版文件:
mv -n /var/packages/VideoStation/target/bin/ffmpeg /var/packages/VideoStation/target/bin/ffmpeg.orig
2022年9月8日更新:有网友反馈使用上面的命令会使video不显示ass字幕,需要改成:
mv -n /var/packages/VideoStation/target/bin/ffmpeg /var/packages/VideoStation/target/bin/ffmpeg-BACKUP
14、输入命令,备份Video Station套件原版的libsynovte.so文件:
cp -n /var/packages/VideoStation/target/lib/libsynovte.so /var/packages/VideoStation/target/lib/libsynovte.so.orig
15、输入命令,设置Video Station套件原版libsynovte.so备份文件的权限;
chown VideoStation:VideoStation /var/packages/VideoStation/target/lib/libsynovte.so.orig
16、输入命令,备份群晖CodecPack原版的ffmpeg41文件;
cp /var/packages/CodecPack/target/bin/ffmpeg41 /var/packages/CodecPack/target/bin/ffmpeg41.bak
17、输入命令,下载魔改的ffm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TZJUi6E3iFTl+LtjFQPNYk3kJs1JqIwGe+cRhb2kIK+QLsVn8g/c0q6S+3KNTScpXf1MOoqtZ7EXFDvSkvPj59u3lePiOv4tZkU/OO86vLobn4sEsHOVd47Prs8vbCXSJpqzsCwOKCiS0Sr3MW+VtjfZf76jIon1JIr5g727YL38G/O8l7/6l5EFc+Ui3OQsgwTN6dFh9PPYLVmclLP5mwnmJ42Io6uM/Xp+N5Y5V0quefxxzz5k33eRThsPMZt0yHljz5dHz5RHYZ64QnCgpr6ebygtRnclK76xUBBSLaru0xl6y+Z7Jeh6TCOBhkJKYwmlALrufnBfyrqG/fhW2w6zWFkYkgJiJYBcS8PQN9h+DmNjhPICY44AbXvd4rvEoSLHvOSirYrnhKnDQGhSNQA82oZQx8oJolezyKOJo+TcY/LcXwx/y32B0RgdhM7m5uPp4gxqymiawoll18N87SEzblDcejYdoclsTn94UH+8wmmc3U6WOWlQJ90W3KsvWRtnaENZGp7XR0LQYidVaKqHAyNufpfVeWei9bUrv1aXOjsk/cv+byP120iV3o0vu+nPkntI/IvdO60LuhazFSLnci2NgpN9y+f0j9/97uV9dj9515RVNWf112qEJbHnLaoCmEkIBfnhYhqiV5ev3keonSD/NXyd/4hIycp272PxdWtEl7f7fC78BTGYfI90hAAA=" | base64 -d | gunzip > /var/packages/VideoStation/target/bin/ffmpeg
18、输入命令,给文件设置相应的权限:
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
19、输入命令,给Video Station添加 DTS、EAC3、TrueHD支持;
sed -i -e 's/eac3/3cae/' -e 's/dts/std/' -e 's/truehd/dheurt/' /var/packages/VideoStation/target/lib/libsynovte.so
20、输入命令,替换魔改的ffmpeg;
cp /var/packages/VideoStation/target/bin/ffmpeg /var/packages/CodecPack/target/bin/ffmpeg41
21、回到群晖套件中心,已安装,找到Video Station,启动;
24、如果发现不能播放的,有可能是该视频不支持硬解,到设置里面,把启用硬件加速关掉,使用ffmpeg软解,就可以正常播放。
如果DSM6.X版本要解决同样的问题,请参考《利用第三方FFMPEG解码器让群晖的Video Station完美支持DTS、EAC3、TrueHD》。