jellyfin / jellyfin-androidtv

Android TV Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.86k stars 488 forks source link

Playback speed can be selected but has no effect. #2367

Closed Media250 closed 1 year ago

Media250 commented 1 year ago

Describe the bug

Current setup is streaming from PC to TV. When watching shows and movies, the playback speed option is available and can be changed but the setting does not actually affect the speed. When changing the player to libvlc, the playback speed does change, but the audio cuts out at anything other than 1x speed.

Playing on PC has no problems changing speed.

Logs

No response

Application version

0.15.0

Where did you install the app from?

Google Play

Device information

Hi-sense U8H

Android version

Google TV

Jellyfin server version

10.8.8

FarisR99 commented 1 year ago

Experienced the same issue of playback speed having no effect this week streaming from my Ubuntu server (latest Jellyfin server) to my Shield Pro.

momelod commented 1 year ago

+1 for me too.

DavidFair commented 1 year ago

Unfortunately there isn't much we can do...

I ran into this not long after implementing the functionality to control playback speed. I suspect your using exoplayer with your content?

Debugging the exoplayer source code and communicating with the exoplayer devs this appears to be effectively device specific. Under the hood we ask exoplayer (which relays this to the device) we'd like to play at x speed.

The device then applies some internal heuristic (I suspect) to determine if this is actually something supported given the bitrate, codec... Etc.

Jellyfin then gets a callback from the TV saying we're now playing at this speed. When the internal algorithm determines it can't support the requested speed it effectively just returns 1x, so the button does nothing from a user's POV.

I've semi confirmed this by buying an Nvidia Shield which could play some content at higher speeds my TV wouldn't attempt.

You can try to force transcoding by dropping the bitrate and tweaking the codecs the server will support to tailor it to your TV. You can also try the VLC player instead, but I've noticed this will stutter and fail to keep up if content is demanding, instead of falling back to 1x speed. Ultimately this is out of our control as far as I can tell. But I'm happy to be corrected and do further investigation if someone has an idea...

jellyfin-bot commented 1 year ago

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.

If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.

This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

Kuphi commented 2 months ago

This is still an issue as of 29.08.2024. Would love if this could get fixed. Is an Amazon Fire TV Stick 4k Max 2023 too slow for accelerated 4k playback? (H.265, 10bit, 2880x2160, 2500kbit/s average). Thanks!

nylimited commented 2 months ago

This is still an issue as of 29.08.2024. Would love if this could get fixed. Is an Amazon Fire TV Stick 4k Max 2023 too slow for accelerated 4k playback? (H.265, 10bit, 2880x2160, 2500kbit/s average). Thanks!

I have not had any issues with Firestick 4K Max and full 4K playback (.265, 10 bit etc) when using Plex. Hence my guess would be that it is not a Firestick problem ...

Kuphi commented 2 months ago

Debugging the exoplayer source code and communicating with the exoplayer devs this appears to be effectively device specific. Under the hood we ask exoplayer (which relays this to the device) we'd like to play at x speed.

It seems this is the active repository of exoplayer: https://github.com/androidx/media

I was not able to find the issue regarding playback speed. Can anyone find it? Otherwise we should open one.

Those two might be related though: https://github.com/androidx/media/issues/1110 https://github.com/androidx/media/issues/1101

This might be a possible fix: https://github.com/androidx/media/issues/1101#issuecomment-1954010745 (Has to be applied in source code)