Instructions: How to Build Plex Media Player on Raspberry Pi 4 B Under Raspbian

Does this vary by client? I have looked in PMP for Windows and the Android client on my Shield and I can’t find this setting.

Hi Mate,

Yeah, it definitely varies.

From the various ones I run here at home:
PMP on Rasbian: Usernane [In the top left] > Settings > Manual Servers > Connection 1 > IP / Port here
Android Phone: "Hamburger Menu [Three vertical bars top left - Only needed if you’re not in the Home Page for the app] > Settings [Cog in top right] > Advanced > Manual connections > Connection 1 > IP / Port which can be defined here.
LG Smart TV (~ 2016 model): Username [In the top right] > Settings > Manual Servers > Connection 1 > IP / Port here
Windows 10 (Plex for Windows, not Plex Media Player for Windows): Can’t bloody find it!

I hope this helps :slight_smile:

Ha…me neither!!!

Any real experts out there? LOL

Makers of Plex really screwed the pooch on the latest Windows and Mac Plex Players.
Wouldn’t be surprised if they actually discontinued it.
One of the critical things they took away from both was the ability to use your keyboard to control the app. They wanted you to use a Flirc and remote like a Fire TV.

Awesome write up!
Just one question, would is be possible to follow this using a Pi 3 B+
I’d love to have the Live TV/DVR that they took out of RasPlex 1.7 and 1.8!
I had Pi 3B’s running until I got my HDHomerun box added to my Plex server then found out all my Pi’s wouldn’t connect to the HDHomeRun via Plex!

I don’t see why you can’t build for RPi3B+, you just need to meet the same prereqs installed here - either by installing with apt where available, finding a package where not available, or building from source where required.

Thanks - I’ll give it a try over the next couple of days following your instructions and see what happens.
I’m not a programming wizard, but have been successful with compiling source for applications in various versions of Linux when there no binary available. I tried a while back to grab the source to RasPlex 1.8 and see about adding the Live TV back in from the Plex source. Never was successful at that.
I couldn’t understand WHY it wasn’t included in the original RasPlex source. Couldn’t’ even find any reference as to it possibly being to taxing on the Raspberry CPU or just the that original coders just FUBAR’d with building the image.

Just spent hours trying to build Qt5 with the webengine using cross compiling but to no avail. I’ll try building natively tomorrow but not too enthusiastic at the prospect of that! :stuck_out_tongue:

Hi Stueh,

Another self-professed non-expert here.

Just gave this a whirl on my RPi3B+ and it compiles and runs OK. Runs like a complete dog though. I regularly use the “community build” on my even less powerful RPi3 which handles full HD and multichannel audio.

I think the poor performance might be down to a lack of video acceleration in the QT5 - some interesting reading here for anyone else interested and the lack of multichannel would appear to be more a default kernel compilation thing rather than config. Two big mini-projects for me anyway.

I had hopes of running native PMP on top of Raspbian as the PMP community build process appears to have stalled at 2.55 (it’s always been a bit hit and miss when it gets upgraded).

Anyway, thanks for an interesting few hours looking at cross compilation from Ubuntu, compiling QT5 etc. Might have to get a RPi4 now :slight_smile:

1 Like

This tutorial works great.

Thanks

1 Like

Hi mate,

I think that the reason it runs like a dog might be because this method doesn’t use the graphics drivers, but uses software graphics instead. The RPi4 doesn’t have native graphics drivers yet.

The reason Rasplex functions better than this method on RPi3/+ is because of the graphics drivers.

I think. No programmer.

Cheers for the info!

It will absolutely work for your purpose, if you mean “can I use the raspi Plex client with a Plex server on a LAN, with no internet connection at all?”.

On the server, you can whitelist specific IPs or entire subnets as not requiring authentication (note this isn’t the same setting as where you define lan vs wan for streaming bandwidth caps). Once you’ve whitelisted the raspi’s IP you’ll be able to stream anytime, entirely offline.

Thank you for this write up! You have a typo above in cmd ‘plexmediaplater --fullscreen --tv’

I will test this out on my pi shortly…

When I execute ‘plexmediaplayer --fullscreen --tv’ after approx. 3sec I get the following error ‘Illegal Instruction’. If I try to run it from the applications GUI menu, I get an hourglass for approx. 5sec and then nothing happens. Any ideas how to get this fixed on my pi 2b model?

1 Like

This works great on a pi 4 with 4G ram even with the full desktop installed - and lets me use plex to shuffle a music playlist while also shuffling a photo playlist, one of my favorite uses for plex. I only have 1080 video but performance seems good as long as the pi is connected by ethernet. People having stuttering problems may be hitting the issue where on at least some of the units the HDMI output interferes with wifi. I’ve seen that reported mostly with 4k resolution but mine does it at 1080/60Hz too.

The only issue I see is that I don’t get DD 5.1 or DTS output even though I configured them to pass through. Is that supposed to work? Kodi on the same system will do it.

Thanks for tutorial. Worked great on my Pi 4. How would I go about updating to the latest Plex Media Player version? Does a simple “sudo apt update” and “sudo apt full-upgrade” work, or do I need to issue other commands? Thanks for your help!

Hi,

I’ve bought an RPi 4 some time ago for this specific purpose and have been waiting for a guide like this…thankyou.

Everything installed great.
One note: as written, this guide works fine IF you are installing from a local terminal session on the RPi itself…however it won’t from a remote SSH terminal…I got an error at the “wget” line.

Cheers
dmonds

Thanks very much for this. I have had a Pi4 since its release, and have been using RasPlex for years, and really disappointed it hasn’t had development continue on the 3B+ and 4.

Anyway, I just followed this guide on the Pi4, and its working great.

Question though - does anyone know how to get HDMI CEC from the TV remote passing through the HDMI to the Pi to control the PMP menus? I don’t want to have to have a keyboard at the TV. This works from the same TV on Rasplex, so I assume there is a way to do it.
Does anyone have any idea?

Hi again,

This works fine and I’m pretty happy with it…except…

I cannot work out how to get Plex Music Player to automatically start after the desktop loads.
The link sent about “5 ways to run a program” seem to be written for a console app and not something like PMP which needs the desktop running.

I’m obviously not a linux guru and would love if someone can advise how I can get this sorted.

Many thanks for any help.

dmonds

This is what I’ve done done to launch PMP on startup on my Raspberry Pi 4.

Open a terminal, and execute the following commands to create an autostart directory (if one does not already exist) and edit a .desktop file. (Everything between the —> <— arrows. Sorry, just wanted to get this out there without spending a while figuring out formatting.)

—>
mkdir /home/pi/.config/autostart
nano /home/pi/.config/autostart/plexmediaplayer.desktop
<—

Copy in the following text into the plexmediaplayer.desktop file

—>
[Desktop Entry]
Version=1.0
Name=Plex Media Player
GenericName=Media Player
Comment=View your media
Exec=plexmediaplayer
Icon=plexmediaplayer
Terminal=false
Type=Application
Categories=AudioVideo;Video;Player;TV;

Actions=TVF;TVW;DesktopF;DesktopW;

[Desktop Action TVF]
Name=TV [Fullscreen]
Exec=plexmediaplayer --fullscreen --tv

[Desktop Action TVW]
Name=TV [Windowed]
Exec=plexmediaplayer --windowed --tv

[Desktop Action DesktopF]
Name=Desktop [Fullscreen]
Exec=plexmediaplayer --fullscreen --desktop

[Desktop Action DesktopW]
Name=Desktop [Windowed]
Exec=plexmediaplayer --windowed --desktop
<—

Should work perfectly. Good luck!

1 Like