-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio output settings #40
Comments
At the moment, the Tizen App is automatically set to Stereo, yes. |
I can test it. Just sent me the modified version |
Right now is working amazingly well but the only issue for not using it is the lack of 5.1 surround sound output. Other than this I've tried HDR and also 2K output and works fine even with a WIFI connection. If you could add a experimental feature to select the sound channels output I can test it and I'll report back any issue. |
I'll take a look this week. |
Yes. That could be perfect. I can test it with no problem to verify if the output is 5.1 or not. |
Hello there, |
I believe that you need to put your branch public to allow the docker run from a github registry (ghcr.io). I can't execute the docker run as it is right now |
I've tried my best with:
but I believe that the created WGT file is from the OneLiberty main branch (because the Docker file remains the same than in the original branch), so as a result, the app in my TV only outputs stereo sound as before. So please, make it public for the Github registry (ghcr.io) or tell me the right command to build the app from the source in Docker. |
You can download the zip, extract, open a cmd in the directory, then : |
Thanks a lot. I'll try it this way. |
It doesn't work. Still stereo sound through my receiver. Using the Moonlight client connected to the same Sunshine PC host I get 5.1 sound without any problem |
To do the test I opened a remote desktop connection with Moonlight and then, from the sound settings panel in Windows, I used the button "Configure" for the "Steam Streaming Speakers" where there is a 5.1 speakers scheme. With this I can click on each speaker to get a sound and check if it comes from the right speaker in my room. With the Tizen app, when I do that, the sound comes from the front speakers when I click on the rear speakers. So if I click on the left rear speaker the sound comes from the left front speaker, the same that when I click on the front left speaker. Also the Subwoofer speaker doesn't work and the sound comes from the small center speaker. So it's working in stereo mode, sending all the sound to the left or right channels only. Doing this same test from the Moonlight Windows client, each sound comes from the right speaker and I verify that it works in 5.1 mode (also the Samsung TV display at top a Dolby symbol with the letters DTHD). From the Tizen app I don't know how to display the resolution, Hz and operation mode on screen with my TV remote controller. But there is only stereo sound anyway |
Can you upload a sunshine logs after you started a stream? |
I've found this significative fragments into the log. Hope it helps: [2024:04:20:11:33:54]: Verbose: Increasing FEC percentage to 200 to meet parity shard minimum and also this: [2024:04:20:11:33:51]: Debug: Expecting incoming session connections from ::ffff:192.168.0.20 CSeq: 6 ---End Response--- NOTE: The IP 192.168.0.20 is the address of my Samsung TV |
Yeah so it seems the stream is set to 5.1 audio setup. |
@fidoboy Does your 5.1 setup supports eARC? How is it connected to your tv? |
The sound system is connected to the TV using a optical cable. So the TV outputs the sound throught the optical wire. As you can see here: https://www.samsung.com/us/support/troubleshooting/TSG01109021/ 5.1 is supported from the TV apps. As I've metioned before, this same setup, using a miniPC connected to the same TV with HDMI, outputs 5.1 perfectly, with no issues. And, of course, also with same optical cable. However it doesn't work from the Tizen app with same configuration. I only get stereo sound. Only difference is from a Windows client to a Tizen client, both cases the Moonlight app. The PC is connected to the TV only with HDMI cable. It's not connected to the sound system directly, so it's the TV that it's sending the sound from the HDMI encoded source to the optical. I can see when I activate the information layer on the TV that when using the Moonlight Windows client the DTHD letters for the sound are being displayed next to the HDR and HD symbols. As example, I can also say that I also use the Tizen Plex app and others, and it outputs 5.1 sound in various formats through the optical cable without any hassle. |
May be that the app also need to specify some kind of encoding or something like that and not only the number of channels. From the TV settings, into the sound config, I can only select between PCM or Automatic. I always keep it on Automatic and it always worked fine. |
I'll try to make a scheme of the setup:
Both cases is the same Samsung TV and the same optical cable to output the sound. |
Well, I did some tests but couldn't get something working :/ |
Thanks a lot anyway for the effort. To my understanding, if it works on Windows client then it should work the same way on the Tizen client because the source of the stream (Sunshine) is the same. So in both cases they are receiving the same sound stream with 5.1 sound channels. Also the wire to send the digital sound signal to the output is the same: the optical toslink connection. AFAIK if the Tizen client has a setup to select the amount of sound channels may be the problem is with the Tizen SDK itself, into the libraries of this platform. I suppose that the Sunshine host server is sending RAW digital data without any encoding so it's the receiver the one that encodes to the output. In the Windows case it's doing it correctly because the TV is sending it encoded through the optical out. But in the case of Tizen app it seems that there is not a right approach and the sound decoder is not receiving the signal from the optical input encoded into a 5.1 format. So I think that this encoding process should be done by the Tizen platform and coded into the Moonlight app if it's possible to do it. If it's working on Windows, there is something that the Moonlight client or the Windows libraries are doing well and that it's missing on the Tizen platform or the Tizen app. And I suspect that it's about the encoding. May be that it's the Dolby format because the DTHD symbol it's being displayed on the Samsung TV info overlay when I'm using the Windows client. |
I've found this: jellyfin/jellyfin-tizen#204 and it seems that it's possible to transcode the audio into AC3 or EAC3. So if the Moonlight client for Tizen could transcode to AC3 or EAC3 that has support for 5.1 surround sound instead of AAC that only supports stereo, problem is solved. Can you make the changes into the code to select the AC3 format and then I can test it? |
Well, Samsung devs gave a bit of info about audio there : https://developer.samsung.com/smarttv/develop/extension-libraries/webassembly/game-streaming-on-tizen-tv-with-wasm.html :
They transcoded the opus audio to a raw format audio (PCM) on purpose. |
The key would be for Sunshine to be able to use AC3 streams and not only PCM as it's right now. I can't understand why there is availability for image formats like HEVC, H264 and AV1 but there is not anyone for audio. AFAIK there shouldn't be so difficult to add audio encoding option on demand. This way if a Moonlight client request it (in Tizen or ChromeOS platforms, for example) there is no problem to do a passthrough for a optical toslink in only two compressed channels that the audio sound system could easy decode to 5.1 channels again. And if another client request the PCM stream it can be delivered the same as it is until now. May be that we can make some pressure to the Sunshine team so they consider adding this as a new feature to expand the compatibility with many Smart TV devices. I've created a request here: https://ideas.moonlight-stream.org/posts/360/add-support-for-5-1-encoded-audio-stream just in case that anyone wants to support it giving a positive vote or adding comments with his thoughts or ideas about the issue. Also I believe that today the Dolby Digital formats aren't protected with privative patents, so anyone can use it with projects like Sushine or Moonlight. That's why I can't honestly understand that there is no support for this already. The bandwidth could be also way too much smaller than when using the raw PCM stream. |
Hi, i've tested this build (rather, build it myself): |
I am waiting on this one as well. :) I have a 9.2.1 system + the Q-Symphony configured. |
Hi, have you noticed this issue? it looks promising. |
with this fork https://github.com/henryfa2/moonlight-chrome-tizen/tree/samsung_wasn_dev_5-1_test_support i got no sound at all while some people can even if its garbled, i selected pcm as output in my home theater's settings. Any ideas why? Would like to test some workarounds to try some fixes but can't hear at all |
When I was using the moonlight client for PC I was able to select audio output and I got 5.1 sound through my HDMI connect to the TV and the TV connected with optical cable to my sound system. But now with the Tizen client there is no setup options to select 5.1 sound and I'm only listening stereo sound (the sound system is displaying also that it's receiving a two channels stream). So my question is: Can this be added to this client? How can I get 5.1 sound from this Moonlight client?
The text was updated successfully, but these errors were encountered: