Jump to content
XPEnology Community

AME 3.0 patcher


wangsiji

Recommended Posts

  • 4 weeks later...
  • 2 weeks later...

Hey Guys,

I am confused, does the Wrapper Script activate the AME ?
Because I read:
image.thumb.png.6d78802d190533b2e0db65a4f224aac4.png

I'm running:
- DSM 7.2.1-69057
- RS4021xs+
- AME 3.1.0-3005

When I run the python script from the first thread, I get:

root@MyNAS:~# python ameptacher.py
Patching
MD5 mismatch



How do I load and activate the License in AME ?
 

Edited by ULSY
Link to comment
Share on other sites

Just ignore my previous message.
The Wrapper Script: https://github.com/darknebular/Wrapper_VideoStation is really cool and easy to use.
A big +1 to @darknebular

simply run:

bash -c "$(curl "https://raw.githubusercontent.com/darknebular/Wrapper_VideoStation/main/installer.sh")"


and select from the Menu: P
image.thumb.png.5495e49b3783f3bcdc4d3053dd9df791.png

And than again: P
image.png.559938d108ecaa654c029789b3117c42.png

Than have Fun:

image.png.31748231d63de10a57a83e296a23c77c.png

Just last last question: How do I load the License in AME ??

image.thumb.png.112b4121f93815023e9a4b9538be1d36.png

Edited by ULSY
Link to comment
Share on other sites

2 hours ago, ULSY said:

Just ignore my previous message.
The Wrapper Script: https://github.com/darknebular/Wrapper_VideoStation is really cool and easy to use.
A big +1 to @darknebular

simply run:

bash -c "$(curl "https://raw.githubusercontent.com/darknebular/Wrapper_VideoStation/main/installer.sh")"


and select from the Menu: P
image.thumb.png.5495e49b3783f3bcdc4d3053dd9df791.png

And than again: P
image.png.559938d108ecaa654c029789b3117c42.png

Than have Fun:

image.png.31748231d63de10a57a83e296a23c77c.png

Just last last question: How do I load the License in AME ??

image.thumb.png.112b4121f93815023e9a4b9538be1d36.png

I am glad that this worked for you.

The only way to activate or load the license just installed is trying to transcoding something using Video Station (Transco OffLine with a movie with codec supported like AC3 (You don't need to wait to finish this transcodification to other quality)) and then you will have activated your license, not only installed. Then, you will can to install the Wrapper (ADVANCED or SIMPLEST one) in order to play movies with EAC3, DTS, AAC, TrueHD. 

The installation script for my Wrapper needs to have the AME License installed and ACTIVATED or LOADED.

 

I will wait for your feedback.

 

Best regards.

Edited by darknebular
Link to comment
Share on other sites

  • 1 month later...

Sorry for my English.

The patch is installed correctly, but the activation of AME ends with an error.

 

My hardware is AME 3.1.0-3005 DSN 7.2.1-69057, activated by Quick.

 

My steps:

1) I delete AME

2) The command running the patch is -P, -P.

3) I install AME.

4) At startup, it is sent to the Synology server, after entering registration data, it displays an error, contact support... =(

Edited by Andrey111222
Link to comment
Share on other sites

  • 3 weeks later...

Hi folks. This is my setup: 

DS918+

Valid SN! 

DSM Version 7.2 64570-1

Using TinyCore https://github.com/pocopico/tinycore-redpill 

Setup on BareMetal intel Core i3 

ASRock Rack C236 WSI Mini ITX Server Motherboard LGA 1151 Intel C236 

4disks 3.5 SHA2 + 1xNvme SSD Cache 

 

Tried https://github.com/darknebular/Wrapper_VideoStation with Option P

 

image.thumb.png.60914be4f86cd45e2105593198036e77.png

 

Seems its not working due to MD5 mismatch. 

 

Any ideas ? 

Gabe 

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

I'm not sure what i'm doing wrong here....Nothing working for Creating Thumbs for HEVC vids in Synology photos.

I Used Arc loader with patch. And was already had AME activated and signed in. But HEVC not getting thumbnails made in Syno Photos 7.2

SO

I used that guys script above, and selected "P" every time, then it said something about UN-installed the patch..

 

What gives? are we dealing with pros or people just guessing and hosting crap on Github? Its like amateur hour.

 

 

Need this for LATEST DSM UPDATE #4 PLEASE

image.thumb.png.4b34ac2560af967e866d3fe48ef7f181.png

 

Link to comment
Share on other sites

Nevermind..Im putting this solution here for my own reference.

 

 

 

Solution! FINALLY At least for Synology Photos Thumbnails with no real serial mac on hardware with NO IGPU!   5900x

 

  1. Created new synology account with new email on their website.
  2. Installed latest ARC loader plus patcher using defaults as SA6400. 7.2 latest update 4.
  3. Installed Advanced Media Codec package.
  4. Then go here and don't download anything just do (in ssh) what i circle in screenshot below -->https://github.com/wirgen/synocodectool-patch?tab=readme-ov-file

image.thumb.png.34aa13bbbe0eb832f0a9532d91ea4019.png

 

 

 

 

 

Link to comment
Share on other sites

On 6/25/2023 at 6:01 AM, wangsiji said:

For 7.2 you may try this one (downloaded from https://mi-d.cn/d/ame72-3005.py , originating from

 

import hashlib
import os

r = ['669066909066906690', 'B801000000', '30']
s = [(0x3718, 0), (0x60A5, 1), (0x60D1, 1), (0x6111, 1), (0x6137, 1), (0xB5F0, 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() != '09e3adeafe85b353c9427d93ef0185e9':
        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('[{"attribute": {"codec": "hevc", "type": "free"}, "status": "valid", "extension_gid": null, "expireTime": 0, "appName": "ame", "follow": ["device"], "duration": 1576800000, "appType": 14, "licenseContent": 1, "registered_at": 1649315995, "server_time": 1685421618, "firstActTime": 1649315995, "licenseCode": "0"}, {"attribute": {"codec": "aac", "type": "free"}, "status": "valid", "extension_gid": null, "expireTime": 0, "appName": "ame", "follow": ["device"], "duration": 1576800000, "appType": 14, "licenseContent": 1, "registered_at": 1649315995, "server_time": 1685421618, "firstActTime": 1649315995, "licenseCode": "0"}]')


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}")

 

Just upgraded from 7.1.1 update 5 to 7.21 update 4.

Patching AME with this script worked fine: thanks @wangsiji !

Edited by Wheeler
typo
Link to comment
Share on other sites

  • 4 weeks later...
  • 5 weeks later...

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