UnicornTranscoder / UnicornTranscoder

Remote transcoder for Plex
MIT License
703 stars 26 forks source link

Xbox 360 Plex App Isssues #74

Open dahartigan opened 5 years ago

dahartigan commented 5 years ago

Hi,

First, amazing project and thanks for sharing it!

I have managed to successfully set up Unicorn with 3 transcoders and everything works nicely through the Web UI, Android app, iOS app and even Samsung bluray with transcoding on all mentioned apps/devices.

Xbox 360 does not work. It shows the server, allows you to browse the library but does not play a file. Nothing happens on the transcoders and nothing obvious on the load balancer.

Is anyone else experiencing this?

Maxou44 commented 5 years ago

We don't have any xbox to debug this app (Buy us one and we will be happy to work on it 😁). Can you check if you see something in loadbalancer and/or plex logs ? Did you removed Plex Relay and blocked the 32400 port ? 😉

Maxou44 commented 5 years ago

Some users report issues with PS3, maybe it's related?

dahartigan commented 5 years ago

Sorry for the delayed reply. I have tried the new version of Unicorn* and the same thing occurs. At this stage, I would be confident to say this would be more of a limitation of the Xbox app more than it is a bug with Unicorn. Just something to be aware of for anyone who wishes to use this with Xbox 360.

I have had very limited success with using any third party plugins etc with Plex and the Xbox app, so i'm happy to have this marked as close if you are.

I have managed to get Unicorn functioning perfectly on other devices, so it's clearly a device-specific issue.

Nothing in the logs shows anything unusual. The loadbalancer shows that there is an attempt by a client to transcode a video. The transcoder shows absolutely nothing. Usual behaviour would be that the transcoder debug would output the attempt, show the progress etc, but on the Xbox that does not occur.

davidjameshowell commented 5 years ago

I believe on these devices like the PS3, Vizio TV App, and Xbox 360 - the cause of it from my last inspection was it not following 302 redirects properly. Have you ensured that your Plex Relay is removed as well. I have a feeling these devices do not respect the advertised Plex FQDN and thus does not hit the load balancer for return chunk delivery.

dahartigan commented 5 years ago

I have remove the Plex Relay binary, just to confirm that.

I think you are on the right track with those clients not respecting the 302 redirect.

I wonder if there is a way to otherwise "trick" these clients, server-side preferably (can't imagine family and friends wanting to mess about with DNS tricks, etc)

drouarb commented 5 years ago

If you see that the app in loadbalancer log, it means that the app is using the good route. It would mean that maybe the app is not following the 302 redirect. Maybe we could hack this by detecting the Xbox360 app and reverse proxy it to the transcoder. The iOS and Android app have an option to access cliebts logs through a built-in http server. Could you check if this option is available on Xbox360/PS3 ? If so, could you send us the client log please ?

dahartigan commented 5 years ago

It turns out that the Xbox 360 app has a way to enable logging, which sends it to the console of PMS.

I will set another test environment up for this, and will provide the logs ASAP.

Maxou44 commented 4 years ago

Any news on your side?