Transcoding
|
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Jan 26, 2016, 06:04 PM
@bartje885 that is the correct one, though it should be called main***** (whatever it is on your original installation) instead since Plex changed the name of the file for some reason.
Posts: 3
Threads: 0
Joined: Jan 2016
Reputation:
0
[Solved]
Jan 27, 2016, 08:22 AM
(This post was last modified: Jan 27, 2016, 08:22 AM by bartje885.)
It just doesn't work, if I connect to the chromecast, I see PL in white letters on my TV. If I select a serie/movie in the Plex Beta App it says: Unable to connect to {chromecastname}.
I've edited the main***.js on the /usr/lib/.......plexmediaserver/......../..... and i've edited the main***.js in the /var/www/html/plex/js folder. I've used my Application ID from https://cast.google.com/publish/#/overview
What am I missing?
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Jan 27, 2016, 08:30 AM
Is nginx running @bartje885 (you can check with netstat -lntp)?
If you see @shreek comment the beta app is finnicky, if nginx is running and serving the files (you can browse to them manually) it should work.
Posts: 3
Threads: 0
Joined: Jan 2016
Reputation:
0
[Solved]
Jan 27, 2016, 08:40 AM
(This post was last modified: Jan 27, 2016, 08:40 AM by bartje885.)
(Jan 27, 2016, 08:30 AM)Mike Wrote: Is nginx running @bartje885 (you can check with netstat -lntp)?
If you see @shreek comment the beta app is finnicky, if nginx is running and serving the files (you can browse to them manually) it should work.
I use LEMP (from the complete install package http://www.htpcguides.com/raspberry-pi-2...ler-image/) and I can browse to the site.
Few things to clarify:
The URL I filled in at google = internal IP, correct?
I've edited the /usr/lib main**.js file and copied it to the /var/www/html/plex/js dir
Do I need to do this page as well? http://www.htpcguides.com/fix-plex-serve...erry-pi-2/
Posts: 9
Threads: 4
Joined: Sep 2015
Reputation:
0
[Solved]
Feb 07, 2016, 05:43 AM
Not sure if this is related to what issues I'm having but it sounds like it.
I've updated to Version 0.9.15.2 and now I get "There was a problem playing this item" message when playing files that need to be transcode that otherewise would've on previous versions. I modifed main**.js file as well as the plex.js file to return false for transcoding but that doesn't work.
I tried using the "Optimized Versions" tab to run a movie and I noticed it said "Converted files cannot be written to the disk" so I checked and made sure I had enough disk space under the transcoding folder and it has 14Gigs so I think I'm fine here.
What does anyone suggest I do here?
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Feb 07, 2016, 10:29 PM
@bookedirl the issue seems to be the latest Plex bug for iOS devices, there are reports of users using the old transcoder by extracting it and linking it, uglymagoo explained how he did it in this post
Posts: 9
Threads: 4
Joined: Sep 2015
Reputation:
0
[Solved]
Feb 07, 2016, 10:42 PM
(Feb 07, 2016, 10:29 PM)Mike Wrote: @bookedirl the issue seems to be the latest Plex bug for iOS devices, there are reports of users using the old transcoder by extracting it and linking it, uglymagoo explained how he did it in this post
thanks for the reply @Mike .. I'm not using the an iOS device for playback I'm using the browser on my laptop as well as Roku 4. So I don't think this applies here?
Posts: 22
Threads: 1
Joined: Oct 2015
[Solved]
Feb 29, 2016, 03:08 PM
(Feb 07, 2016, 10:42 PM)bookedirl Wrote: (Feb 07, 2016, 10:29 PM)Mike Wrote: @bookedirl the issue seems to be the latest Plex bug for iOS devices, there are reports of users using the old transcoder by extracting it and linking it, uglymagoo explained how he did it in this post
thanks for the reply @Mike .. I'm not using the an iOS device for playback I'm using the browser on my laptop as well as Roku 4. So I don't think this applies here?
Hello!
I have not been testing anything plex lately but if there was an update there is certainly the possiblity that the .js files need to be modified in a diffrernt mannor or they changed internals, I'm not saying this is the absolute case for the issue but that is a high possiblity.
Can you paste your .js files or attach them for me some-where more ideally, the unedited ones is what i want to see.
Cheers
TRAGiDY
Posts: 1
Threads: 0
Joined: Apr 2016
Reputation:
0
[Solved]
Apr 08, 2016, 12:59 PM
Just wanted to say huge thank you tragedy for posting this.
After months of trying to figure this out it finally works for me so many thanks to you tragidy
Posts: 2
Threads: 0
Joined: Apr 2016
Reputation:
0
[Solved]
Apr 26, 2016, 04:50 PM
(Nov 07, 2015, 11:09 AM)lukas Wrote: Sorry guys, I am a bit rushed. I just managed to write quickly some instructions of what I did.
I will try to make it a bit more detailed in the coming days.
There might be still some errors in the instructions. Let me know if you encounter any errors and I will troubleshoot and modify the tutorial.
The Google Chromecast Plex app connects to a landing page on the Plex servers (http://chromecast.plex.tv/production/index.html). This landing page contains a copy of the plex.js file, which checks whether your Chromecast is able to transcode videos or not.
In order to override the plex.js file with a modified version, you will have to create your own Chromecast app, which points to a modified version of the landing page. Afterwards, the PMS HTML files and the Android app have has to be modified so that they point to your own Chromecast app instead of the Plex app.
The normal Plex app points to the official Chromecast landing site. However, the attached beta version, which cannot be found in the Play store, allows to specify an own Chromecast App ID. If there are any updates, they can be automatically downloaded from within the Plex app.
Requirements
- Google Chromecast SDK account or $5 to register for it (see below)
- Web server (e.g. on your Raspberry Pi)
- WinSCP to upload files to you your Raspberry Pi (if you are using it as a web server)
Debugging on your Android phone
ADB drivers
- The following two files:
1) Plex (beta) for Android:
http://www34.zippyshare.com/v/722qTKB5/file.html
2) A copy of the Plex chromecast landing site:
1. Whitelist your Chromecast device
In order to use Chromecast apps that are not published, you will have to activate your device for testing.
- Visit the following website https://cast.google.com/publish/#/overview
- Register for access to the SDK (5 USD) or log in, if you have access already
- Click on "Add new device"
- If you are using the Chrome browser, just click the "Cast" button and cast the website to your Chromecast (it should give you the serial number of your Chromecast). Alternatively, you can find the serial number on your device.
- Enter the serial number and a description and add the device.
- Wait for 15 minutes and reboot the Chromecast.
2. Install a web server on your Raspberry Pi
I will add this section later. Instructions can be also found in the posts of tragidy and Mike.
3. Create your own Chromecast App
If you have an existing web server of webspace somewhere, these steps might be slightly different.
The version of the landing page attached is a copy from the original landing page. However, I have modified the plex.js file so that the transcoding validation is disabled.
- Use WinSCP to connect to your Raspberry Pi.
- Navigate to the folder that contains the web server content (e.g. /var/www/html/)
- Create a new folder (e.g. plex)
- Upload the Chromecast landing page to the new folder (plex_chromecast_landing_page.zip).
- Verify that the web server is working by opening the URL in a browser: http://YOUR.RASPBERRY.PI.IP/plex/
- Visit the Google Cast SDK: https://cast.google.com/publish/#/overview
- Click on "Add new Application"
- Choose "Custom Receiver"
- Enter "Plex" as name and the URL from above as Receiver Application URL
- Add the application and note down your application ID. This should be a mixture of 8 characters and digits.
4. Modify your PMS plex.js
This step is required to enable the Google Chrome browser to connect to your own Chromecast App Id.
- Use putty to connect to your Raspberry Pi. If you installed WinSCP, you can just use WinSCP to make it easier. However, note, that you will have to know the path of your plex.js file.
- Find the path of your plex.js file:
sudo find / -name plex.js
- Change to the folder that contains the plex.js file. In my example, the file is in the folder /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/WebClient.bundle/Contents/Resources/js. Depending on the PMS version, this path might be different.
cd /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/WebClient.bundle/Contents/Resources/js
- Open the file in an editor:
sudo nano plex.js
- Press Ctrl+W and search for the following value:
9AC194DC
- Change the value to your own Chromecast App ID. Press Ctrl+X, Y and Enter to save the modified plex.js.
5. Install the Plex beta app (Android)
This step is probably the most tricky part. The Chromecast App ID is hardcoded in the Plex app. So we have to decompile the APK file, change the ID, and re-compile it.
The beta versions of Plex allow the user to enter a custom Chromecast App ID. Since this feature is not available in the normal version, you have to install the beta APK file.
- Use your phone and go the settings.
- Find the option "Security" (HTC) or "Lock screen and security" (Samsung). I am not sure how this option is called on other Android devices.
- Make sure that the option "Unknown sources" is enabled.
- Download the Plex beta app on your Android phone and install it.
- Open the Plex (beta) app. You will have to re-login to the app and it won't keep the settings from the normal Plex app.
- Go to "Settings" -> "Advanced" and select "Chromecast".
- Change Chromecast Application ID to "Custom".
- In the field "Custom Chromecast Application ID", enter your own Chromecast Application ID.
- Go back and connect to your Chromecast. You should now be able to cast videos using your own Chromecast App.
Hi, I'm trying to follow this guide and everything seems to make sense except for step 2, which I'm trying to work out what to do from all of Mike and Lukas' posts but an struggling.
I've create an nginx server on my pi, and copied the files to a directory under Plex, but I'm seeing nothing appear when i test it in s browser. Any ideas? maybe i need to setup permissions to that folder or something? It's been years since I've done anything web server related.
Thanks for getting this guide up by the way, really looking forward to everything working.
|
|
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 |
|