-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix webOS DTS audio support #2971
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, seems like they stopped paying for the license.
So it seems those versions don't seem to hold up in the webOS browser, since at least on my Chromium 53 equipped WebApp Engine based TV the browser is actually Chromium 79. And it's a 2018 WebOS v4 TV. |
f7a0814
to
8eabf8d
Compare
tbh, NetCast version detection looks unreliable. |
Can confirm detection doesn't work on the browser on webOS 5, although it does work on the webOS app, playback appears to completely break after 1 to 3 minutes (on the same exact timestamp every time I test it, so it isn't random), which is weird since it doesn't happen with other transcoded codecs like TrueHD. Can't see anything special on logs or ffmpeg logs so if anyone has tested this yet please let me know if you encounter a similar issue. I found a workaround that requires you to select a direct play audio track such as an AC3 commentary and start playback with it, then switching back to the main DTS track and it won't freeze, however, it is unreliable since not every movie has a commentary track on it... I have no idea what's going on. |
@whiteworthy Also, could you open https://shaka-player-demo.appspot.com/support.html in the webOS browser and post version of |
Pretty sure the DTS support in an MKV container on that chart is an error. I cannot get any DTS audio to play, including with MKVs. I'd assume there's no DTS across the board. |
Can confirm the above from Mchar7. Yes it's playing as "Direct stream" SmartTV is 10.0 and Chrome is 79.0.3945.79 (even though it's a 2020 model), I guess that confirms EraYaN suspicions that the LG documentation you linked is wrong. I've been able to play some content without freezing, so I will post both mediainfo from content I've been able to play and content that freezes at a specific timestamp. One that freezes at 1:14: https://gist.github.com/whiteworthy/8e349f2fd508312d408b41fbe3b4071e |
So what do we have for the browser: We could try this (still not perfect because it can be false negative):
I hope we can forget about the browser when we release the app 😅 About video freezing. |
If you mean stats for nerds it shows as Direct streaming "HEVC direct copy" and below it shows DTS to AAC, audio plays fine before the freeze, same info on jellyfin dashboard. Maybe it's a webOS app specific bug? I will test on the browser once you implement the fixes. I haven't found a 1080p video that freezes yet (I will test further soon), so it could be due to HDR, but it's confusing since I can play 4K HEVC HDR just fine on other movies. I will attach logs of when I try to play the freezing video, not sure if there's anything useful though. Jellyfin (I stop playback right after video freezes): https://gist.github.com/whiteworthy/4bb3a0187861a36baa6c319051715b45 I'm pretty sure it's due to a webOS update since I compiled a Default.cs transcoding profile that transcodes DTS and it worked just fine on the browser without freezing, and the fact my browser Chrome version was 68 before I updated further confirms it, couldn't find a changelog and there's no way to downgrade, unfortunately. I will make sure to never update webOS again. |
I added what I said. The webOS browser should now transcode DTS if it isn't supported according to |
0e6e3fd
to
59bd00a
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look fine, but I have no way of testing them currently.
I could test it on a WebOS 5 LG TV. Is there a way to get the latest 10.8.0 release version into jellyfin-webos for deploying it on the TV? |
@dmitrylyzo @thornbill I've figured it out ( log:
Really amazing work guys, thanks a lot for this fix. |
previously: #2942
After discussion on Matrix, we decided to make a new PR.
As far as I understand, LG has discontinued supporting DTS on 2020 TV models.
I can't find an official statement, and the documentation is inconsistent (DTS is in
mkv
, but at least it's not inavi
).Changes
Issues
jellyfin/jellyfin-webos#56
To support this in webOS browser, we need to detect
NetCast
as webOS (#2781).References
[Web Engines] https://webostv.developer.lge.com/discover/specifications/web-engine/