I have PMS running on Raspberry PI 2!

@francegue said:
@uglymagoo/all : to recap, all I have to do to update my installation with the latest package is (I have a Pi2 with Raspbian):

  • backup my /etc/default/plexmediaserver
  • apt-get update
  • apt-get install plexmediaserver-installer

Yup, you got it 90% right :slight_smile: 1. backup /etc/default/plexmediaserver 2. apt-get update 3. apt-get dist-upgrade 4. You might have to restore /etc/default/plexmediaserver if you were not asked during the package update

That’s the safe way. It will replace plexmediaserver with plexmediaserver-installer automatically. Your meta data is not touched. All your libraries and Co. will be there for you after the update.

@uglymagoo said:

To prepare the plexmediaserver-installer package, either clone my git repo (git clone https://github.com/uglymagoo/plexmediaserver-installer.git) or get the zip archive.

Adjust DEBIAN/control like before. However, the important part is DEBIAN/postinst, where you have to set PMS_URL and PMS_HASH (sha256sum of the PMS_URL download) to the values of the current plex-pass package. Make sure to change these values in “install_netgear”,

After adjusting the values in the postinst to the Plex-Pass version, could a person manually start the installer? if so how? It would be nice to keep the installer…installed for when I feel lazy.

And where did you find the Hash code?

Thanks again for all your help and support.

@DMackG this will calculate from the one you downloaded, if uglymagoo is getting the hash from the uploaded files on Plex that would of course be better to use

sha256sum PMSpackage

@DMackG You can reuse the installer folder structure and just copy its contents

cp -r plexmediaserver-installer plexmediaserver-installer-new

You can start the installer manually by installing the deb package

dpkg -i plex*.deb

If you want to use the bash scripts for unpacking the readynas package they are in the postinst file

@uglymagoo I’ve gotten around to testing now so will be updating all tutorials, hopefully it will minimize support requests

Thank You Blindpet! Your guides have always been a big help. Look forward to reading soon. I am always ready to try something new so if you need a tester let me know when it’s ready.

@uglymagoo hi, can u help me with this weird issue. Every time I run the command “apt-get install plexmediaserver-installer” I got the same error
WARNING: The following packages cannot be authenticated! plexmediaserver-installer Install these packages without verification? [y/N] y Err https://dev2day.de/pms/ jessie/main plexmediaserver-installer armhf 0.9.16.4.1911-ee6e505-16~jessie Failed to connect to dev2day.de port 443: Network is unreachable E: Failed to fetch https://dev2day.de/pms/pool/main/p/plexmediaserver-installer/plexmediaserver-installer_0.9.16.4.1911-ee6e505-16~jessie_armhf.deb Failed to connect to dev2day.de port 443: Network is unreachable
apt-transport-https was installed, repos updated, and I’m still able to use wget to retrieve your installer.deb file. Any idea on why would this happen? Is it okay if I use “dpkg -i” to install the manual-downloaded .deb file?
(also tried on 2 fresh new raspbian cards, same error)

@huy.phamnhu said:
@uglymagoo hi, can u help me with this weird issue. Every time I run the command “apt-get install plexmediaserver-installer” I got the same error

To fix the first warning please install my public key. See the first link in my signature.

To fix the error: please check the network access of your RPi and try again. dev2day.de is online and the link behind “Failed to fetch …” works for me.

@uglymagoo : so I tried your new package, the installation worked perfectly, thank you as usual for your great work! Here my feedbacks:

Good:
I can do everything I used to do before, plus now I am also able to use the Playstation 4 client, which didn’t work before (I had the “Server not powerful enough” error). :slight_smile:

Bad:
I still have the error:
[…]
Apr 24, 2016 09:15:00 [0x65eff400] WARN - Transcode runner appears to have died.
[…]
playing .avi videos from the iOS client over Chromecast.
I had to replace the “Plex New Transcoder” from the old 0.9.14.6 version, and now it works fine.

I also had a temporary problem streaming over Chromecast which got fixed without doing anything, actually. The error I got is:
[…]
Apr 24, 2016 09:10:12 [0x695ff400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
Apr 24, 2016 09:10:12 [0x695ff400] WARN - [Chromecast] PDE: Unable to play item; This server is not powerful enough to convert video.
Apr 24, 2016 09:10:12 [0x646ff400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxxbc5-46ad-a36e-742ab35035b0), enabling token-based authentication.
Apr 24, 2016 09:10:12 [0x646ff400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
Apr 24, 2016 09:10:12 [0x646ff400] INFO - [Chromecast] Load error: This server is not powerful enough to convert video.
[…]
Basically, the streaming was blocked by the “Server not powerful enough” error, without any other error in the log except the one above. Not sure why it happened and how it got fixed (I didn’t do anything except trying all the possible clients I have :slight_smile: ), but I wanted to report you just in case it is something you might want/need to adjust.

Thanks a lot!

@francegue said:
@uglymagoo : so I tried your new package, the installation worked perfectly, thank you as usual for your great work! Here my feedbacks:

Bad:
I still have the error:
[…]
Apr 24, 2016 09:15:00 [0x65eff400] WARN - Transcode runner appears to have died.
[…]
playing .avi videos from the iOS client over Chromecast.
I had to replace the “Plex New Transcoder” from the old 0.9.14.6 version, and now it works fine.

I can second that. The up-to-date Plex New Transcoder crashes when asked to transcode a video stream. It does that either immediately or after what appears to be the time it takes to transcode the first chunk. Remuxing and transcoding audio work fine.

But I have an odd setup running wheezy Raspian on a Bananapi.

@NedtheNerd said:

@alveox said:
Hi i just do an update for pms… But it said… readynas package… Is this the latest? I was kinda expecting netgear package…

And who makes ‘ReadyNAS’ - Netgear do!

There are only two alternatives, Netgear ReadyNAS or Synology.

Regards

Thanks for the enlightenment… :smiley:
Didn’t realized that.

@eckarth said:
I can second that. The up-to-date Plex New Transcoder crashes when asked to transcode a video stream. It does that either immediately or after what appears to be the time it takes to transcode the first chunk. Remuxing and transcoding audio work fine.

But I have an odd setup running wheezy Raspian on a Bananapi.

I am unable to reproduce your issues :confused: I use the Plex App on my iPad mini 2 and Chromecast works fine, even with transcoding xvid to h264 from my BPi (latest Bananian and PMS 0.9.16.4). I really tried everything but I just cannot kill the transcoder :confused: You should definitely upgrade to Jessie and most of your problems will go away :slight_smile:

@uglymagoo can you confirm how you are getting the right checksums? I can’t find them anywhere on the Plex site so currently I’m assuming you generate them yourself, build the package and if it works then you use the self-generated checksum.

Going to update the tutorials this week :slight_smile:

@blindpet said:
@uglymagoo can you confirm how you are getting the right checksums? I can’t find them anywhere on the Plex site so currently I’m assuming you generate them yourself, build the package and if it works then you use the self-generated checksum.

Yes, I download the packages on two different systems and networks, then generate and compare the checksums to make sure everything is fine. I think that’s as good as it gets. (Moreover, the connection to plex.tv is TLS 1.2 encrypted, so my workflow is not even really required)

hi, me again :smiley:
do you have any idea on how to bypass the new free-space-requirement? I found it kind of annoying, for example I want to play a 15GB movie with direct play, no transcoding at all but pms still require a minimum free space with size of slightly larger than that movie, otherwise it will show “there was a problem playing this item” error

Hi folks,

I’m getting a ‘broken pipe’ issue when doing video transcoding. See below log.
Running latest version on a rasp2 with minibian(jessie).

Any ideas ???

Cheers,

DEBUG LOG :

Apr 26, 2016 15:01:01 [0x696ff400] INFO - [Transcoder] Input #0, matroska,webm, from ‘/mnt/external_hd/Download2/Complete/tvshows/Game of Thrones/Season 06/Game of Thrones - S06E01 - The Red Woman.mkv’:
Metadata:
encoder : libebml v1.3.0 + libmatroska v1.4.1
creation_time : 2016-04-25 04:20:12
Duration: 00:49:58.27, start: 0.000000, bitrate: 10617 kb/s
Stream #0:0, 4, 1/1000: Video: h264 (High), yuv420p(tv, bt709/unknown/unknown), 1920x1078, SAR 1:1 DAR 960:539, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1, 8, 1/1000: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
Apr 26, 2016 15:01:01 [0x6a6ff400] INFO - [Transcoder] Input #1, srt, from ‘/mnt/external_hd/plex_transcode/plex-transcode-33AFACD0-A4EF-4A0B-B430-348069358E55-c1eaf569-721b-47df-b273-c9d13d6b2149/temp-0.srt’:
Duration: N/A, bitrate: N/A
Stream #1:0, 0, 1/1000: Subtitle: subrip
Apr 26, 2016 15:01:01 [0x696ff400] INFO - [Transcoder] Output #0, segment, to ‘media-%05d.ts’:
Metadata:
plex.duration : 2998.27
plex.total_duration: 2998.27
encoder : Lavf56.36.100
Stream #0:0, 0, 1/90000: Video: h264 (libx264), yuv420p, 1276x716 [SAR 171840:171941 DAR 960:539], q=-1–1, max. 4000 kb/s, 23.98 fps, 90k tbn, 23.98 tbc (default)
Metadata:
encoder : Lavc56.41.100 libx264
Stream #0:1, 0, 1/90000: Audio: aac, 48000 Hz, stereo, fltp, 258 kb/s (default)
Metadata:
encoder : Lavc56.41.100 aac
Apr 26, 2016 15:01:01 [0x6a6ff400] INFO - [Transcoder] Output #1, segment, to ‘media-%05d.vtt’:
Metadata:
plex.total_duration: 2998.27
plex.duration : 2998.27
encoder : Lavf56.36.100
Stream #1:0, 0, 1/1000: Subtitle: webvtt
Metadata:
encoder : Lavc56.41.100 webvtt
Apr 26, 2016 15:01:28 [0x729ff400] ERROR - Error writing media: 32 - Broken pipe
Apr 26, 2016 15:01:28 [0x729ff400] ERROR - Error writing media: 32 - Broken pipe
Apr 26, 2016 15:01:28 [0x729ff400] ERROR - Error writing media: 32 - Broken pipe

Broken pipe usually means a severed connection for either the network or hard drive. Do you have enough space on the hard drive? Can you try moving the transcoding directory off the hard drive?

Hi blindpet,

Yep. I have more than 300G free on this disk. Well, I only have the option to move it to the SD, but I don’t think that’s a good idea once SD are not good for read/write intensive tasks…

Another thing is that I thought that h264 encoded files would be video streamed over direct play…why this media is being video transcoded ???

Cheers,

@zenmod it was just for test purposes to see if that was the reason. This may be the new transcoder dying problem others have experienced, hopefully somebody else can chime in with some logs to compare. We need to find a pattern so it can be diagnosed.

Whether video is transcoded or not depends on the client which is receiving it, which client is receiving it? It looks like you are loading an srt file as well which your client may not support direct display of so Plex needs to transcode it - there are options for enabling subtitles without transcoding in the server settings, your client does need to support it though.

Hi blindpet

The client is the ios app. I thought that it would support direct
play…i’ll do the test without burning the srt.

Cheers

@zenmod The iOS client asked your RPi2 to transcode 1080p to 720p with 4 Mbps. That’s too much for the RPi2, the transcoder was not able provide new segments in realtime so you got the SIGPIPE. That’s ok and expected. As you guessed, set “Burn Subtitles” to “Only Image Formats” and always use the “unlimited” quality setting or 480p, 1.5 Mbps.