Ich habe mittlerweile eine Lösung gefunden.
Hier die Antwort auf meine Frage in Englisch:
VERSION 12.3.2 NOW WITH 5.1:
https://github.com/darknebular/Wrapper_VideoStation/blob/main/ffmpeg41-wrapper-DSM7_1
Wrapper_VideoStation for ffmpeg-wrapper. Standard version:
Synology VideoStation ffmpeg wrapper with DTS, EAC3 and TrueHD support. It enables hardware transcoding from ffmpeg from Synology for video and transcoding DTS, HEVC, EAC3, AAC from the ffmpeg of the SynoCommunity. When you use this SynoCommunity´s ffmpeg, you will have AAC 5.1 512kbps Surround.
I put this codec for quality, you can change libfdk_aac to AC3 that is more compatible with Chromecast.
Works fine the OffLine transcoding and the streaming of tipical extensions like: MKV, MP4, AVI ...
This wrapper is a fork of BenjaminPoncet rev.12 with a few changes, fixes and some improvements in his code.
For DSM 7.1:
INSTALL: Wrapper for Advance Codec Pack 2.0.X installed with ffmpeg41-wrapper-DSM7_1 file
With this wrapper (ffmpeg41-wrapper_DSM7_1 file) you will be with the original ffmpeg almost time and only you will use the ffmpeg 4.4.2-44 when is 100% necessary. You will need Putty or other SSH Client in order to connect.
- cd /var/packages/CodecPack/target/pack/bin
- sudo mv /var/packages/CodecPack/target/pack/bin/ffmpeg41 /var/packages/CodecPack/target/pack/bin/ffmpeg41.orig
You must select 3.a or 3.b steps:
3.a) sudo vi ffmpeg41
----Push "i" key and then PASTE (right-click) the content of the file called ffmpeg41-wrapper-DSM7_1
----"ESC" key and then write :wq
(Or you can do this if you don´t want to use VI command
3.b) sudo wget -O -
https://raw.githubusercontent.com/darknebular/Wrapper_VideoStation/main/ffmpeg41-wrapper-DSM7_1 > /var/packages/CodecPack/target/pack/bin/ffmpeg41
- sudo chmod 755 /var/packages/CodecPack/target/pack/bin/ffmpeg41
Save VideoStation's libsynovte.so
- sudo cp -n /var/packages/VideoStation/target/lib/libsynovte.so /var/packages/VideoStation/target/lib/libsynovte.so.orig
- sudo chown VideoStation:VideoStation /var/packages/VideoStation/target/lib/libsynovte.so.orig
Patch libsynovte.so to authorize DTS, EAC3 and TrueHD
- sudo sed -i -e 's/eac3/3cae/' -e 's/dts/std/' -e 's/truehd/dheurt/' /var/packages/VideoStation/target/lib/libsynovte.so
- sudo synopkg restart VideoStation
UNINSTALL FOR DSM 7.1:
Restore VideoStation's ffmpeg, libsynovte.so
sudo rm /var/packages/VideoStation/target/lib/libsynovte.so
sudo mv -f /var/packages/VideoStation/target/lib/libsynovte.so.orig /var/packages/VideoStation/target/lib/libsynovte.so
sudo rm /var/packages/CodecPack/target/pack/bin/ffmpeg41
sudo mv /var/packages/CodecPack/target/pack/bin/ffmpeg41.orig /var/packages/CodecPack/target/pack/bin/ffmpeg41
Quelle:
https://gist.github.com/BenjaminPoncet/bbef9edc1d0800528813e75c1669e57e