Jump to content
XPEnology Community

Advanced Media Extension will not activate dsm7.1-42661


phone guy

Recommended Posts

51 minutes ago, dj_nsk said:

You need:

 

  • 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 by ner0
Link to comment
Share on other sites

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 by dj_nsk
Link to comment
Share on other sites

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 by ner0
Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

 

 

 

Link to comment
Share on other sites

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.

screenshot.png

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.

screenshot.png

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 :-)

Link to comment
Share on other sites

  • 2 weeks later...

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 by killerzac
Link to comment
Share on other sites

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 by darknebular
  • Like 1
Link to comment
Share on other sites

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)]

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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:

image.thumb.png.8a5bbbd5def1f31647c28f40282668d3.png

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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}]
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...