darknebular / Wrapper_VideoStation

Synology VideoStation and DLNA FFmpeg Wrapper with AAC, DTS, EAC3 and TrueHD support via pipes (now with GStreamer support). It enables full hardware transcoding from Synology´s FFmpeg for video and transcoding DTS, EAC3, TrueHD and AAC from the SynoCommunity's FFmpeg only when necessary.
634 stars 70 forks source link

DSM 7.2.x not supported #49

Closed philipplotnikov closed 6 months ago

philipplotnikov commented 6 months ago

The latest version on Synology is DSM 7.2.1-69057 Update 4 with 7.2 not being supported (looking at the startup check code only 7.1 / 7.0 (and 8?) is supported.

Also, reference to the "Manual process" is not clear. what is the manual process?

Thanks.

darknebular commented 6 months ago

I did the manual process for those who used DSM 6.X. Since for me that version is deprecated and I do not support it. This manual procedure has been removed from my website. You just have to use the installation script.

DSM 8 is supported, yes, any version above DSM 7.1 will install the Wrapper X-Advanced, including DSM 8.

DSM 7.2 Is fully supported, included Update 4. If you have another Wrapper or have had another Wrapper in the system, it may not work if you do not clean it well beforehand. You can only have one Wrapper installed.

What error does it show you?

Regards.

philipplotnikov commented 6 months ago

Hi, thank for your quick reply.

I'm running a Synology DS218, latest available update DSM 7.2.1-69057 Update 4.

when running the script it throws the following error:

\u001b[36m====================FFMPEG WRAPPER INSTALLER FOR DSM 7.0 and above by Dark Nebular.====================
\u001b[36m====================This Wrapper Installer is only avalaible for DSM 7.0 and above only====================

\u001b[33mFFMPEG (or GStreamer) WRAPPER INSTALLER version: SCPT_3.9.7

\u001b[32m  
==================== Wrapper for VideoStation and DLNA MediaServer for DTS, EAC3 and TrueHD with transcoding to AAC 5.1: ====================
Synology VideoStation and MediaServer ffmpeg wrapper with DTS, EAC3 and TrueHD support. 
It enables hardware transcoding from Synology's ffmpeg for video and transcoding DTS, HEVC, EAC3, AAC, True HD from the ffmpeg of the SynoCommunity. 

When the Wrapper FFmpeg needs to transcoding you will have 2 audio's streams from the SAME track:
- In DLNA MediaServer = [1) AAC 5.1 512kbps AND 2) MP3 2.0 256kbps.] (by default)
- In  VIDEO-STATION   = [1) MP3 2.0 256kbp  AND 2) AAC 5.1 512kbps.] (by default)*
*(For Chromecast or Google TV or other clients that don´t accept 5.1 AAC neither multi audio's stream support).

Now, You can change the 5.1 audio´s codec from AAC 512kbps to AC3 640kbps independently of its audio´s streams order in VIDEO-STATION and DLNA MediaServer 
using the Configurator TOOL embedded into the Installer. 
(AC3 is more compatible with legacy 5.1 devices).

Works fine the OffLine transcoding and the streaming of tipical extensions like: MKV, MP4, AVI... Works fine the thumbnails in VideoStation.
You will have full control of each Audio's codecs parameter using the Configuration TOOL for the Advanced Wrapper Mode. 
The only Wrapper of Internet with 5.1 AAC support and with a Configurator TOOL.

============================================================      ¡¡¡¡¡ENJOY!!!!!     ============================================================

\u001b[32m[2024-02-26 20:34:22] \u001b[31mERROR: \u001b[31mYour DSM Version  is NOT SUPPORTED using this Installer. Please use the MANUAL Procedure.
ChrisMarriott38 commented 6 months ago

Not sure if it's related i'm novice.

I get this outcome and doesn't work i dont think?

This patcher enables Advanced Media Extensions 3.0 for you, without having to login account. This enables the AAC and HEVC codecs and its license in the AME package, until DSM 7.2. When you install this License crack, the Wrapper will be deleted and you must to re-install it again. Note that in order to use this, you will have to use a valid SN (but doesn't have to login synology account with that SN).

DISCLAIMER: Use at your own risk, although it has been done to be as safe as possible, there could be errors. (Crack for XPenelogy and Synology without AME's license).

THIS IS THE LICENSE CRACK MENU, PLEASE CHOOSE YOUR SELECTION:

( P ) INSTALL the AME's License Crack ( U ) UNINSTALL the AME's License Crack

( Z ) RETURN to MAIN menu.

Do you want to install the crack for the AME license?P [2024-02-27 11:44:48] INFO: /var/packages/CodecPack/target/usr/lib/libsynoame-license.so backup created as /var/packages/CodecPack/target/usr/lib/libsynoame-license.so.orig. [2024-02-27 11:44:48] INFO: /usr/syno/etc/license/data/ame/offline_license.json backup created as /usr/syno/etc/license/data/ame/offline_license.json.orig. cp: cannot stat '/usr/syno/etc/license/data/ame/offline_license.sig': No such file or directory [2024-02-27 11:44:48] INFO: /usr/syno/etc/license/data/ame/offline_license.sig backup created as /usr/syno/etc/license/data/ame/offline_license.sig.orig. [2024-02-27 11:44:48] INFO: Applying the patch. /tmp/installer_OffLine.sh: line 881: [{"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}]: command not found [2024-02-27 11:44:48] INFO: Checking whether patch is successful... [2024-02-27 11:44:48] INFO: Patched but unsuccessful.

No idea if im doing something wrong

darknebular commented 6 months ago

No, the AME's license crack in your case It's not necessary. I will check the version checker fuction.

I will answer to you if I found something bad.

darknebular commented 6 months ago

This is my function:

function check_versions() {

if [[ "$majorversion" -ge "8" ]]; then
  cp_path="/var/packages/CodecPack/target/pack"
  cp_bin_path="$cp_path/bin"
  injector="X-Advanced"
**elif [[ "$majorversion" -eq "7" && "$minorversion" -ge "1" ]]; then**
  cp_path="/var/packages/CodecPack/target/pack"
  cp_bin_path="$cp_path/bin"
  injector="X-Advanced"
elif [[ "$majorversion" -eq "7" && "$minorversion" -eq "0" ]]; then
  cp_path="/var/packages/CodecPack/target"
  cp_bin_path="$cp_path/bin"
  injector="0-Advanced"

else
error "Your DSM Version $dsm_version is NOT SUPPORTED using this Installer. Please use the MANUAL Procedure."
error "Your DSM Version $dsm_version is NOT SUPPORTED using this Installer. Please use the MANUAL Procedure." >> $logfile
exit 1
fi
}

As you can see, DSM 7.1 or above will be select this conditional. But I don't know why in your case doesn't take this condition.

elif [[ "$majorversion" -eq "7" && "$minorversion" -ge "1" ]]; then

darknebular commented 6 months ago

Please send to me the result of these commands:

cat /etc.defaults/VERSION | grep majorversion | sed 's/majorversion=//' | tr -d '"')

and this too: cat /etc.defaults/VERSION | grep minorversion | sed 's/minorversion=//' | tr -d '"')

ChrisMarriott38 commented 6 months ago

Do i just copy those commands in to Putty to the root? I'm not very technical linux

ChrisMarriott38 commented 6 months ago

image

I included the ) on the first goes and i don't think it liked it. I tried with out and got two numbers back 7 then a 1

ChrisMarriott38 commented 6 months ago

I don't know if it helps but these are the files i think i used originally.

tinycore-redpill.v0.9.4.9.img.gz DSM_DS3622xs+_42218.pat

philipplotnikov commented 6 months ago

...

There is no /etc.defaults ...

philipplotnikov commented 6 months ago
image

Its running 7.2 Update 4, nothing special.

darknebular commented 6 months ago

Please run these commands into the clish of the NAS, using SSH. NOT in your system.

Thanks.

ChrisMarriott38 commented 6 months ago

They were run using Putty via the IP address and login for the NAS - Not on the computer i was using to access? Does this help.

philipplotnikov commented 6 months ago

Please run these commands into the clish of the NAS, using SSH. NOT in your system.

Thanks.

I'm logged into the NAS via SSH, this is not my laptop.

darknebular commented 6 months ago

Please send to me the result of these commands:

cat /etc/VERSION | grep majorversion | sed 's/majorversion=//' | tr -d '"'

and this too: cat /etc/VERSION | grep minorversion | sed 's/minorversion=//' | tr -d '"'

darknebular commented 6 months ago

tried with out and got two numbers back 7 then a 1

your problem It's not related with Philipplotnikov.

Please open AME and check if you can see the green tick there.

darknebular commented 6 months ago

### Just tested in 7.2 Update 4: image

And this is its root really: image

Working perfect: image

### The Wrapper works perfect in DSM 7.2.1 Update 4.

darknebular commented 6 months ago

Please run these commands into the clish of the NAS, using SSH. NOT in your system. Thanks.

I'm logged into the NAS via SSH, this is not my laptop.

I am not sure about this, in synology exists "usr" folder not "Users", and where is .syno folder in your system?

You have a synology and you haven't the syno folder? What's happens here?

darknebular commented 6 months ago

Please, philipplotnikov, run these commands into the clish of the NAS, using SSH. NOT in your system.

Thanks.

darknebular commented 6 months ago

@ChrisMarriott38 Please try again with the script, I found a little error in the variables of function patch_ame_license.

Best regards.

ChrisMarriott38 commented 6 months ago

Currently trying to update DSM on the NAS as I saw you mentioned it works in a more recent version so i thought it might be worth a try!

ChrisMarriott38 commented 6 months ago

Not sure if it's the error you found or the update i just did. But currently just updated to DSM 7.2.1-69057 Update 4.

Re-ran the script and got this outcome. image

I did the P option and it said successful.

Now i get to this! image

darknebular commented 6 months ago

as I saw you mentioned it works in a more recent version so i thought it might be worth a try!

In your case, there was a Typo in a variable of the license patch. Please try again, just fixed this typo in the function.

In the case of Philip I think that he isn't really into the clish of the nas.

Best Regards.

ChrisMarriott38 commented 6 months ago

Just opened Surveillance station and it now shows the IP camera feed! Incredible!

philipplotnikov commented 6 months ago

Please, philipplotnikov, run these commands into the clish of the NAS, using SSH. NOT in your system.

Thanks.

Wow.... this is a first. I feel a complete n00b :). I was working in the wrong terminal....... omfg.

Please ignore my OP :)

Anyway, working now, going to test the install

darknebular commented 6 months ago

OK, please tell me if all It's working for you and then I will close this case.

Regards.

ChrisMarriott38 commented 6 months ago

It's all working amazing here now - Very impressed! :)

philipplotnikov commented 6 months ago

Ok, so patch was installed successful. (Options I )

However the the audio is still lagging / skipping

Audio Format: E-AC-3 (Dolby Digital Plus) Audio Rate: 640 kb/s @ 6 channels Audio Lang: English

philipplotnikov commented 6 months ago

@darknebular

also tried uninstalling it and using the P option. However that gave me

Do you want to install the crack for the AME license?p [2024-02-29 18:50:57] INFO: /var/packages/CodecPack/target/usr/lib/libsynoame-license.so backup created as /var/packages/CodecPack/target/usr/lib/libsynoame-license.so.orig. [2024-02-29 18:50:57] INFO: /usr/syno/etc/license/data/ame/offline_license.json backup created as /usr/syno/etc/license/data/ame/offline_license.json.orig. [2024-02-29 18:50:57] INFO: /usr/syno/etc/license/data/ame/offline_license.sig backup created as /usr/syno/etc/license/data/ame/offline_license.sig.orig. [2024-02-29 18:50:58] INFO: Applying the patch. MD5 mismatch [2024-02-29 18:50:58] INFO: /var/packages/CodecPack/target/usr/lib/libsynoame-license.so file restored from /var/packages/CodecPack/target/usr/lib/libsynoame-license.so.orig. [2024-02-29 18:50:58] INFO: /usr/syno/etc/license/data/ame/offline_license.json file restored from /usr/syno/etc/license/data/ame/offline_license.json.orig. [2024-02-29 18:50:58] INFO: /usr/syno/etc/license/data/ame/offline_license.sig file restored from /usr/syno/etc/license/data/ame/offline_license.sig.orig. [2024-02-29 18:50:58] INFO: Crack uninstalled correctly.

Checking AME

image
philipplotnikov commented 6 months ago

Checking the MD5 it does not match any of the one in code image

image
philipplotnikov commented 6 months ago

All good, managed to get it to work with some workaround. thanks for support.

darknebular commented 6 months ago

The license crack It's not for you, you have a Synology authentic.

You only need to install the Wrapper the Advanced or the Simplest one. The script should check that you have enough cores and should recommend one wrapper or another. In your case I recommend that you stay with Simplest, it consumes less when transcoding to 2.0.

Best regards.