Jump to content
XPEnology Community

Recommended Posts

Posted

To be clear, has anyone used a real serial/mac from a different model than the platform they build the loader for and successfully authorized AME?

Example: used real serial/mac for DS920 on loader build for DS3622 and gotten AME to authorized successfully?  Syno HQ is not verifying serial/mac against model number???

Posted
10 hours ago, Orphée said:

Just my 2 cents but this works :

 

 

 

Just need to add 

 

"7.1 42661-3"

 

at the right place :
image.png.6e7232b574585efbfe93029c844162b1.png

 

 

image.thumb.png.d82eca70bc2addf6cbbc5709d3216071.png

 

Is this patch work like AME? If you not active AME but you have activate this patch ¿Have you HVEC and ACC similar than AME?

Posted
4 minutes ago, apriliars3 said:

 

Is this patch work like AME? If you not active AME but you have activate this patch ¿Have you HVEC and ACC similar than AME?

 

Did you look my last screenshot ?

What option did I choose when I applied the patch ?

 

it IS actually AME patched.

 

Posted
53 minutes ago, Orphée said:

 

Did you look my last screenshot ?

What option did I choose when I applied the patch ?

 

it IS actually AME patched.

 

 

Well, if I have activated AME, this command not works.

 

cat /usr/syno/etc/codec/activation.conf

 

If I have activated this patch, this command works. 

 

{"success":true,"activated_codec":["hevc_dec","ac3_dec","h264_dec","h264_enc","aac_dec","aac_enc","mpeg4part2_dec","vc1_dec","vc1_enc"],"token":"123456789987654abc"}

Posted
On 7/28/2022 at 3:47 PM, apriliars3 said:

@Orphée Patch not works with HEVC videos and photos with Synology Photos. Only when active AME works and watch the small capture of the video, without AME only watch gray screen.

photo_2022-07-28_23-35-35.jpg

 

Yup its the same with synology surveillance, it says its activated but when you try to load an h265+ camera stream it says cant be streamed and have to activate advanced media extensions, thank you for sharing this solution but doesn't work, at least not for my intended use.

 

Best regards

  • Like 1
Posted

Hi, im dealing with the same problem and im considering to downgrade to dsm 7.0.1.

Does it fully work on the previous version. If I downgrade will I be able to use SS9 with h265 support?

Thank you.

Posted

I am running TC Redpill with 3622xs loader on 7.1 Update 4. AME doesn't activate, so I changed the grub commands on boot to reflect netif_num=2 and added a 2nd mac address so 2 mac addresses and correct netif_num and AME still does NOT activate. Guess that netif_num isn't the solution?

Posted
On 8/7/2022 at 11:20 AM, Reclip said:

Hi, im dealing with the same problem and im considering to downgrade to dsm 7.0.1.

Does it fully work on the previous version. If I downgrade will I be able to use SS9 with h265 support?

Thank you.

In my tests, 7.0.1 worked fine. But you can't always stick to that version. Just a temporary workaround.

  • 1 month later...
  • 3 weeks later...
  • 2 weeks later...
  • 4 weeks later...
  • 3 weeks later...
Posted (edited)

 

How to get AME3.0 to work: Install AME package, and run the following python script to get latest codec!

import hashlib
import os

r = ['669066909066906690', 'B801000000', '30']
s = [(0x1F28, 0), (0x48F5, 1), (0x4921, 1), (0x4953, 1), (0x4975, 1), (0x9AC8, 2)]

prefix = '/var/packages/CodecPack/target/usr'
so = prefix + '/lib/libsynoame-license.so'

print("Patching")
with open(so, 'r+b') as fh:
    full = fh.read()
    if hashlib.md5(full).digest().hex() != 'fcc1084f4eadcf5855e6e8494fb79e23':
        print("MD5 mismatch")
        exit(1)
    for x in s:
        fh.seek(x[0] + 0x8000, 0)
        fh.write(bytes.fromhex(r[x[1]]))

lic = '/usr/syno/etc/license/data/ame/offline_license.json'
os.makedirs(os.path.dirname(lic), exist_ok=True)
with open(lic, 'w') as licf:
    licf.write('[{"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}]')


print("Checking whether patch is successful...")
ret = os.system(prefix + "/bin/synoame-bin-check-license")
if ret == 0:
    print("Successful, updating codecs...")
    os.system(prefix + "/bin/synoame-bin-auto-install-needed-codec")
    print("Done")
else:
    print(f"Patch is unsuccessful, retcode = {ret}”)

 

After codec is installed, you have to replace `synocodectool` to an empty bin returning 0. Execute the following shell script as root:

 

cd /var/packages/CodecPack/target/bin
mv synocodectool synocodectool.bak
echo "#!/bin/sh" > synocodectool
chmod 755 synocodectool

 

Enjoy! Please test and feedback!

Edited by wangsiji
Posted

Could you please post more info on your problem? What machine model are you using? Which version of synology? Which version of AME? Could you upload /var/packages/CodecPack/target/usr/lib/libsynoame-license.so for me to have a look?

Posted
9 hours ago, ti9errr said:

I get MD5 mismatch.

Could you please post more info on your problem? What machine model are you using? Which version of synology? Which version of AME? Could you upload /var/packages/CodecPack/target/usr/lib/libsynoame-license.so for me to have a look?

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...