jellyfin / jellyfin-webos

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

Default audio selection is broken on webOS #165

Open enter-a-random-username opened 1 year ago

enter-a-random-username commented 1 year ago

Description

if (audio_track_count == 2  && audio_default != first_audio_track)
    plays the opposite track

(Properly similar with more than two audio tracks)

Example

Spanish ID 1, English ID 2 (default flag) Selected English to playback (or preselected)

Result It will play Spanish (Playback info is direct playing and it shows the codec from English in that overlay) => Only the audio itself is wrong

If i switch to Spanish, ti will play English track. Only on WebOS.

dmitrylyzo commented 1 year ago

What TV model?

Is Allow video playback that requires conversion without re-encoding enabled for the user?

If i switch to Spanish, ti will play English track. Only on WebOS.

Does it play direct in this case?

enter-a-random-username commented 1 year ago

What TV model?

X Lineup webOS 5.4.3

Is Allow video playback that requires conversion without re-encoding enabled for the user?

yes

If i switch to Spanish, ti will play English track. Only on WebOS.

Does it play direct in this case? Was direct playing based on playback info. I had AC3 track and showed ACC from other track in playback info.

It only is an issue in case default is not the first audio track.

dmitrylyzo commented 1 year ago

webOS 5.4.3

In this case it should direct play (as it does), and the "re-encode" option is irrelevant.

It only is an issue in case default is not the first audio track.

Have you tried setting Spanish as default (making a copy of the file)?

I can only guess:

enter-a-random-username commented 1 year ago

Have you tried setting Spanish as default (making a copy of the file)?

Had that issues multiple times and i tried to fix it.

Strange thing is it is reversed, so i can switch the tracks (like you reordered by webOS). Because it works on all other platforms, i think it is not the servers fault.

Not tried yet -> Use a test file on USB or via DLNA.

Any way to debug it? (That thing from the stone age LG calls a browser has the same issue. The audio is streamed so there must be an mix-up in URL?)

dmitrylyzo commented 1 year ago

Because it works on all other platforms, i think it is not the servers fault.

Makes sense.

Any way to debug it?

There is no built-in method, but you can try to debug the app using LG CLI tools (ares-inspect). Not sure if devmod needs to be activated on the TV. You should probably use Chrome 79, but try the browser you have first.

When the video starts playing, select the video element in the inspector and type $0.audioTracks in the console. This will show you the order of the tracks in the player.

If you want to go deeper, you can build the release-10.8.z branch of jellyfin-web using build:development instead of build:production and replace it on the server (making a backup of the original). The audio track changes here.

Cifer9516 commented 5 months ago

Same issue LG OLED CX. PC client marks and switches audio tracks correctly, webOS version on TV mixes them up randomly all the time. And sometimes there is no sound at all. edit. On further testing the problem seems to be only with external audio tracks

RaydenX93 commented 4 months ago

Me too