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.
656 stars 73 forks source link

Video HEVC + AAC audio not working #22

Closed Natzunur closed 1 year ago

Natzunur commented 1 year ago

Hello,

I have installed your wrapper on my DS118, but my video is not working in Video Station (browser)

HEVC + AAC => KO (echec de la lecture de la vidéo parce que le format de fichier de la piste audio actuellement sélectionnée n'est pas pris en charge) HEVC + E-AC3 => KO (infinite loop)

darknebular commented 1 year ago

Your system hasn't got the performance for do 2 audio's streams (one of them with 5.1). Do you tried with the Simplest one?

I recommend this wrapper in your case.

If you want still use the Advanced, in your case you must limit a one audio's stream this will help the requeriments to your CPU. In order to do this, you must to enter into "The Configurator Tool" (Opción C in Installer's Main Menu) and then option G and again then H. image

image

Best Regards.

Natzunur commented 1 year ago

Hi Thanks for your message, I have installed the simplest but still the same

darknebular commented 1 year ago

Please could you try with the new version SCPT_3.2? I did improvements in DLNA processing.

Thanks in advance.

darknebular commented 1 year ago

Hi Thanks for your message, I have installed the simplest but still the same

Please, could you send me the result of this command?

tail -n 200 -f /tmp/wrapper_ffmpeg.log

Best regards.

Natzunur commented 1 year ago

root@synojb:~# tail -n 200 -f /tmp/wrapper_ffmpeg.log tail: cannot open '/tmp/wrapper_ffmpeg.log' for reading: No such file or directory tail: no files remaining

However : FFmpeg 4 + Advanced media extension are there..

Natzunur commented 1 year ago

It seems to be synology dependant de AAC support ? https://kb.synology.com/fr-fr/DSM/tutorial/Why_cant_I_play_AAC_encoded_files

The AAC support is gone seens 2022

darknebular commented 1 year ago

Don't worry about the support of AAC. My Wrapper will have always AAC codecs in its transcoding. If you don't have wrapper_ffmpeg.log file logging, It's because you really don't have 100% installed my Wrapper. Please, Could you try to re-install again?

Regards.

Natzunur commented 1 year ago

Did a new install , but still the same error message Capture d’écran 2023-05-14 194901 Capture d’écran 2023-05-14 195127

darknebular commented 1 year ago

Here, there isn't any try to execute the ffmpeg41. I only see that you finally install the Simplest Wrapper, nothing more. Have you got other wrapper installed in your system, like Alex's Presso? You can't have both installed.

Regards.

Natzunur commented 1 year ago

What I did :

Here we are How can I check if VideoStation use ffmpeg 4 or another wrapper ?

Big thanks for your time

darknebular commented 1 year ago

First: 1) The Benjamin's wrapper was deprecated, you don't must use it nowdays. In DSM 7.X is not necessary to change any binary in VideoStation Folder, only in AME or CodecPack path and only the ffmpeg41, the others binaries aren't using for playing movies.

2) The Alex's one changes ALL binaries in AME using a permanent link to a the binary changed in VideoStation. If you don't remove VideoStation, then the changes of others wrappers are still there. Please, uninstall the Video Station and re-install it again, then re-install again my simplest wrapper. The catalog of your movies doesn't lost.

Please, you must to understand that in your model you only be able to play the movies with AC3, DTS, EAC3... not transcoding them. The wrapper with less requeriments is the Simplest one.

Regards.

Natzunur commented 1 year ago

OK thanks for the details.

So I have removed ffmpeg + AME + VideoStation, reinstall all , your simplest wrapper but still nothing in the ffmpeg log (and video not working)

darknebular commented 1 year ago

If there isn't anything in this log, mean that your system doesn't try to transcode anything.

Have you got this option in Video Station options? image

Regards.

Natzunur commented 1 year ago

I'dont have the hardware acceleration option (it's normal apparently) Capture d’écran 2023-05-15 195242

darknebular commented 1 year ago

Please could you send me the result of this command?

ls -la /var/packages/CodecPack/target/pack/bin/

Regards.

Natzunur commented 1 year ago
drwxr-xr-x 2 root root   4096 May 15 14:41 .
drwxr-xr-x 6 root root   4096 May 15 14:29 ..
lrwxrwxrwx 1 root root     48 May 15 14:41 ffmpeg27 -> /var/packages/CodecPack/target/pack/bin/ffmpeg41
-rwxr-xr-x 1 root root 226024 Mar  3  2022 ffmpeg27.orig
-rwxr-xr-x 1 root root 246776 Mar  3  2022 ffmpeg33-for-surveillance
-rwxr-xr-x 1 root root   1929 May 15 14:41 ffmpeg41
-rwxr-xr-x 1 root root 259008 Mar  3  2022 ffmpeg41.orig
-rwxr-xr-x 1 root root  44168 Mar  3  2022 gst-inspect-1.0
-rwxr-xr-x 1 root root  35688 Mar  3  2022 gst-launch-1.0
-rwxr-xr-x 1 root root  10168 Mar  3  2022 gst-plugin-scanner

Thanks

darknebular commented 1 year ago

OK, I just tested in this device: image

It's very similar than your in performance. When I try to play HEVC in this system, the system doesn't touch my Wrapper, and I have a error saying: " You can't play it in your PC". Then, It's not related to my Wrapper, It's related to the CPU performance and hardware config in this system. image image

When I play a .mkv with 264 codec and DTS, EAC3 It's working fine, and in this case, the system is using my Wrapper correctly.

image image

Then in your case, your problem with HEVC videos It's not related with my Wrapper.

Best regards.

Natzunur commented 1 year ago

It's not the video format that's the problem, it's the audio like in the first message.

Capture d’écran 2023-05-18 134223

But thanks anyway for your time !

darknebular commented 1 year ago

You can check if my Wrapper is being used by looking at the logs. Try a DTS or EAC3 movie using the h264 video codec and you will see that it does show up in the logs. That means my Wrapper is being used. Your system when it is an HEVC video does not use my Wrapper. It's not my fault.

Regards.

darknebular commented 1 year ago

Please, I think that I found a workaround: Could you send me the result of these commands? cat /var/packages/CodecPack/target/etc/gstomx.conf

and

cat /var/packages/VideoStation/target/etc/gstomx.conf

Regards.

darknebular commented 1 year ago

I know that It isn't related to my Wrapper but I would like to help you a solution.

Regards.

Natzunur commented 1 year ago

Thanks once again for your time

adminjb@synojb:/$ cat /var/packages/CodecPack/target/etc/gstomx.conf
cat: /var/packages/CodecPack/target/etc/gstomx.conf: No such file or directory
adminjb@synojb:/$ cat /var/packages/VideoStation/target/etc/gstomx.conf
[omxmpeg2videodec]
type-name=GstOMXMPEG2VideoDec
core-name=/var/packages/VideoStation/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/mpeg,mpegversion=(int)[1, 2],systemstream=(boolean)false
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxmpeg4videodec]
type-name=GstOMXMPEG4VideoDec
core-name=/var/packages/VideoStation/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/mpeg,mpegversion=(int) 4, systemstream=(boolean)false;video/x-divx,divxversion=(int)[4,5]
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxh264dec]
type-name=GstOMXH264Dec
core-name=/var/packages/VideoStation/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-h264,alignment = (string) au,stream-format= (string) { avc }
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxvp9dec]
type-name=GstOMXVP9Dec
core-name=/var/packages/VideoStation/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec.vp9
rank=50
in-port-index=0
out-port-index=1
sink-template-caps=video/x-vp9
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxvp8dec]
type-name=GstOMXVP8Dec
core-name=/var/packages/VideoStation/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-vp8
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxwmvdec]
type-name=GstOMXWMVDec
core-name=/var/packages/VideoStation/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-wmv, wmvversion=(int) 3, format=(string) { WMV3 WVC1 }
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxmjpegdec]
type-name=GstOMXMJPEGDec
core-name=/var/packages/VideoStation/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=image/jpeg
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxh263dec]
type-name=GstOMXH263Dec
core-name=/var/packages/VideoStation/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-h263,variant=(string)itu
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxh264enc]
type-name=GstOMXH264Enc
core-name=/var/packages/VideoStation/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.enc
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-raw,format=(string) { NV12 },width=(int)[16, 4096],height=(int)[16, 4096],framerate=(fraction)[ 0/1, 2147483647/1 ]
src-template-caps=video/x-h264,stream-format=(string){ avc }, alignment=(string){ au }, width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ], profile=(string){ high, main, baseline }
hacks=no-disable-outport

[omxavsdec]
type-name=GstOMXAVSDec
core-name=/var/packages/VideoStation/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-cavs
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxjpegenc]
type-name=GstOMXJPEGEnc
core-name=/var/packages/VideoStation/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.image.enc
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-raw,format=(string) { NV12 },width=(int)[16, 4096],height=(int)[16, 4096],framerate=(fraction)[ 0/1, 2147483647/1 ]
src-template-caps=image/jpeg,width=(int)[ 16, 4096 ],height=(int)[ 16, 4096]
hacks=no-disable-outport
adminjb@synojb:/$

Also, I tried Plexserver last night, all the movies work (just a little buffer on movies in HEVC+AAC 1080p)

darknebular commented 1 year ago

Yeah!! It's a Video Station related.

I think that you would fix it loading the .libs of GStreamer into the VideoStation/lib/ folder. I am studing this.

darknebular commented 1 year ago

As you can see there, not exists: type-name=GstOMXH265Dec

Due to This, you can't decode hevc or h265 videos.

I think if you load the library for decoding 265 videos, you Will be able to play It.

I am a looking for the BEST way in order to do It.

darknebular commented 1 year ago

Sorry in your DSM must be here the other file: Please send me This command: cat var/packages/CodecPack/target/pack/etc/gstomx.conf

Natzunur commented 1 year ago

Thanks a lot darknebular !

adminjb@synojb:/$  cat  var/packages/CodecPack/target/pack/etc/gstomx.conf
[omxmpeg2videodec]
type-name=GstOMXMPEG2VideoDec
core-name=/var/packages/CodecPack/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/mpeg,mpegversion=(int)[1, 2],systemstream=(boolean)false
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxmpeg4videodec]
type-name=GstOMXMPEG4VideoDec
core-name=/var/packages/CodecPack/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/mpeg,mpegversion=(int) 4, systemstream=(boolean)false;video/x-divx,divxversion=(int)[4,5]
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxh264dec]
type-name=GstOMXH264Dec
core-name=/var/packages/CodecPack/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-h264,alignment = (string) au,stream-format= (string) { avc }
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxvp9dec]
type-name=GstOMXVP9Dec
core-name=/var/packages/CodecPack/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec.vp9
rank=50
in-port-index=0
out-port-index=1
sink-template-caps=video/x-vp9
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxvp8dec]
type-name=GstOMXVP8Dec
core-name=/var/packages/CodecPack/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-vp8
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxwmvdec]
type-name=GstOMXWMVDec
core-name=/var/packages/CodecPack/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-wmv, wmvversion=(int) 3, format=(string) { WMV3 WVC1 }
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxmjpegdec]
type-name=GstOMXMJPEGDec
core-name=/var/packages/CodecPack/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=image/jpeg
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxh263dec]
type-name=GstOMXH263Dec
core-name=/var/packages/CodecPack/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-h263,variant=(string)itu
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxh264enc]
type-name=GstOMXH264Enc
core-name=/var/packages/CodecPack/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.enc
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-raw,format=(string) { NV12 },width=(int)[16, 4096],height=(int)[16, 4096],framerate=(fraction)[ 0/1, 2147483647/1 ]
src-template-caps=video/x-h264,stream-format=(string){ avc }, alignment=(string){ au }, width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ], profile=(string){ high, main, baseline }
hacks=no-disable-outport

[omxavsdec]
type-name=GstOMXAVSDec
core-name=/var/packages/CodecPack/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-cavs
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxh265dec]
type-name=GstOMXH265Dec
core-name=/var/packages/CodecPack/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.video.dec
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-h265
src-template-caps=video/x-raw,format = (string) { NV12 },width=(int)[ 16, 4096 ],height=(int)[ 16, 4096 ],framerate=(fraction)[ 0/1, 2147483647/1 ]

[omxjpegenc]
type-name=GstOMXJPEGEnc
core-name=/var/packages/CodecPack/target/lib/realtek/libOMX_Core.so
component-name=OMX.realtek.image.enc
rank=258
in-port-index=0
out-port-index=1
sink-template-caps=video/x-raw,format=(string) { NV12 },width=(int)[16, 4096],height=(int)[16, 4096],framerate=(fraction)[ 0/1, 2147483647/1 ]
src-template-caps=image/jpeg,width=(int)[ 16, 4096 ],height=(int)[ 16, 4096]
darknebular commented 1 year ago

Now here There is a decoder for 265: [omxh265dec] type-name=GstOMXH265Dec core-name=/var/packages/CodecPack/target/lib/realtek/libOMX_Core.so component-name=OMX.realtek.video.dec rank=258 in-port-index=0 out-port-index=1 sink-template-caps=video/x-h265

Ummm interesting...

Natzunur commented 1 year ago

I have done some video testing, and think the problem is not for the h265 codec, but really audio codec.

darknebular commented 1 year ago

Yeah! the problem is with GSStreamer. Please send me this: /var/packages/VideoStation/target/bin/gst-launch-1.0 --version

and I would try to enable H265 codec in VideoStation using the conf from CodecPack.

I would do this to try: sudo -i mv /var/packages/VideoStation/target/etc/gstomx.conf /var/packages/VideoStation/target/etc/gstomx.conf.orig cp /var/packages/CodecPack/target/pack/etc/gstomx.conf /var/packages/VideoStation/target/etc/gstomx.conf chown VideoStation:VideoStation /var/packages/CodecPack/target/pack/etc/gstomx.conf

Regards.

Natzunur commented 1 year ago

adminjb@synojb:/$ /var/packages/VideoStation/target/bin/gst-launch-1.0 --version /var/packages/VideoStation/target/bin/gst-launch-1.0: error while loading shared libraries: libgstreamer-1.0.so.0: cannot open shared object file: No such file or directory

I run your last commands to test the result ?

darknebular commented 1 year ago

Yes, you can revert the last 3 commands in case that something go wrong, because the first backup the original gstomx.conf to .orig.

Regards.

Natzunur commented 1 year ago

OK, I ran the 3 commands, but the video playback does not work (infinite loop)

Nothing in the "wrapper_ffmpeg.log"

darknebular commented 1 year ago

Hi, I am working in the wrapper for GSstreamer right now, I need this commands from DS218 play:

cat /proc/cpuinfo

ls -la /var/packages/VideoStation/target/lib/gstreamer/gstreamer-1.0/

ls -la /var/packages/VideoStation/target/lib/gstreamer/

ls -la /var/packages/VideoStation/target/lib

ls -la /var/packages/CodecPack/target/pack/lib

ls -la /var/packages/CodecPack/target/pack/bin

ls /var/packages/VideoStation/etc/gstreamer-1.0

ls -la /var/packages/CodecPack/etc/gstreamer-1.0

Thanks in advance

darknebular commented 1 year ago

Please, I added a GStreamer Wrapper for Play Devices like yours.

Could you uninstall the wrapper and then try to re-install, the installer SCPT_3.6 must detect your system and apply this GStreamer Wrapper.

Best Regards.

Natzunur commented 1 year ago

Hello !

I'have removed Wrapper/FFMEG/AME/VideoStation and reinstall all but still infinite loop :( Capture d’écran 2023-05-25 211442

With your commands : Capture d’écran 2023-05-25 211517

commands.txt

Thanks

darknebular commented 1 year ago

Ohhhh!!!!!!! Sorry my friend.

I will work further in this.

Could you send me this?

cat /tmp/wrapper_ffmpeg.log

Regards.

darknebular commented 1 year ago

I have a clue, I think that It's the códecs caché of the gstreamer, due to This the plugins aren't loaded.

I think that This file Will be recreated at startup, I am reading about This file and its use.

Could you delete This or move It if you don't want no delete It.

For delete de caché: rm -rf /var/packages/CodecPack/etc/gstreamer-1.0/registry.aarch64.bin

For move the caché file to another Path: mv /var/packages/CodecPack/etc/gstreamer-1.0/registry.aarch64.bin /tmp/

Could you confirm This ?

Thanks in Advance.

darknebular commented 1 year ago

Look, It looks like that It's the problem that I am having:

https://forums.developer.nvidia.com/t/gstreamer-plugins-loading-issues/68253

Natzunur commented 1 year ago

Huge thanks once again for your time !

cat /tmp/wrapper_ffmpeg.log => Nothing but the installation of the wrapper

Done this : rm -rf /var/packages/CodecPack/etc/gstreamer-1.0/registry.aarch64.bin

But still the same (infinite loop), also every video are not working now (no matter the audio/video codec) => Still nothing in the wrapper log

Please, I don't want to waste your time for my problem anymore, tell me if your are out of idea and we will rest here

hjh142857 commented 1 year ago

@darknebular Hi, thanks for your code and it works nice on my DS918+ And I've got a DS218 recently which have the same CPU with DS118 (RTD1296). I have tested old DSM version 7.1.0 (or before), the default VideoStation works well on hardware transcoding H264/H265+normal AAC. But after 7.1.1 (and 7.2), any video with aac audio can not be transcoded even with wrapper. This is the Release Note about VideoStation. https://www.synology.com/en-global/releaseNote/VideoStation

Version: 3.0.4-2107

  1. AAC-encoded content can be decoded and natively played back by most end devices, such as smartphones, tablets, computers, and smart TVs. Server-side transcoding of AAC-encoded content has been a redundant and resource-consuming process that was removed starting from DSM 7.1.1.
    • Videos with non-AAC encoded audio tracks and those with more than two channels of AAC encoded audio can no longer be streamed via Chromecast.
    • Live streaming and recording of digital TV programs can no longer be done in AAC format.
    • Playback of videos with AAC encoded audio is no longer possible via browser, AirPlay, or Chromecast with the DS418, DS218, DS218play, DS216play, and DS118.

I‘m glad to send my DS218(DSM7.2 now, if u need 7.1.1 is as well)'s IP & SSH for your development and test to solve this problem. Could you please leave an email or any other connect info?

darknebular commented 1 year ago

@Natzunur Yes, I am totally out of idea with this. I don't know very well GStreamer, I know FFmpeg. If you haven't any log in /tmp/wrapper_ffmpeg.log then Your system isn't using my wrapper, I don't know where is flowing the data... @hjh142857 I really aprecciate this, but I can't promise anything because I don't know gstreamer well. I'll try my best, but I'm alone in this project, out of time and it may take a while to find a fix. I think you can give me remote access to that NAS and thus avoid sending it to me, it gives me respect to have the responsibility of taking care of hardware that is not mine. You can use this email: dark_nebular@hotmail.com I don't see him very often, But I'll be watching these days.

th0ma7 commented 1 year ago

I do have an experimental synocommunity gstreamer package in the work. Something we could chat over discord.

darknebular commented 1 year ago

I haven't discord, have you got other bias?. This guy confirm me that all formats are working fine now in DS-218-Play in local: https://github.com/darknebular/Wrapper_VideoStation/issues/23

Good news!!

rocky7x commented 1 year ago

Hi,

The same doesn't work on DS220j. Can you please also include DS220j in the same fix?

Thanks a lot.

hjh142857 commented 1 year ago

@darknebular The remote access has been sent to ur email. Recent test, the latest version SCPT_3.7. H264+DTS works well, but failed anytime when videostation try to transcode video with aac audio.

Natzunur commented 1 year ago

I have try to remove everything and just resintall AME + VideoStation, even a simple video in mp4+mp3 (576 x 432) is not working... And as on ds218 everything seems to work (https://github.com/darknebular/Wrapper_VideoStation/issues/23) , I think there is a problem with my synology caused by my multiple attemps / tests / hacks but i don't know how to find the root cause

I dont like it, but Plex seems OK on every video..

darknebular commented 1 year ago

@hjh142857 Hi, the transcoding of AAC Will be not possible. Synology ends It's support for This códec.

Regards

rocky7x commented 1 year ago

Is there a possibility to play HEVC (h265) with normally supported sound codec via Video Station? Since when I play it in Firefox in Video Station, it says that the video codec is not supported.

darknebular commented 1 year ago

Using the Simplest not, with the Advanced Wrapper YES, you can play HEVC movies using any Browser because It's changing to h264. Ah!! but when your system use GStreamer, the HEVC flow to another binaries and don't touch my Wrapper. But you can try with the Advanced, perhaps you are lucky!!!

Best Regards.

rocky7x commented 1 year ago

Hi,

Indeed I tried and it doesn't work, even with Advanced Wrapper - says that Video format is not supported by My Computer. The device is DS 220j. But why doesn't it work, when the AME package should enable the playing of HEVC? Or is it device-specific?