Open branches78 opened 2 years ago
I believe I'm having the same issue. Exoplayer wont play anything at all and LibVLC will play without audio. Kodi also plays without audio until I turn off passthrough, then it plays in 2.0 DD+
I believe I'm having the same issue. Exoplayer wont play anything at all and LibVLC will play without audio. Kodi also plays without audio until I turn off passthrough, then it plays in 2.0 DD+
And what is your device?
Tivo Stream 4K, running latest update with Android 10. Server is on 10.8.0 beta 3.
With the new 10.8.1 server, some are now playing, others still don't while others stopped playing:
ON THE MECOOL KT1 WITH ANDROID 10:
ON THE REALME STICK WITH GOOGLE TV 11:
With the latest Jellyfin git I can play 2 channel DTS with LibVLC, but 6 channel still doesn't play. (strangely enough everything works perfectly though my TVs media player with DLNA)
With the latest Jellyfin git I can play 2 channel DTS with LibVLC, but 6 channel still doesn't play.
Did you test exoplayer?
Exoplayer is still not playing anything at all for me.
With the new 0.14.3 version of Jellyfin for Android TV, Android 10 worsen a bit while Android 11 improved a bit as well, take a look at the bold ones and compare them with the above screenshots:
Android 10:
Android 11:
Was able to fix my audio issues in libVLC by changing my devices audio settings from manually selecting which codecs my device supports to setting it to automatic. It chooses the same exact codecs so I have no idea why that would fix things. Haven't done thorough testing. Exoplayer still does not work though.
Are these test files available anywhere for download so I can test on some other devices? I've run into some audio issues on my CCwGTV (and I also have the HD-version to test with) hooked to my Denon receiver that I never experienced with Shield TV (but can compare results with that). Sorry if I missed the files anywhere but I did look twice and couldn't find them. I probably have full coverage across my media library but finding them will be taxing.
Are these test files available anywhere for download so I can test on some other devices? I've run into some audio issues on my CCwGTV (and I also have the HD-version to test with) hooked to my Denon receiver that I never experienced with Shield TV (but can compare results with that). Sorry if I missed the files anywhere but I did look twice and couldn't find them. I probably have full coverage across my media library but finding them will be taxing.
I can share the files to you through a Google Drive link, however, I need to run another test with the latest version of the Jellyfin app that was released recently to see how it improved and I will reply back.
Are these test files available anywhere for download so I can test on some other devices? I've run into some audio issues on my CCwGTV (and I also have the HD-version to test with) hooked to my Denon receiver that I never experienced with Shield TV (but can compare results with that). Sorry if I missed the files anywhere but I did look twice and couldn't find them. I probably have full coverage across my media library but finding them will be taxing.
I can share the files to you through a Google Drive link, however, I need to run another test with the latest version of the Jellyfin app that was released recently to see how it improved and I will reply back.
you may encounter issues in 0.15.1 based on a change that broke truehd (unknown to me if it affects dts in any way - fixed in master but unreleased). Maybe 0.15 would be better to test against if your client isn't updated.
Ok, I will test and share.
Thank you for letting me know.
I was able to test the latest stable version of the server and the latest stable version of the Android TV app on Android 11 (I don't have the Android TV device with Android 10 anymore) and I see an improvement with DTS, however, I'm pretty sure that those issues have been resolved in latest Google security patches regardless of the Android version, so I imagine that if an Android TV device with Android 9 and Android 10 get updated with a more recent security patch, DTS issues will be resolved as well.
What I still see is that turning OFF the DTS option, the DTS codecs are not decoded as multichannel PCM but passing through directly whether using Exolplayer or libVLC so this is something that needs to be addressed.
The only DTS codec not working is DTS-HD Master Audio in the 96Khz, it gives a playback error with Exoplayer but it passes through with libVLC.
It's always worth mentioning that devices like mine don't have DTS-HD High Resolution Audio and Master Audio passthrough, therefore, the DTS core is the one passed through in my tests.
I also tested Dolby Digital Plus with and without Dolby Atmos and they passthrough correctly as well.
Dolby TrueHD seems to be passing through with Exoplayer, I didn't find any transcoding log but I don't get audio with libVLC.
Let me know if you still need the files.
Great findings. I have had great results with DTS except for 7.1.
I would love the files.
I can add to the testing with additional devices as well as a receiver that natively supports passthrough for all of these audio formats.
Make sure you use the "Auto" option audio setting on not a manual setting or passthrough setting on your Android TV device.
Make sure you use the "Auto" option audio setting on not a manual setting or passthrough setting on your Android TV device.
Within Jellyfin app, or in the Android TV settings? My devices are on Android 12 and don't recall seeing that option.
Within Jellyfin app, or in the Android TV settings?
In the Jellyfin app look for a Direct option and look for Auto in the Android TV settings.
What devices do you have?
Within Jellyfin app, or in the Android TV settings?
In the Jellyfin app look for a Direct option and look for Auto in the Android TV settings.
What devices do you have?
2x CCwGTV 4k 1x CCwGTV HDR (1080p) 2x Shield (2019)
Can you share a picture of the audio setting of one of the CC and the shield if it's not a problem?
I've gathered some additional test files with other media formats (FLAC, LPCM, DTS:X 7.1.4, DTS-ES 6.1, AAC, etc)... would you like me to upload them to your drive?
CCwGTV 4k:
Jellyfin:
would you like me to upload them to your drive?
I don't see it necessary and I'll tell you why:
FLAC, LPCM and AAC are decoded internally by the device as PCM or LPCM and even though stereo ones are playing correctly, there are issues with multichannel music files in the 88.2, 96khz and 192khz resolutions which I already explained in a separate post (https://github.com/jellyfin/jellyfin-androidtv/issues/1755), however, playing those audio codecs with video files inside containers such as MKV is a different story, they usually have issues when the the resolution is 96Khz, where the audio doesn't get decoded and no audio is output, that issue is related directly to Exoplayer because they get decoded with libVLC.
You can test them and confirm what I'm saying.
A per the screenshots, I see that "Automatic" is selected in the device and "Direct" in "Audio output" which is correct but I think you should select "Auto" with "Max streaming bitrate" just to avoid issues.
would you like me to upload them to your drive?
I don't see it necessary and I'll tell you why:
FLAC, LPCM and AAC are decoded internally by the device as PCM or LPCM and even though stereo ones are playing correctly, there are issues with multichannel music files in the 88.2, 96khz and 192khz resolutions which I already explained in a separate post (#1755), however, playing those audio codecs with video files inside containers such as MKV is a different story, they usually have issues when the the resolution is 96Khz, where the audio doesn't get decoded and no audio is output, that issue is related directly to Exoplayer because they get decoded with libVLC.
You can test them and confirm what I'm saying.
A per the screenshots, I see that "Automatic" is selected in the device and "Direct" in "Audio output" which is correct but I think you should select "Auto" with "Max streaming bitrate" just to avoid issues.
thanks! I do think the additional DTS tests will be helpful at least, though.
I selected Max streaming bitrate to 50mbps on the CCwGTV because i ran into issues with Auto, however, it could have been related to my issues with v0.15.1 and burn-in subs with truehd audio #2396 - that shouldnt' be an issue with these test files so i will reset it back to Auto!
I will test them all and let you know of the results (probably this weekend).
I just installed the new version 0.15.2 and Dolby Atmos inside Dolby Digital Plus with 7.1 channels is broken, it was working with the previous version, Dolby Atmos inside Dolby Digital Plus with 5.1 channels is working fine, though I still need to test the rest of the files.
0.15.1 included #2381 which must have supported that, but it was reverted in v0.15.2 since transcoding for burned-in subs was broken. I believe 0.16 will have #2381 back in it and these tests could help out @nielsvanvelzen
The changes in #2381 only affect the supported audio codecs for transcodes. Previously when we needed to transcode because the video codec wasn't supported it would also transcode audio most of the time. The change added all audio codecs normally supported for direct play. There was one regression in that change though, even when FFmpeg copies the audio stream is needs the encoder for the audio codec. And two of the codecs that got added were in experimental stage and needed a special flag that the server did not provide. We've changed that for 10.8.9 but also reverted those 2 codecs (TrueHD and DCA) for now in #2397. We can revert that once we change the client to only support 10.9 and newer (likely in 0.16).
I tested all the files and non of the DTS files played and Dolby TrueHD with 7.1 channels didn't play either, they all played in the previous version, I guess I will have to wait for the next 0.16 version.
I tested all the files and non of the DTS files played and Dolby TrueHD with 7.1 channels didn't play either, they all played in the previous version, I guess I will have to wait for the next 0.16 version.
same, v0.15.2 is unusable for my home theater as very few movies are playing at all or with sound (downmixing everything isn't enjoyable to me). I'll have to go back to Plex (ugh) until v0.16+. i'll still run the tests on your test files now that i've added them to my library.
My results on a CCwGTV 4K -> Denon AV -> Samsung 4K TV:
I'm going to add Dolby Digital 2.0 and DTS 2.0 in this bug report since the one I created was closed due to inactivity, therefore, with server version 10.8.8 and 0.15.2 version of the Emby for Android TV app, Dolby Digital 2.0 and DTS 2.0 are passing through directly with Exoplayer, but they are still getting decoded as PCM 2.0 with libVLC.
Updated my comment with a better table - and also added Plex comparison on the same device (to show capabilities / like-comparison).
Can you share your new test files? Also, I'm happy to share my additional ones.
Can you share your new test files?
I don't have more test files, do you mean the Dolby Digital 2,0 and DTS 2.0 ones?
Can you share your new test files?
I don't have more test files, do you mean the Dolby Digital 2,0 and DTS 2.0 ones?
yea - just so we can test with same files
so we can test with same files
They're basically a copy of two of the same files but I reduced the channels to stereo, look for one file called Dolby Digital 2.0 and one called DTS 2.0 in the Google Drive folder.
Added some additional tests.
Did you run the above tests only with Exoplayer?
Correct, only ExoPlayer. That's what Plex uses, too. I wanted to show that it was technically possible to be at least at par with Plex using the same native player. Since LibVLC isn't recommended, I have stayed away from it. I can try to run those tests on LibVLC but it may be later next week until I can do that.
With new server 10.8.9 and new Android TV app 0.15.3 this is what I've got:
With DTS codecs:
With Dolby codecs:
With PCM 96Khz which is the resolution that has issues with Exoplayer:
I agree with @almightiest when using Max streaming bitrate, using "Auto" has issues so it's better to use a manual bitrate, I used the 120Mb/s option and I didn't have too many playback issues.
Also, for some reason, PCM 5.1 96khz didn't play in my initial test but it was working afterwards, so it seems Exoplayer is still buggy.
Pretty much the same except for now having normal audio levels for TrueHD transcode to Multi, but super low volume on DD 2.0 48khz passthrough.
Noticed this a few days ago, in detail. Since the uodaae to 0.15.3 on my Shield 2019 Pro with Denon AVR 4700H all DTS HD tracks play only the core DTS. DD+ and ATMOS play just fine.
When starting the DTS HD tracks are recognised as DTS HI-RES at first and playing all 8 channels, but drop to DTS core eventually.
If I should provide some media info let me know. Otherwise I'll wait for 0.16.
all DTS HD tracks play only the core DTS
Thank you for sharing this to us, but I wonder if it was working on previous versions.
Have done some tests yesterday after posting this. As far as I could observe, DTS HD MA up to 5.1 channels get as DTS HI RES to the AVR. DTS HD HRA will get there as well with all channels present. DTS HD MA with 7.1 channels only show up as DTS Core.
Interestingly a DTS HD MA 2.0 got there as DD+ 2.0, witch I could not understand. Will do some more tests and compare the media info as in previous posts.
As for previous versions, I am quite sure it worked when I sat up Jellyfin (and up 3 about 3 weeks ago. But When I tested with older clients by side loading them, all showed the same as the most recent. So could not verify it, but I'd say it had once worked as the sound quality is pretty important to me and I'd like to feed the 7.1.2 channels I set up as much as possible.
Is it important to note that I play them with libVLC as Exoplayer does not play some files. If you need something specific I'd be happy to provide if possible.
Edit: Tried to find the Jellyfin-logs on the Shield, but I could not even find the app folder, can someone point me to the location I should find it. All I find via ADB are those:
mdarcy:/storage/self/primary/Android/data $ ls
com.android.gallery3d com.google.android.gms com.nvidia.tegrazone3
com.android.vending com.google.android.katniss org.xbmc.kodi
Hello everyone, I wasn't able to test the previous version 0.15.4 but I was able to test the recent 0.15.5, therefore, here's my test results:
First of all, I want to thank the developers for taking into account this topic, they were able to provide passthrough support for Dolby TrueHD but not without on single issue:
The "Auto" bitrate still has playback issues and I hope they get resolved but I was able to play all codecs by selecting a manual bitrate of 120Mb/s.
I only tested Exoplayer since libVLC was marked as experimental and it has some issues as well.
With Dolby codecs while using "Auto" and 120Mb/s:
With DTS codecs while using "Auto" bitrate:
With DTS codecs while using the 120Mb/s bitrate:
Music playback also needs work and it's explained in detail here: https://github.com/jellyfin/jellyfin-androidtv/issues/1755#issuecomment-1472685422
THINGS TO DO:
1) The app needs a separate DTS-HD and Dolby TrueHD options to be able to turn OFF passthrough for those codecs since most Android TV devices don't support it, the idea is to avoid transcoding to Dolby Digital and instead to get multichannel PCM, the options could be similar as the ones found in Emby:
Hello everyone, I wasn't able to test the previous version 0.15.4 but I was able to test the recent 0.15.5, therefore, here's my test results:
First of all, I want to thank the developers for taking into account this topic, they were able to provide passthrough support for Dolby TrueHD but not without on single issue:
The "Auto" bitrate still has playback issues and I hope they get resolved but I was able to play all codecs by selecting a manual bitrate of 120Mb/s.
I only tested Exoplayer since libVLC was marked as experimental and it has some issues as well.
With Dolby codecs and PCM while using "Auto" and 120Mb/s:
With DTS codecs while using "Auto" bitrate:
With DTS codecs while using the 120Mb/s bitrate:
Music playback also needs work and it's explained in detail here: #1755 (comment)
THINGS TO DO:
- The app needs a separate DTS-HD and Dolby TrueHD options to be able to turn OFF passthrough for those codecs since most Android TV devices don't support it, the idea is to avoid transcoding to Dolby Digital and instead to get multichannel PCM, the options could be similar as the ones found in Emby:
I'm having a much different experience on my CC with GTV device, even on v0.15.5 and setting 120mbps.
On DTS, everything but regular DTS 5.1 is broken and results in errors. On TrueHD, anything 7.1 is broken. No issues with Plex on any of these media files.
I'm having a much different experience on my CC with GTV device, even on v0.15.5 and setting 120mbps.
Can you please tell me what is the date of the security patch installed in the CC?
I'm having a much different experience on my CC with GTV device, even on v0.15.5 and setting 120mbps.
Can you please tell me what is the date of the security patch installed in the CC?
Oct 1, 2022 (latest for CC w GTV 4K)
Ok, if I'm not wrong, all DTS issues were fixed in later versions, when I bought the Realme 4K stick with Android 11 it was on juanuary 2022 and it had issues with DTS, they recently updated it to november 2022 but I've been unable to test it out, meanwhile, when I got the Homatics box it was on november 2022 and the DTS issues were fixed, it is currently on january 2023 and it still works correctly.
I don't have the Realme Stick around for the moment so I've been unable to test it out but I will reply once I have the chance just to compare the results. The Chromecast doesn't have Dolby TrueHD passthrough support so the codec should be transcoded to Dolby Digital, are you saying that you are not getting that either?
What do you mean with "anything 7.1 is broken"?
Ok, if I'm not wrong, all DTS issues were fixed in later versions, when I bought the Realme 4K stick with Android 11 it was on juanuary 2022 and it had issues with DTS, they recently updated it to november 2022 but I've been unable to test it out, meanwhile, when I got the Homatics box it was on november 2022 and the DTS issues were fixed, it is currently on january 2023 and it still works correctly.
I don't have the Realme Stick around for the moment so I've been unable to test it out but I will reply once I have the chance just to compare the results. The Chromecast doesn't have Dolby TrueHD passthrough support so the codec should be transcoded to Dolby Digital, are you saying that you are not getting that either?
What do you mean with "anything 7.1 is broken"?
I get the popup on screen "Too many errors" and it doesn't play anything for most DTS and TrueHD codecs. Basically my post from before on Jan 28 is the same. Downmixing to stereo isn't an option for us, so we are using Plex until further notice. I hate it, would rather use jelly fin, so I keep trying as updates come out, but nothing is changing for me.
On my two Android TV devices (Mecool KT1 with Android 10 and Realme 4K Stick with Google TV 11), I'm getting two odd behaviors with the DTS option ON and OFF using Exoplayer or libVLC while they're connected to a AV receiver.
BASICALLY, WHEN THE DTS OPTION IS ON, ALL DTS CODECS SHOULD PASSTHROUGH IF THE DEVICE HAS SUPPORT OR GET TRANSCODED TO DOLBY DIGITAL WHEN IT DOESN'T HAVE SUPPORT, WHEN THE OPTION IS OFF, ALL DTS CODECS SHOULD BE DECODED AS MULTICHANNEL PCM.
It's important to clarify that I have to exit from the app every time I turn the option ON and OFF to operate correctly.
I tested Exoplayer and libVLC with videos using the h264, h265 video codecs and DTS and DTS-HD streams with 48Khz and 96Khz sampling frequencies.
ON THE MECOOL KT1 WITH ANDROID 10:
Media Player: Exoplayer
DTS option ON and OFF:
H264/DTS 5.1 48KHZ = Playback error H265/DTS 5.1 48KHZ = Playback error H264/DTS 5.1 96KHZ = Playback error H265/DTS 5.1 96KHZ = Playback error H264/DTS-HD MA 5.1 48KHZ = Playback error H265/DTS-HD MA 5.1 48KHZ = Playback error H264/DTS-HD MA 7.1 48KHZ = DD H265/DTS-HD MA 7.1 48KHZ = DD H264/DTS-HD MA 7.1 96KHZ = Playback error H265/DTS-HD MA 7.1 96KHZ = DD
Media Player: libVLC:
DTS option ON:
H264/DTS 5.1 48KHZ = DTS H265/DTS 5.1 48KHZ = DTS H264/DTS 5.1 96KHZ = DTS H265/DTS 5.1 96KHZ = DTS H264/DTS-HD MA 5.1 48KHZ = PCM 7.1 H265/DTS-HD MA 5.1 48KHZ = DTS without sound H264/DTS-HD MA 7.1 48KHZ = DTS without sound H265/DTS-HD MA 7.1 48KHZ = DTS without sound H264/DTS-HD MA 7.1 96KHZ = PCM 7.1 H265/DTS-HD MA 7.1 96KHZ = PCM 7.1
DTS option OFF:
H264/DTS 5.1 48KHZ = DTS H265/DTS 5.1 48KHZ = DTS H264/DTS 5.1 96KHZ = DTS H265/DTS 5.1 96KHZ = DTS H264/DTS-HD MA 5.1 48KHZ = DTS without sound H265/DTS-HD MA 5.1 48KHZ = DTS without sound H264/DTS-HD MA 7.1 48KHZ = DTS without sound H265/DTS-HD MA 7.1 48KHZ = DTS without sound H264/DTS-HD MA 7.1 96KHZ = PCM 7.1 H265/DTS-HD MA 7.1 96KHZ = PCM 7.1
ON THE REALME STICK WITH GOOGLE TV 11:
Media Player: Exoplayer
DTS option ON:
H264/DTS 5.1 48KHZ = DTS H265/DTS 5.1 48KHZ = DTS H264/DTS 5.1 96KHZ = DTS H265/DTS 5.1 96KHZ = DTS H264/DTS-HD MA 5.1 48KHZ = DTS H265/DTS-HD MA 5.1 48KHZ = DTS H264/DTS-HD MA 7.1 48KHZ = DD H265/DTS-HD MA 7.1 48KHZ = DD H264/DTS-HD MA 7.1 96KHZ = Playback error H265/DTS-HD MA 7.1 96KHZ = DD
DTS option OFF:
H264/DTS 5.1 48KHZ = DTS H265/DTS 5.1 48KHZ = DTS H264/DTS 5.1 96KHZ = DTS H265/DTS 5.1 96KHZ = DTS H264/DTS-HD MA 5.1 48KHZ = DTS H265/DTS-HD MA 5.1 48KHZ = DTS H264/DTS-HD MA 7.1 48KHZ = DD H265/DTS-HD MA 7.1 48KHZ = DD H264/DTS-HD MA 7.1 96KHZ = DD H265/DTS-HD MA 7.1 96KHZ = DD
Media Player: libVLC:
DTS option ON:
H264/DTS 5.1 48KHZ = PCM 5.1 H265/DTS 5.1 48KHZ = PCM 5.1 H264/DTS 5.1 96KHZ = PCM 5.1 H265/DTS 5.1 96KHZ = PCM 5.1 H264/DTS-HD MA 5.1 48KHZ = PCM 5.1 H265/DTS-HD MA 5.1 48KHZ = PCM 5.1 H264/DTS-HD MA 7.1 48KHZ = PCM 2.0 H265/DTS-HD MA 7.1 48KHZ = PCM 2.0 H264/DTS-HD MA 7.1 96KHZ = PCM 2.0 H265/DTS-HD MA 7.1 96KHZ = PCM 2.0
DTS option OFF:
H264/DTS 5.1 48KHZ = PCM 5.1 H265/DTS 5.1 48KHZ = PCM 5.1 H264/DTS 5.1 96KHZ = PCM 5.1 H265/DTS 5.1 96KHZ = PCM 5.1 H264/DTS-HD MA 5.1 48KHZ = PCM 5.1 H265/DTS-HD MA 5.1 48KHZ = PCM 5.1 H264/DTS-HD MA 7.1 48KHZ = PCM 2.0 H265/DTS-HD MA 7.1 48KHZ = PCM 2.0 H264/DTS-HD MA 7.1 96KHZ = PCM 2.0 H265/DTS-HD MA 7.1 96KHZ = PCM 2.0
Android 9, 10 and 11 have issues decoding multichannel PCM, they are explained here:
https://issuetracker.google.com/issues/235460800
Server System (please complete the following information):
Client System (please complete the following information):