Transcoding
|
Posts: 22
Threads: 1
Joined: Oct 2015
[Solved]
Oct 05, 2015, 05:34 PM
(This post was last modified: Nov 09, 2015, 07:15 PM by tragidy.)
EDIT;
There are various tactics and methods in this posting to help you transcode on arm devices with plex.tv
Greetings,
I have applied the false statement to the latest plex running on jessie, ive also installed wheezy and applied the false statement to plex.js and locked the permissions.
To no avail the server always spits cannot convert video.
Is there any other steps that should be taken or could be taken?
All caches are clear still no transcode is attempted.
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Oct 05, 2015, 09:13 PM
Are you using the jessie repository? I haven't tested this recently after Plex made some changes.
What video codecs are you trying to transcode and which browser or Plex app are you using for playback?
Posts: 22
Threads: 1
Joined: Oct 2015
[Solved]
Oct 07, 2015, 04:01 PM
(Oct 05, 2015, 09:13 PM)Mike Wrote: Are you using the jessie repository? I haven't tested this recently after Plex made some changes.
What video codecs are you trying to transcode and which browser or Plex app are you using for playback?
I found the issue, plex.tv feeds its own javascript making the edits usless.
Run a small apache2/lighthttpd with redirects and voila it works.
Posts: 1
Threads: 0
Joined: Oct 2015
Reputation:
0
[Solved]
Oct 07, 2015, 07:06 PM
(This post was last modified: Nov 03, 2015, 07:44 PM by Mike.)
(Oct 07, 2015, 04:01 PM)tragidy Wrote: (Oct 05, 2015, 09:13 PM)Mike Wrote: Are you using the jessie repository? I haven't tested this recently after Plex made some changes.
What video codecs are you trying to transcode and which browser or Plex app are you using for playback?
I found the issue, plex.tv feeds its own javascript making the edits usless.
Run a small apache2/lighthttpd with redirects and voila it works.
Hi Tragidy,
Could you please provide more information about the redirects config? It seems like the fool proof way.
Thanks a lot
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Oct 08, 2015, 11:02 AM
Yes please Tragidy, I will add it to the guide as many users will be having this new
Posts: 22
Threads: 1
Joined: Oct 2015
[Solved]
Nov 02, 2015, 09:13 PM
(This post was last modified: Nov 02, 2015, 09:16 PM by tragidy.)
Sorry for long delay in response I never really checked back after I got it working.
Things you need
A Web Server ( local web server to serve plex.js )
Knowledge of networking
IPtables or OS level similar routing.
So its a basic and dirty fix, you want to block plex.js from being the rendered version so what I do in my case is use iptables and bind, bind is not needed but makes things easier for me.
Redirect DNS with your internal network to have plex.tv or app.plex.tv to be intercepted for plex.js a re-write rule may work but you still have to change your internal routing with this method.
If we look at the js being pushed to the client it is as follows in the js/plex.js of the plex webserver, the file we want to intercept and have loaded on the local network.. this is the link being sent to your media player via plex.tv https://app.plex.tv/web/js/plex.js
You can do redirects or injection at this point simply make your rules null https://app.plex.tv/web/js/plex.js to your own example https://localhost:8644/plex.js
Hope this helps you as its a involved process but then again very simple.
Just wanted to add that I have tested and confirmed working even to chromecast devices by rerouting the plex.js.
Orange Pi PC - Check
Raspberry Pi 2 - Check
Scaleway C1 node in france - Check
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Nov 02, 2015, 09:26 PM
Thank you tragidy, several users are having this problem. Could you provide a quick rough and dirty step-by-step of what to do to fix it? You will make many Chromecast users very happy .
I'd like to know more about these factors:
Something like your iptable rules (are you blocking any address that plex.tv resolves to)
Are you using nginx or another webserver to serve the modified plex.js? I'd love to see your vhost for whichever webserver you are using.
Have you modified the DNS on just the PMS host or for any device that connects to PMS? I would think that editing the hosts file on the PMS to resolve plex.tv to 127.0.0.1 would be sufficient but if the Chromecast makes use of the plex.tv plex.js file that would need to be redirected too.
Posts: 16
Threads: 1
Joined: Nov 2015
Reputation:
5
[Solved]
Nov 03, 2015, 12:32 AM
(This post was last modified: Nov 03, 2015, 12:39 AM by lukas.)
Hi tragedy,
I have a similar issue. Transcoding works fine on all my clients (Android, Chrome) after modifying the plex.js file.
However, when I cast anything to my Chromecast, I get the usual error message.
I was also wondering about this - whether the Chromecast fetches it's own plex.js from the http://www.plex.tv server and tried blocking it in the firewall of my router. However, this block only works for HTTP, unfortunately plex uses HTTPS.
That would mean I have to block the access directly on the Chromecast? Or to try unrooting my router so that I have access to iptables?
Edit: I just realized that my router allows SSH access. So I should have access to iptables etc. Will give it a try.
Posts: 16
Threads: 1
Joined: Nov 2015
Reputation:
5
[Solved]
Nov 03, 2015, 01:52 AM
(This post was last modified: Nov 03, 2015, 03:36 AM by lukas.)
Which IPs did you re-route?
In a first try just to check whether it could solve the problem, I just blocked access to the following IP ranges:
184.72.0.0 (255.255.0.0)
184.169.0.0 (255.255.0.0)
50.18.0.0 (255.255.0.0)
After the block, I cannot use the app on my phone anymore.
When I connect to the LAN IP of my PMS with my browser, I can connect and play.
However, the Chromecast still gives the same "not powerful enough" message. Either the Chromecast is connecting to a different range, still has a cached version, or uses a different way to check whether the server is powerful enough.
Edit: I think I found it:
http://chromecast.plex.tv/production/js/plex.js
The following 2 IPs seem to be linked to it:
104.20.6.9
104.20.7.9
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Nov 03, 2015, 06:50 AM
There you go Lukas, here are the lines making your life difficult
Code:
return e.media.premium&&n===!1?(l.warn("MDE: Unable to play; premium content requires a Plex Pass"),i("Premium content requires your server be connected with a Plex Pass subscription.")):void 0},validateTranscoder:function(e,t){if(!e.canDirectPlay){var n=t.transcodeServer;if(t.type===r.types.VIDEO){var s=n.get("transcoderVideo"),a=e.canDirectStreamVideo||!n.get("transcoderVideoRemuxOnly");if(!s||!a)return l.warn("MDE: Unable to play; server unable to transcode video"),i("This server is not powerful enough to convert video.")
}else if(t.type===r.types.MUSIC){var o=n.get("transcoderAudio");if(!o)return l.warn("MDE: Unable to play; server unable to transcode music"),i("This server is not powerful enough to convert music.")}}}
Should be
Code:
return e.media.premium&&n===!1?(l.warn("MDE: Unable to play; premium content requires a Plex Pass"),i("Premium content requires your server be connected with a Plex Pass subscription.")):void 0},validateTranscoder:function(e,t){return false;if(!e.canDirectPlay){var n=t.transcodeServer;if(t.type===r.types.VIDEO){var s=n.get("transcoderVideo"),a=e.canDirectStreamVideo||!n.get("transcoderVideoRemuxOnly");if(!s||!a)return l.warn("MDE: Unable to play; server unable to transcode video"),i("This server is not powerful enough to convert video.")
}else if(t.type===r.types.MUSIC){var o=n.get("transcoderAudio");if(!o)return l.warn("MDE: Unable to play; server unable to transcode music"),i("This server is not powerful enough to convert music.")}}}
Does the Chromecast allow custom DNS servers?
|
|
Recent Posts
|
About Swap
jonescelinaa Apr 10, 2024, 06:58 AM
|
Tracker Status: Error Connection Time Out
jonesPhedra Apr 04, 2024, 08:17 AM
|
Split Tunnel Docker Containers
jonesPhedra Mar 27, 2024, 03:10 AM
|
Plex server not powerful enough, but only with s...
jonesPhedra Mar 27, 2024, 03:02 AM
|
game Geometry Dash Scratch
jonescelinaa Jan 31, 2024, 04:21 AM
|
Latest unread posts | Unanswered posts |
|