Jim's Blog
Toggle navigation
Jim's Blog
Home
About Me
Archives
Tags
黑群晖 SA6400 VideoStation 硬解测试
2024-07-12 14:42:10
1415
0
0
jim
> 声明:本文仅供技术学习测试使用,转载请注明出处,不得用于任何商业行为 ## 前期准备 ### 1. 安装 AME 并激活 ### 2. Patch synocodectool > 脚本来自:https://github.com/wirgen/synocodectool-patch 执行下面的脚本: ```shell #!/bin/bash wget https://raw.githubusercontent.com/wirgen/synocodectool-patch/master/patch.sh chmod +x patch.sh ./patch.sh -p ``` 执行输出如下,这里需要输入:`2`,然后按回车 ``` Detected DSM version: 7.2 64570-1 Patch for DSM Version (7.2 64570-1) AVAILABLE! Available binaries to patch/restore: 1) /usr/syno/bin/synocodectool 2) /volume1/@appstore/VideoStation/bin/synocodectool 3) /volume1/@appstore/CodecPack/bin/synocodectool 4) Quit Please choose which binary you want to patch/restore: ``` 最终输出如下: ``` Detected DSM version: 7.2 64570-1 Patch for DSM Version (7.2 64570-1) AVAILABLE! Available binaries to patch/restore: 1) /usr/syno/bin/synocodectool 2) /volume1/@appstore/VideoStation/bin/synocodectool 3) /volume1/@appstore/CodecPack/bin/synocodectool 4) Quit Please choose which binary you want to patch/restore:2 Detected valid synocodectool. Creating backup.. Patching... Patched Creating spoofed activation.conf.. Spoofed activation.conf created successfully ``` ## VideoStation 硬解配置 由于 SA6400 是 AMD 机型,默认 VideoStation 是不支持开启硬解的,需要相关的补丁才行,理论上本教程里的补丁,适用于所有想使用英特尔核显来硬解的机型。 ## 操作步骤 ### 1. 更新 VideoStation 相关补丁 > 在 VideoStation 3.1.0-3153 上测试通过 > 硬解的前提是 AME 正常激活,同时 synocodectool 也正确 Patch 了,请自行研究 > 该教程还需要继续优化,不能正常硬解属于正常情况,可以留言反馈无法硬解的环境、以及影片信息 > 该教程引用了 SynoCommunity 的 `ffmpeg` 套件,以及 `VideoStation-FFMPEG-Patcher` 补丁 执行下面的脚本后,可以在 VideoStation 设置的`高级选项`里,自由切换是否使用`硬件转码` ```shell #!/bin/bash synopkgctl stop VideoStation if [ ! -f /usr/sbin/elf-func-overwrite ]; then wget -O /usr/sbin/elf-func-overwrite -c https://alist.jim.plus/d/public/synology/tools/elf-func-overwrite chmod +x /usr/sbin/elf-func-overwrite fi elf-func-overwrite /var/packages/VideoStation/target/lib/libvideostation_webapi.so _ZN5libvs4util13PlatformUtils12IsGeminiLakeEv "B8 01 00 00 00 C3" chown VideoStation:VideoStation /var/packages/VideoStation/target/lib/libvideostation_webapi.so elf-func-overwrite /var/packages/VideoStation/target/lib/libsynovte.so _ZN5libvs4util13PlatformUtils12IsGeminiLakeEv "B8 01 00 00 00 C3" chown VideoStation:VideoStation /var/packages/VideoStation/target/lib/libsynovte.so elf-func-overwrite /var/packages/VideoStation/target/ui/cgi/advanced_manage.cgi _ZN5libvs4util13PlatformUtils12IsGeminiLakeEv "B8 01 00 00 00 C3" chown VideoStation:VideoStation /var/packages/VideoStation/target/ui/cgi/advanced_manage.cgi wget -O /var/packages/VideoStation/target/etc/TransInfo_VAAPI_HLS https://alist.jim.plus/d/public/synology/config/VideoStation/TransInfo_VAAPI_HLS-3.1.0-3153.json ffmpeg_status=$(synopkg status ffmpeg | jq .status) if [ "$ffmpeg_status" = '"non_installed"' ]; then echo install ffmpeg wget -O /tmp/ffmpeg.spk -c https://packages.synocommunity.com/ffmpeg/49/ffmpeg.v49.f42661%5Bapollolake-avoton-braswell-broadwell-broadwellnk-broadwellnkv2-broadwellntbap-bromolow-cedarview-denverton-epyc7002-geminilake-grantley-kvmx64-purley-r1000-v1000%5D.spk synopkg install /tmp/ffmpeg.spk # rm -f /tmp/ffmpeg.spk fi curl https://raw.githubusercontent.com/AlexPresso/VideoStation-FFMPEG-Patcher/main/patcher.sh | bash # disable apparmor check apparmor=/var/packages/VideoStation/target/apparmor /usr/syno/etc/rc.sysv/apparmor.sh remove_packages_profile 0 VideoStation if [ -e "${apparmor}" ]; then mv -f "${apparmor}" "${apparmor}.bak" fi synopkgctl start VideoStation ``` ### 2. 在引导中更新 `apparmor` 配置 > user-config.yml 配置在 arpl 里的路径为:/mnt/p1/user-config.yml 修改引导第一分区下的 user-config.yml,在 `cmdline` 下新增一行 `apparmor.mode: "complain"`,注意前面加两个空格与下面的参数对齐。 下面是样例,供参考。 ```yaml cmdline: apparmor.mode: "complain" netif_num: "4" ``` 修改完毕后重新构建引导,然后进入 VideoStation 设置里重建索引,然后再开启硬解即可。 ## 效果测试 TODO
Pre: No Post
Next:
基于 AMD R9-6900HX 测试黑群晖系统上驱动 AMD 680M 核显硬解
0
likes
1415
新浪微博
微信
腾讯微博
QQ空间
人人网
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus
Table of content