jellyfin / jellyfin-androidtv

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

Jellyfin local playback from Android TV (shield) always transcodes #555

Closed smidley closed 3 years ago

smidley commented 4 years ago

Describe the bug I have a local Jellyfin server (Windows server), and an Nvidia shield running the latest Jellyfin app. Whenever I playback a video, it transcodes instead of direct plays. The reason for transcode on the server is “AudioCodecNotSupported”.

To Reproduce

  1. Select any file on Jellyfin for AndroidTV
  2. Use server dashboard to monitor playback method.
  3. See that the file is transcoding due to AudioCodecNotSupported.

Expected behavior Files should use directplay.

System (please complete the following information):

Additional context I have tried switching the player settings from "auto" to libVLC and ExoPlayer, and I still get the same result - Transcoding because AudioCodecNotSupported.

If I install VLC for Android, and use that as an External Player, every file direct plays fine.

EraYaN commented 4 years ago

Similar problem here, same device same symptoms. Not sure how and why.

jbl0ggs commented 3 years ago

I can't get any video to play with Jellyfin on Android TV (v9 on Sony TV). Tried the individual player and also External Player, having MX Player installed but that didn't work either. With ExoPlayer I get "Player error encountered". Any other selection it just goes into endless circling loading. Are there any external players that are known to work?

smidley commented 3 years ago

I can't get any video to play with Jellyfin on Android TV (v9 on Sony TV). Tried the individual player and also External Player, having MX Player installed but that didn't work either. With ExoPlayer I get "Player error encountered". Any other selection it just goes into endless circling loading. Are there any external players that are known to work?

The only way I got this to work was with VLC installed. And that as the external player.

smidley commented 3 years ago

Update - I got direct playback to work if I uncheck the playback option for the user that says "Allow video playback that requires transcoding", but leave the option checked that says "Allow audio playback that requires transcoding". This works even without using an external player like VLC. Regardless of this "workaround", Jellyfin should be able to figure out CORRECTLY if it can play back a file without having to transcode it. I shouldn't have to force it to NOT transcode every file. Since I have to set it this way, it's not using any algorithm in order to determine things like file type/size or bandwidth required.

stale[bot] commented 3 years 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.

yavuzakyuz commented 2 years ago

This issue seems to be persisting in Jellyfin server version: 10.7.7 and android tv app version: 0.13.2 The solution suggested by the original author below solved my issue also, but I agree that this is not an elegant solution as I now have to change my settings every time I need transcoding, or use switch between two accounts constantly.

Update - I got direct playback to work if I uncheck the playback option for the user that says "Allow video playback that requires transcoding", but leave the option checked that says "Allow audio playback that requires transcoding". This works even without using an external player like VLC. Regardless of this "workaround", Jellyfin should be able to figure out CORRECTLY if it can play back a file without having to transcode it. I shouldn't have to force it to NOT transcode every file. Since I have to set it this way, it's not using any algorithm in order to determine things like file type/size or bandwidth required.

ajoshuasmith commented 1 year ago

I also just encountered this issue on the latest version.

dangreen commented 3 months ago

Still valid issue