ner0 Posted July 24, 2023 Share #151 Posted July 24, 2023 (edited) 51 minutes ago, dj_nsk said: You need: CPU + integrated GPU DS918+ or DS920+ (see here - transcoding) valid SN/MAC or synocodectool-patch CPU is Intel i5-4590T + iGPU Intel HD Graphics 4600 DS920+ auto-generated SN, synocodectool patch applied to all 5 paths available AME shows enabled HEVC but greyed-out AAC (although AAC still plays), yet the result is the same in that the CPU usage is 99% by ffmpeg alone. EDIT: Cleaned everything and started from scratch, now CPU load is at 60%-70% - it's still a lot considering that in Windows it uses around 1% CPU and 5% iGPU - unsure if this can be further optimized. Edited July 24, 2023 by ner0 Quote Link to comment Share on other sites More sharing options...
dj_nsk Posted July 24, 2023 Share #152 Posted July 24, 2023 (edited) 2 часа назад, ner0 сказал: CPU is Intel i5-4590T + iGPU Intel HD Graphics 4600 DS920+ auto-generated SN, synocodectool patch applied to all 5 paths available AME shows enabled HEVC but greyed-out AAC (although AAC still plays), yet the result is the same in that the CPU usage is 99% by ffmpeg alone. EDIT: Cleaned everything and started from scratch, now CPU load is at 60%-70% - it's still a lot considering that in Windows it uses around 1% CPU and 5% iGPU - unsure if this can be further optimized. check by SSH: ls /dev/dri - must be: card0 renderD128 sudo cat /usr/syno/etc/codec/activation.conf - must be: {"success":true,"activated_codec":["mpeg4part2_dec","h264_dec","h264_enc","ac3_dec","aac_dec","aac_enc","vc1_dec","vc1_enc","hevc_dec"],"token":"cc7*********9"} what package do you use to watch videos? Edited July 24, 2023 by dj_nsk Quote Link to comment Share on other sites More sharing options...
ner0 Posted July 24, 2023 Share #153 Posted July 24, 2023 (edited) 15 hours ago, dj_nsk said: check by SSH: ls /dev/dri - must be: card0 renderD128 sudo cat /usr/syno/etc/codec/activation.conf - must be: {"success":true,"activated_codec":["mpeg4part2_dec","h264_dec","h264_enc","ac3_dec","aac_dec","aac_enc","vc1_dec","vc1_enc","hevc_dec"],"token":"cc7*********9"} what package do you use to watch videos? I checked as you mentioned, this was the output: root@ner0-NAS:~# ls /dev/dri card0 renderD128 root@ner0-NAS:~# cat /usr/syno/etc/codec/activation.conf {"success":true,"activated_codec":["hevc_dec","ac3_dec","h264_dec","h264_enc","aac_dec","aac_enc","mpeg4part2_dec","vc1_dec","vc1_enc"],"token":"123456789987654abc"} As you can see this is using a fixed token due to it being patched AME and not using official Synology account. The HEVC playback is working, but the HW acceleration doesn't seem to be working at all due to the high CPU usage as I mentioned previously, either that or not optimized at all. So far I've only tried using it with VideoStation, that's where I get the 60%-70% CPU usage while playing HEVC videos in the browser. EDIT: I also have this set of permissions, not sure if relevant: root@ner0-NAS:~# ls -al /dev/dri/ total 0 drwxr-xr-x 2 root root 80 Jul 23 22:20 . drwxr-xr-x 14 root root 13980 Jul 23 22:21 .. crw------- 1 root root 226, 0 Jul 23 22:20 card0 crw-rw---- 1 root videodriver 226, 128 Jul 23 22:20 renderD128 Edited July 24, 2023 by ner0 Quote Link to comment Share on other sites More sharing options...
dj_nsk Posted July 25, 2023 Share #154 Posted July 25, 2023 8 часов назад, ner0 сказал: So far I've only tried using it with VideoStation, that's where I get the 60%-70% CPU usage while playing HEVC videos in the browser. I had to abandon the Video Station, because my DSM works as a VM in ESXi. And there, although the passthroughed iGPU is correctly recognized, but for some reason it is the Video Station that cannot use it for HW-transcoding. I now use Jellyfin - HW-transcoding is perfectly configured and works there. Jellyfin is better in terms of functionality, the only drawback/feature is that its own logins/passwords are used, and not DSM users. You can try it too 1 Quote Link to comment Share on other sites More sharing options...
cqoute Posted July 27, 2023 Share #155 Posted July 27, 2023 I'm just curious as to whether the AME app when you open it is meant to show the codecs activated instead of a sign in prompt. I ask because I had been trying to patch my DSM 7.2 for a week feeling like it's been unsuccessful each time as everytime I opened the app, it would just ask me to sign in (although the patch claimed success). I got my h265 camera today and set Surveillance Station to use the h265 stream with AAC and i don't seem to have any problems. This is just out of pure curiosity Quote Link to comment Share on other sites More sharing options...
AleAmadoC Posted July 27, 2023 Share #156 Posted July 27, 2023 Something weird happened to me, I Installed, patched everything was ok, had to move the pc to another place so I powered off, and move it, when it came back on, patch wasnt working anymore, tried to repatch with no luck, uninstalled ame, deleted directories and everithing, it simple fails to patch error 256. Quote Link to comment Share on other sites More sharing options...
Bose321 Posted August 2, 2023 Share #157 Posted August 2, 2023 On 6/23/2023 at 10:54 AM, wiuempe said: I checked on a fresh 7.2 from redpill. The method from @killerzac works, but you have to execute in this order: 1. install AME 2. running codecpatch -p and selecting path 2. In this case, path 1 I already had patched, I don't know if this affects the method or not. 3. opening ame - it asks for login - I guess this is optional. 4. running amepatch 5. opening AME 6. both codecs are there! Unfortunately codecpatch doesn't run on an updated system (Update 2), the amepatch did work, but only shows HEVC on my DS3617xs. Is this to be expected? I only need it for my Synology Photos. Quote Link to comment Share on other sites More sharing options...
danielweb Posted August 6, 2023 Share #158 Posted August 6, 2023 I am running VDSM in a docker https://hub.docker.com/r/kroese/virtual-dsm and need AME for Synology Photos only. I tried following the steps, but still don't see thumbnails generated in Synology Photos. AME shows active but is is because I was not able to run codecpatch? Steps I performed: 1. install AME 2. running codecpatch -p FAILED!: Detected DSM version: 7.2 64570-0 Patch for DSM Version (7.2 64570-0) not found. 4. running amepatch: success 5. opening AME 6. HEVC codec is there and shown active Quote Link to comment Share on other sites More sharing options...
Sundevill Posted August 9, 2023 Share #159 Posted August 9, 2023 On 6/21/2023 at 11:16 AM, killerzac said: Here is the latest AME patch for version 1.1.0-51005 I'm replicating Wangsiji's work. enjoy. codecpatch.sh 15.56 kB · 163 downloads amepatch.py 2.15 kB · 159 downloads On 6/21/2023 at 11:16 AM, killerzac said: Here is the latest AME patch for version 1.1.0-51005 I'm replicating Wangsiji's work. enjoy. codecpatch.sh 15.56 kB · 163 downloads amepatch.py 2.15 kB · 159 downloads codecpatch.sh is for only DSM 7.2-64570 Update 1 but I have DSM 7.2-64570 Update 2 . DO You have for Update 2 pls Quote Link to comment Share on other sites More sharing options...
Sundevill Posted August 15, 2023 Share #160 Posted August 15, 2023 On 12/15/2022 at 4:09 PM, wangsiji said: This will only work with AME version 3 codecpatch.sh is for only DSM 7.2-64570 Update 1 but I have DSM 7.2-64570 Update 3 . Do You have for Update 3? pls Quote Link to comment Share on other sites More sharing options...
chanders Posted August 21, 2023 Share #161 Posted August 21, 2023 On 6/21/2023 at 6:59 AM, Sundevill said: Patch 7.2 64570-1 Do you have a version for Update 3? Quote Link to comment Share on other sites More sharing options...
Sundevill Posted August 22, 2023 Share #162 Posted August 22, 2023 7 hours ago, chanders said: Do you have a version for Update 3? Yes, I do. Quote Link to comment Share on other sites More sharing options...
chanders Posted August 22, 2023 Share #163 Posted August 22, 2023 17 hours ago, Sundevill said: Yes, I do. Can you share the link to it? Thanks! Quote Link to comment Share on other sites More sharing options...
Sundevill Posted August 23, 2023 Share #164 Posted August 23, 2023 8 hours ago, chanders said: Can you share the link to it? Thanks! I dont have patch for DSM 7.2-64570 Update 3 Quote Link to comment Share on other sites More sharing options...
killerzac Posted September 5, 2023 Share #165 Posted September 5, 2023 (edited) as far as I'm aware, update 2 and 3 didn't have the library change, so we just need to add entry ["d316d5b2b080346b4bc197ad5ad7994ac043a15d"]="7.2-64570-1_7.2-64570-1" ["d316d5b2b080346b4bc197ad5ad7994ac043a15d"]="7.2-64570-2_7.2-64570-2" ["d316d5b2b080346b4bc197ad5ad7994ac043a15d"]="7.2-64570-3_7.2-64570-3" and "7.2 64570-2" "7.2 64570-3" I have attached the new patch file codecpatch.sh If this still doesn't work please attach your version of /original/usr/syno/bin/synocodectool also don't forget to run ( fetching the latest codec ). my codec was outdated, resulting the failure of surveillance video playback. : /var/packages/CodecPack/target/usr/bin/synoame-bin-auto-install-needed-codec Edited September 5, 2023 by killerzac Quote Link to comment Share on other sites More sharing options...
darknebular Posted September 6, 2023 Share #166 Posted September 6, 2023 (edited) I have a FFmpeg and (GStreamer) Wrapper that enable to you to play AAC, DTS, EAC3, TrueHD and into the installer (Option P in the Main menu) has a license's patch. The code for the patch is an adaptation and addons by me from the code of wangsiji. https://github.com/darknebular/Wrapper_VideoStation I hope that It is useful for somebody. Give me a star if you find this useful, the Advanced Wrapper is the unique Wrapper with 5.1 support when It needs to transcode something. There is a possibility to uninstall the crack too. Best regards. Edited September 6, 2023 by darknebular 2 Quote Link to comment Share on other sites More sharing options...
Sundevill Posted September 6, 2023 Share #167 Posted September 6, 2023 17 hours ago, killerzac said: as far as I'm aware, update 2 and 3 didn't have the library change, so we just need to add entry ["d316d5b2b080346b4bc197ad5ad7994ac043a15d"]="7.2-64570-1_7.2-64570-1" ["d316d5b2b080346b4bc197ad5ad7994ac043a15d"]="7.2-64570-2_7.2-64570-2" ["d316d5b2b080346b4bc197ad5ad7994ac043a15d"]="7.2-64570-3_7.2-64570-3" and "7.2 64570-2" "7.2 64570-3" I have attached the new patch file codecpatch.sh 15.33 kB · 5 downloads If this still doesn't work please attach your version of /original/usr/syno/bin/synocodectool also don't forget to run ( fetching the latest codec ). my codec was outdated, resulting the failure of surveillance video playback. : /var/packages/CodecPack/target/usr/bin/synoame-bin-auto-install-needed-codec codecpatch.sh is OK but amepatch.py sudo /volume1/homes/amepatch.py /volume1/homes/amepatch.py: line 1: import: command not found /volume1/homes/amepatch.py: line 2: import: command not found /volume1/homes/amepatch.py: line 3: $'\r': command not found /volume1/homes/amepatch.py: line 4: r: command not found /volume1/homes/amepatch.py: line 5: syntax error near unexpected token `(' /volume1/homes/amepatch.py: line 5: `s_old = [(0x1F28, 0), (0x48F5, 1), (0x4921,'1), (0x4953, 1), (0x4975, 1), (0x9AC8, 2)] Quote Link to comment Share on other sites More sharing options...
darknebular Posted September 6, 2023 Share #168 Posted September 6, 2023 2 hours ago, Sundevill said: codecpatch.sh is OK but amepatch.py sudo /volume1/homes/amepatch.py /volume1/homes/amepatch.py: line 1: import: command not found /volume1/homes/amepatch.py: line 2: import: command not found /volume1/homes/amepatch.py: line 3: $'\r': command not found /volume1/homes/amepatch.py: line 4: r: command not found /volume1/homes/amepatch.py: line 5: syntax error near unexpected token `(' /volume1/homes/amepatch.py: line 5: `s_old = [(0x1F28, 0), (0x48F5, 1), (0x4921,'1), (0x4953, 1), (0x4975, 1), (0x9AC8, 2)] Have you tried my code? Quote Link to comment Share on other sites More sharing options...
ner0 Posted September 6, 2023 Share #169 Posted September 6, 2023 5 hours ago, Sundevill said: codecpatch.sh is OK but amepatch.py sudo /volume1/homes/amepatch.py /volume1/homes/amepatch.py: line 1: import: command not found /volume1/homes/amepatch.py: line 2: import: command not found /volume1/homes/amepatch.py: line 3: $'\r': command not found /volume1/homes/amepatch.py: line 4: r: command not found /volume1/homes/amepatch.py: line 5: syntax error near unexpected token `(' /volume1/homes/amepatch.py: line 5: `s_old = [(0x1F28, 0), (0x48F5, 1), (0x4921,'1), (0x4953, 1), (0x4975, 1), (0x9AC8, 2)] How about: sudo python /volume/homes/amepatch.py Quote Link to comment Share on other sites More sharing options...
Sundevill Posted September 6, 2023 Share #170 Posted September 6, 2023 53 minutes ago, ner0 said: How about: sudo python /volume/homes/amepatch.py aaa I am sorry Thanks everything works HEVC 1.1.0-01006 1 Quote Link to comment Share on other sites More sharing options...
RedwinX Posted September 13, 2023 Share #171 Posted September 13, 2023 Hi, Maybe you can help me . I'm on SA6400, with 7.2 update 3. I have a valid SN/MAC (7!), but cannot activate AME. I can connect to my account in global settings, have all functionnality, including activate the ABB & ABO365, but not AME... The Python script doesn't work. It say unsuccessful. and when I launch AME: Quote Link to comment Share on other sites More sharing options...
zexx Posted September 14, 2023 Share #172 Posted September 14, 2023 Hi, I installed DSM 7.2-64570 Update 3 (DVA1622) , patched all synocodectool (using codecpatch.sh), but amepatch.py allways unsuccessful (lib patching ok, but synoame-bin-check-license exiting with code = 1 ), # python amepatch.py Patching MD5 match version AME 1.1.0-51005 date: 21/06/2023 Checking whether patch is successful... Patch is unsuccessful, retcode = 256 # /var/packages/CodecPack/target/usr/bin/synoame-bin-auto-install-needed-codec # echo $? 1 original md5sums: c80251029cb2c95e59624214eeed6eca /volume1/@appstore/CodecPack/bin/synocodectool 09e3adeafe85b353c9427d93ef0185e9 libsynoame-license.so after patches: b003bf42354fe3c577ccc8c5801910f3 /volume1/@appstore/CodecPack/bin/synocodectool 2edfd2cf278f76d9254d3f63fa2c15a1 libsynoame-license.so any ideas ? Please help Quote Link to comment Share on other sites More sharing options...
veersrag Posted September 16, 2023 Share #173 Posted September 16, 2023 Hi, i was able to get AME 1.0.0-00001 with HEVC green tick but now i get this error in photo station -The file cannot be displayed due to a conversion failure. IMG_0845.HEIC unable to patch codecpatch.sh is the above issue related to codecpatch.sh? i am on DSM 7.1.1-42962 Update 6 codecpatchfix.sh: command not found thxs Quote Link to comment Share on other sites More sharing options...
killerzac Posted September 17, 2023 Share #174 Posted September 17, 2023 On 9/14/2023 at 1:30 PM, zexx said: Hi, I installed DSM 7.2-64570 Update 3 (DVA1622) , patched all synocodectool (using codecpatch.sh), but amepatch.py allways unsuccessful (lib patching ok, but synoame-bin-check-license exiting with code = 1 ), # python amepatch.py Patching MD5 match version AME 1.1.0-51005 date: 21/06/2023 Checking whether patch is successful... Patch is unsuccessful, retcode = 256 # /var/packages/CodecPack/target/usr/bin/synoame-bin-auto-install-needed-codec # echo $? 1 original md5sums: c80251029cb2c95e59624214eeed6eca /volume1/@appstore/CodecPack/bin/synocodectool 09e3adeafe85b353c9427d93ef0185e9 libsynoame-license.so after patches: b003bf42354fe3c577ccc8c5801910f3 /volume1/@appstore/CodecPack/bin/synocodectool 2edfd2cf278f76d9254d3f63fa2c15a1 libsynoame-license.so any ideas ? Please help can you check if /usr/syno/etc/license/data/ame/offline_license.json is in-place ? checksum of the library is the same, so nothing suspicious. Quote Link to comment Share on other sites More sharing options...
zexx Posted September 18, 2023 Share #175 Posted September 18, 2023 8 hours ago, killerzac said: can you check if /usr/syno/etc/license/data/ame/offline_license.json is in-place ? checksum of the library is the same, so nothing suspicious. # cat /usr/syno/etc/license/data/ame/offline_license.json [{"appType": 14, "appName": "ame", "follow": ["device"], "server_time": 1666000000, "registered_at": 1651000000, "expireTime": 0, "status": "valid", "firstActTime": 1651000001, "extension_gid": null, "licenseCode": "0", "duration": 1576800000, "attribute": {"codec": "hevc", "type": "free"}, "licenseContent": 1}, {"appType": 14, "appName": "ame", "follow": ["device"], "server_time": 1666000000, "registered_at": 1651000000, "expireTime": 0, "status": "valid", "firstActTime": 1651000001, "extension_gid": null, "licenseCode": "0", "duration": 1576800000, "attribute": {"codec": "aac", "type": "free"}, "licenseContent": 1}] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.