一键 DSM7 video station支持dts
来源 :kumomoda 隔壁网
-
先安装好ffmpeg套件,另外还需要 Advanced media extensions。
-
下面代码你可以建立计划任务命令执行,计划任务记得用root用户权限
-
也可以在ssh里面切换到root后,直接粘贴后回车执行。
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