jellyfin / jellyfin-webos

WebOS Client for Jellyfin
https://jellyfin.org
Mozilla Public License 2.0
647 stars 68 forks source link

AV1 & Opus surround sound won't start player #176

Open Eelviny opened 1 year ago

Eelviny commented 1 year ago

My setup:

I have a lot of MKV files encoded using AV1 as the video codec, and two audio channels:

When I attempt to start the video, it displays the movie art but the player never loads. There's no way to go back so I need to turn the TV off and on to get Jellyfin working again. If I attempt to start the film with the 2.0 channel audio track, the same result happened.

I then re-encoded the audio track to Opus 5.1, to match my audio setup. Now the file plays perfectly fine. It seems to be the combination of AV1 video and the presence of an Opus audio track that doesn't match the number of audio channels that I have.

I also attempted with a video that was not encoded by me, but someone else using the same combination of AV1 and Opus 7.1, to rule out some weird encoding setting. That video had the exact same issue.

Happy to give a sample video clip to help with debugging, it seems to be a super specific set of codecs causing this bug.

Eelviny commented 1 year ago

Also, I have "Maximum Allowed Audio Channels" set to "5.1 Channels" in user playback settings. Changing it from Auto didn't make a difference.

Koritha commented 9 months ago

I'm having this exact same issue. Av1 video codec, and anything with OPUS 7.1 will cause the artwork to appear, but it goes no further. If I instead feed the same file with av1 + OPUS 5.1, it works flawlessly. Tv is an LG C3 OLED model.

sirjmann92 commented 7 months ago

Same thing here, LG G1 - AV1 + Opus 7.1 hangs attempting to start the player, indefinitely.

hjudt commented 6 months ago

I have the same issue with x265 + Opus 7.1. I am using only the built-in speakers no surround system. The player just hangs after showing the artwork screen, it does not start.

Copying the file to an USB stick and trying to play it using the built-in media application results in the same behaviour. It seems to me that this is a problem with the LGTV WebOS. If I set the audio track in the mkv file as second audio track, the media player will open the file because the first track is 5.1. if I then try to switch to any 7.1 track in media player options, the video will play but audio does not.

I assume this is not a problem with the video codec, but the audio channels and LGTV WebOS. Maybe the issue title should be renamed to "Opus 7.1 surround sound hangs the player at start" or something like that.

BTW: You can exit (kill) any application by holding the back button on the remote for a few seconds. The built-in media player reacts on the back button though, so it is not needed here.