Quantcast
Channel: Linux — Plex Forums
Viewing all 7311 articles
Browse latest View live

MKV not working Fedora 23

$
0
0

I just setup my new Linux Fedora machine and installed the latest version of plex 2.4.39. Most of my mkv files will not play. I tried with the browser client, IPAD Client and Tivo client.

Whats really strange is I setup another plex server to test on my Mac Laptop. Using the same files (files are located on my NAS) they work just fine.

Is there something that I need to install on the Fedora machine to get mkv files to work? Is the Linux client limited?


Plex Media Server on Minimal Centos 7.0

$
0
0

Hi All,

 
Well I decided to try something new after running Plex Media Server on my CentOS 6 successfully I thought I might try CentOS 7. I'm still testing this build, but it looks stable and so I thought I would share my current build steps on CentOS 7. 
 
The target audience for this guide are those that are new to a minimal build, specifically a build that is performed on the command line interface. I have tested these steps on CentOS 7.0 minimal installation media. I have tested these instructions purely in a VMWare instance, there are a few things I'm trying to get working before I install I build on bare metal.
 
This guide assumes that you are installing on a x86 64 bit architecture because, unlike CentOS 6, is only available in 64 bit. No Intel Atom installs with CentOS 7 :)
 
The scope will cover from downloading CentOS to basic application and server configuration to get Plex running and optionally connect to a Samba Share for media. Please feel free to suggest better solutions or steps - I'm no expert, but know a bit more than my first guide. 
 
[UPDATE: added section to setup the Plex server to connect to a NAS samba share for media]
 
Ok, enough talk, to the guide.
 
Obtain and Install Centos 7.x
 
First step is to download the Centos Minimal installation media. Go to https://www.centos.org/download/ and select the 'Minimal OS' button. This will load a page with links to your country mirrors and nearby mirrors. Click the desired link and get a coffee while the ISO downloads. Now burn a copy of the CD if you are installing via physical media if required, install on a USB key or leave the iso if you are going to install within a VM environment.
 
Boot up the PC using the Minimal CD or USB Key and perform the following steps: (this is verbose for completeness):
  1. (Optional) At the 'CentOS 7' Boot Menu select "Test thiss media and Install CentOS 7", yes it will take a couple of minutes, but it will save hours if the media is corrupt.
  2. At the Installation Language Menu select the appropriate system language and locale for the CentOS system and click 'Continue'
  3. At the 'Installation Summary' click on the 'Date and Time' section.
    • Click on the region and/or search for an appriopriate region and city.
    • I leave network time enabled that will automatically sync the date and time based on the region and city, or you can disable the network clock and set the date and time manually.
    • Click on the 'Done' button in the top left hand corner to close the 'Date and Time' window.
  4. Check that the 'Keyboard' and 'Language Support' have suitable choices and continue. Otherwise click on the sections and select the desired options.
  5. At the "Installation Summary" click on the 'Installation Destination' section - IMPORTANT: this installation assumes that you will be formatting and installing on the HDD completely using all available space. If this is not want you want then stop now, do not proceed unless you understand what you are doing. I will not be responsible for data loss.
    • Click on the target HDD that you wish to install CentOS onto. Make sure you know which drive you want to install to!
    • In the "Installation Destination" section you can accept the defaults; or
    • (optionally) You can encrypt the drive and/or manually partition the HDD
    • Finally, click the 'Done' button in the top left hand corner to accept the selected HDD and partitioning options
  6. Next select 'Network and Hostname'
    • Click on the Network Adapter (if not selected by default) and click on the 'Configure...' button in the bottom right hand corner of the screen
      • Click on the 'General' tab in the new window (just left of the 'Ethernet' tab)
        • IMPORTANT: Click on the 'Automatically connect to this Network when it is available', this we auto enable the network when the Server is rebooted
        • Leave the 'All users may connect to this network' - I don't know the effects of deselecting it  :rolleyes:
      • (optional but recommended) If you want a static IP address for the server, then click on the 'IPv4 Settings' tab (the one to right of the DCB tab), select 'Manual' from the Method drop down menu, click the 'Add' button and enter the required IP (i.e. 192.168.1.100), the netmask (usually 255.255.255.0) and the IP of your gateway/router (usually 192.168.1.1 or 192.168.1.254) and the DNS (again usually the IP of the router - you can use another PC and look at the network settings to get this information).
      • Once you have completed the Network configuration details, click the 'Save' button on the bottom right hand corner of the window to close the window and return back to the 'Network and Hostname' section.
    • Next, give the server a hostname, you can leave it as localhost.localdomain but I recommend changing it to something else to avoid a name conflict with other linux computers. I use pms.localdomain but you can call it whatever you want (this will not be the name of the plex server, just the name of the pc)
    • Finally click on the 'Done' button in the top left hand corner to close the 'Network and Hostname' window
  7. Finally at the 'Installation Summary' window, click the 'Begin Installation’ button to start the installation process and grab a coffee.
 
While installing there will be a 'Configuration' window to prompt you to set the 'Root Password' and 'User Creation'. We will only need to set the root password for the installation step. We will create a user manually later in the guide.
 
  1. Click on the 'Root Password' section.
    • In the 'Root Password' window, type in the desired password in both the 'Root Password' and 'Confirm' fields. 
    • Click the 'Done' button to confirm the password and to close the 'Root Password' window. (note if your password is 'weak' you will have to click the 'Done' button twice)
 
After the 'Root Password' has set and the installation have been completed you will be able to click on the 'Finish configuration' button to finalise the installation and configuration.
 
When the entire installation and configuration has completed you will simply need to click on the 'Reboot' button to reboot the server with CentOS.
 
Congradulations you have installed CentOS 7!
 
Configure Centos 7.x
 
In this section we will update the system, create and configure the ‘plex’ user that will be used to install and setup Plex Media Server and slightly secure the system. This will be done all within the Command Prompt… but don’t be scared.
 
To start we need to log in with the ‘root’ user after the PC has restarted. Use the login of ‘root’ without inverted comma’s and the password you gave root during the installation.
pms login: root
password: <root’s password>
Firstly we are best to update the system to get the latest Centos packages using the following command:
> yum update
Yum will automatically download and update any package that is currently installed. Yum will prompt you with a few questions, just reply with ‘y’ or ‘yes’ for all questions and you should be OK.
 
After we have updated all packages next we need to create a ‘plex’ user. This is the user that will install and generally run activities for the Plex Media Server. This will be a general user, but will be setup to run commands as the ‘root’ user if required.
 
To create the ‘plex’ user we use the following command:
> adduser -c "Plex Media Server User" -d /home/plex -s /bin/bash plex
This command will create a user ‘plex’ that has a home directory of ‘/home/plex/‘ and will be setup with the ‘bash’ shell. Don’t worry if that means nothing to you.
 
Next we have to give a password to the ‘plex’ user to activate (?) the user. We use the following command to prompt to set a password:
> passwd plex
You will be prompted to set a password and then prompted to confirm the password. This command is also used to change the password of a Linux user. Congratulations, you have created a new user from the command prompt.
 
Next we need to configure the ‘plex’ user to be allowed to run commands as ‘root’ using ‘sudo’. To do this we need to add ‘plex’ to the list of users that can use the ‘sudo’ command. use the following command to open the configuration file to do this:
> visudo
This will open the /etc/sudoers file in vi, an standard editor in Linux. Vi is not friendly to new users of linux. If you stumble with vi, you can use ’nano’ which is a more friendly editor. To use nano you will need first install with ‘yum install nano’. After yum has installed nano you can open the sudoers file with ‘nano /etc/sudoers’ command without inverted commas.
 
To add plex to the users you need to find the two lines in the sudoer’s file:
 
“## Allow root to run any commands anywhere
root ALL=(ALL) ALL”
 
then you need to add the following line after the line that mentions 'root':
 
“plex ALL=(ALL) ALL” so the 3 lines look like:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
plex ALL=(ALL)  ALL
 
Save the file. That is it, the ‘plex’ user will now be able to use the ‘sudo’ command and run commands as a superuser.
 
So lets confirm that the ‘plex’ user has been setup correctly. Logout using the following command:
> exit
This will return you to the login prompt, next enter ‘plex’ and the plex password to login in with the new user.
pms login: plex
password: <plex’s password>
If all is fine you will have a command prompt. Next we need to check that the ‘plex’ user can run the ‘sudo’ command. Try the following:
> sudo pwd
You will be prompted for a password… you need to use the ‘plex’ user’s password. You should get a response of ‘/home/plex’, the home directory of the plex user that was setup with the 'adducer' command. If you got an error then repeat the steps to update the /etc/sudoers file.
 
At this time you can use a SSH client to access you Plex Media Server, something like the Mac OS X ‘Terminal’ application or Putty on windows is fine. I usually perform the rest of the setup via SSH but you can perform all the steps on the Plex Server locally.
 
While using SSH to remotely access the Plex Server is helpful it is also recommended to block the ‘root’ user to use SSH remotely. To do this use the following command to open the SSH config file:
> sudo vi /etc/ssh/sshd_config
Again you can use ‘sudo nano /etc/ssh/sshd_config’ if you don’t like vi.
 
Search for the ‘# PermitRootLogin yes’, delete the hash (‘#’) character and change ‘yes’ to ‘no’. The result should be:
PermitRootLogin no
Save the file. After the next restart root will not be able to remotely login over SSH, but will be able to log in locally.
 
That is the ‘plex’ user set up!
 
 
Downloading and Installing Plex Media Server
 
Because we are using just the command prompt and Plex Media Service isn’t out of the box linked to a Plex Repository we can’t use the ‘yum’ command. There are ways we can use this but from the forums it appears that the latest version of Plex Media Server is not always available via this route. So we are going to use linux commands to get the latest version.
 
Before we can get the Plex, we need to install some applications to allow Centos to download the Plex Media Server package. Run the following command to install the wget application. Note: going forward it is assumed that you are logged in under the ‘plex’ user and is why you will see 'sudo' infront of commands.
> sudo yum install wget
This will install the wget application that can download files using a URL. We also need to get the latest URL for the current version of Plex to download.
 
I got the download URL by using another PC, going to the Plex downloads section and copying the Link to the current version. Now that we have the URL for the latest version it is time to download. I recommending creating a download’s folder in the ‘plex’ users home directory, but this is optional. To do this use the following commands to create and then open the download directory:
> mkdir ~/Downloads
> cd ~/Downloads
Next we want to download the Plex package using:
> wget <URL of the Plex Media Server RPM package>
i.e. (current as of 24th May): Important, please check the current URL, below is an example.
This will download the Plex package. 
 
After the download has completed it is time to install! As we have downloaded the package to our Plex Server we can use the ‘localinstall’ option in yum to install from the downloaded file.
 
To install plex from the download we use the following command:
> sudo yum localinstall <Plex Media Server RPM package>
Based on the filename from above this would be: (Again check the filename based on the current Plex package as of 24th May)
> sudo yum localinstall plexmediaserver-0.9.12.1.1079-b655370.x86_64.rpm
The installation will take a minute or two. That is it, Plex is installed…. but it is not running, and the Linux firewall will stop clients connecting - Doh! But first let’s check the install.
 
To start plex we need to start the service using the following command. We only have to do this once after we install, after we reboot the Plex Media Server should start automatically on your Plex Server.
> sudo systemctl start plexmediaserver.service
That should be it… Plex is running. But what about the firewall? At this time the firewall will block Plex ports.
 
We will disable the firewall for a moment to check that things are OK. In the final section we will configure the firewall to allow Plex to work as desired.
 
To disable the firewall temporarily use the following command:
> sudo systemctl stop firewalld.service
Caution: this will disable the firewall, after we have confirmed things are OK we will bring it back up.
 
Next is to check that we can use a Web Browser on another PC (or tablet, etc) to access Plex. For the purpose of this guide lets assume that the Plex Media Server has an IP of 192.168.1.100. Please change 192.168.1.100 with the IP of your Plex Server
 
Open a supported Web Browser and enter the following address, for example of the Plex Server having an IP of 192.168.1.100.
If all is OK then Plex should start. WooHoo. If not, well check the steps above to make sure you haven't missed anything. I would double check that you have disabled the firewall.
 
OK, lets reboot the server to ensure that Plex starts up automatically and that the firewall also turned back on. Use the following command to restart:
> sudo reboot
The command will immediately restart the server.
 
Once restarted, login with the ‘plex’ user. Now to configure the firewall.
 
 
Configuring the Firewall
 
The last step is to configure the firewall so the Server doesn’t block Plex traffic. I found this to be tricky, but this was my first attempt too :)
 
NOTE: This is my first attempt with firewalld configuration, I’m assuming that people will have other recommendations and I will gladly update the following to ensure the best configuration.
 
First step is to log into the server using the 'plex' user.
 
We want to stop the Plex Media Server whilst we config the firewall, use the following command to stop plex media server:
> sudo systemctl stop plexmediaserver.service
 
Next we want to switch user to root. You could just log into the server as root, unless you are trying to log in via ssh (which we disabled). The guide will use the switch user command to cater for both cases. This works over ssh as you have logged into the server using a non-root account.
 
To switch the user we use the 'su' command, specifically:
> su
Next you will need to enter the 'root' password NOT the plex user password that you can use with sudo. This is because you are effectively logging into the server as root, not trying to run a command as root.
 
Next we want to create a plexmediaserver set of firewall rules, this will open the ports required for the plexmediaserver service. Using vi (or nano) create a new file with a suffix of 'xml':
> vi /etc/firewalld/services/plexmediaserver.xml
Next we need to populate the file with the following lines:
 
<?xml version="1.0" encoding="utf-8"?>
<service version="1.0">
  <short>plexmediaserver</short>
  <description>Plex TV Media Server</description>
  <port port="1900" protocol="udp"/>
  <port port="5353" protocol="udp"/>
  <port port="32400" protocol="tcp"/>
  <port port="32410" protocol="udp"/>
  <port port="32412" protocol="udp"/>
  <port port="32413" protocol="udp"/>
  <port port="32414" protocol="udp"/>
  <port port="32469" protocol="tcp"/>
</service>
Save the file.
 
This configuration will allow the Plex ports 32400, 32410, 32412, 32414 open. By default port 22 should be open from the base Centos installation. 
 
Ok now we have to register the new service firewall rules with the firewall deamon. We do this using the firewall command tool. But first lets confirm that the firewall is up to accept commands, use (note we are still logged on as root, so we don't need sudo):
> systemctl start firewalld.service
OK, not the firewall is up, we can register the service specific rules using the following command:
> firewall-cmd --permanent --add-service=plexmediaserver
 
Next we need to do is register the server to the default public zone. To be honest I don't know all the details of zones :)  but I know I have to add the service to the zone to work. We do this with the following command:
> firewall-cmd --permanent --zone=public --add-service=plexmediaserver
OK the last step is to restart the firewall and start the plex media server service, use the following commands:
> systemctl restart firewalld.service
> systemctl start plexmediaserver.service
Again open a supported Web Browser on another PC and check you are able to connect to http://<IP address of Plex Server>:32400/web/ . If so - awesome. If it doesn't work, then stop the firewall and retry. If it works after disabling the firewall then go through the firewall steps again to confirm you didn't miss anything.
http://192.168.1.100:32400/web/

If that works then congratulations you have a up and running minimal Plex Media Server!

 
[Optional] Setup Plex Server to connect to media on a NAS server using Samba
 
A default minimal CentOS 7 build will not be able to mount SMB\CIFS shares. We’ll need to install a package onto the server that allows it to understand the SMB protocol.
 

1. First we need to Install the cifs-utils package from the default CentOS yum repository. This will install the applications and libraries required to support Samba/CIFS.

> sudo yum install cifs-utils
 
2. Next we have to open the firewall to allow connections to Samba shares:
> sudo firewall-cmd --permanent --zone=public --add-service=samba
> sudo firewall-cmd --reload
 
3. Next, we need an account on the CentOS server that will be dedicated for Samba Shares. We’ll create a service account named usr_smb_core with a user id (uid) of 5000.
> sudo useradd -u 5000 usr_smb_core
4. We also want a group on the CentOS server that will map to the share. This group will contain all of the Linux accounts that will need access to the share. Our account will be called share_smb_core and it will have a group id (gid) of 6000.
> sudo groupadd -g 6000 share_smb_core
 
5. Finally, add any Linux accounts that require access to the SMB share to the newly created Linux group. Will add the plex user to the share_library_core group.
> sudo usermod -G share_smb_core -a plex
 
6. Next we have to create a directory to mount the SMB share into. We’ll mount the share in a directory called /mnt/nas/media. This means that when the Samba/CIFS share is setup it will be accessible from this directory.
> mkdir /mnt/nas
> mkdir /mnt/nas/media
7. Let’s test the details to ensure we can connect, you will have to type in the password when prompted, assuming:
  • 192.168.1.200 is the IP of the NAS/Samba Server
  • shareName is the name of NAS/Samba share 
  • /mnt/nas/media is the directory on the plex server that you want to map the share to
  • SambaShareUserName is the NAS user name that you want to use to connect to the NAS/Samba server
> sudo mount.cifs \\\\192.168.1.200\shareName /mnt/nas/media -o user= SambaShareUserName,uid=5000,gid=6000
note: I was connecting to a Unix based NAS, I don’t know if this will be different for Windows PC / server.
 
If no errors appeared, the share should successfully be mounted. The verify this, use the 'df' command, this command displays all mounted drives.
 
You should see your HHD partitions and the share, note this assumes that the NAS share is called ‘media’:
Filesystem               1K-blocks       Used Available Use% Mounted on
\\192.168.1.200\shareName   2147422700 2141280606   6142094 100% /mnt/nas/media
If that works we are half way there. But lets set it up to automatically mount the NAS share in a secure way, that is not expose the user credentials for the Samba Share. We will do this by creating a credentials file that only root can read and set up the mount command to read this file.
 
8. Create a credentials file in Root’s home directory, you can put this somewhere but for this guide I’m just having it here. The ‘touch’ command essentially creates an empty file.
> sudo touch /root/creds_smb_library_core
9. Modify the credential file’s permissions so that only the Root account is granted read permissions using the ‘chmod’ command. No groups or other users should have access to the file. Not even the plex user.
> sudo chmod 0600 /root/creds_smb_library_core
10. Next we need to edit the file to inject the username and password that we will use to connect to the Samba share.
> sudo vi /root/creds_smb_library_core
 
The file will contain 2 lines, one for the username and the last for the password, it should look something like this:
username=NasUserName
password=NasUserPassword
11. OK, Let’s test this credential file, first we have to un-mount the share, assuming that it is still mounted from step 7. We simply use the ‘umount’, the unmount command, and reference the directory that the share is mapped to, (note you need to change director to / to ensure you can unmount the share)
> cd /
> umount /mnt/nas/media
 
12. Next lets remount with Samba share the credentials file using, that is to not use the username as shown in step 7:
> sudo mount.cifs \\\\192.168.1.200\\shareName /mnt/nas/media -o credentials=/root/creds_smb_library_core,uid=5000,gid=6000
Note: The extra backslashes (\) are not typos. Backslashes are used to escape certain characters. Because of this, we have to double up on them when accessing Microsoft shares.
 
Ok, Let’s verify this again, use the df command, this command displays all mounted drives.
 
You should see details as before. If so, woohoo, the credentials file works!
 
Now to set up the ‘fstab’ file, the ‘file-system table’ file. This will automatically mount the share at startup.
 
13. Open the fstab file 
> vi /etc/fstab
 
Next add the following line at the end of the file:
 
Again this is assuming:
  • 192.168.1.200 is the IP of the NAS/Samba Server
  • shareName is the name of NAS/Samba share 
\\\\192.168.1.200\\shareName /mnt/nas/media cifs credentials=/root/creds_smb_library_core,uid=5000,gid=6000 0 0
The file should look something like this:
# /etc/fstab
# Created by anaconda on Mon May 25 10:52:37 2015
#
/dev/mapper/centos-root  /                       xfs     defaults        0 0
UUID=9d33fce4-de21-4a3a-925b-1014ab2ffed0 /boot                   xfs     defaults        0 0
/dev/mapper/centos-swap  swap                    swap    defaults        0 0
\\\\192.168.1.200\\shareName  /mnt/nas/media cifs credentials=/root/creds_smb_library_core,uid=5000,gid=6000 0 0
Save the file.
 
14. OK, the last step is to restart the server. After the server has restarted we just want to log on and check that the share has been mounted using the ‘df’ command.
 
Fingers crossed it has all worked! if so congratulations you have configured your server and the share that holds your media now automatically mounts. 
 
 
Add you media to your server
 
Finally time to add your media to your server, and something I will leave up to you. Just remember that the plex user needs to have the right permissions to access your media if you are installing it locally as per the Plex Linux Guide in the FAQs.
 
 
Conclusion
 
I hope this guide is helpful for some people, at the very least this post will backup my steps if I need to reinstall :) . Please let me know if you have any other suggestions to improve this process too!
 
Cheers,
Isomorphic

Help alterating remote access port

$
0
0

I know this is addressed as having a different root problem in other threads, but for the past few months, I've noticed that consistently between 6 and 10PM my time, the bandwidth available for my plex stream (whether over Chromecast or a wired connection to my router, or directly to my Comcast modem) drops to around 1.5mbps. Meanwhile, streaming via LTE on my phone is still full quality.

At other times of the day, or via alternate connections as mentioned above, the available bandwidth is more than enough to support multiple original 1080p streams. The server I run the Media Server from has a 100mbps cap with 4TB monthly bandwidth, and is located on a major backbone network. I'm using default settings on the Plex server.

I'm left to conclude that there is some kind of QoS going on on Comcast's end to prevent my streaming from Plex during peak times.

I've read some speculation that the QoS is centered on the port serving the traffic. I would expect either that, or throttling of encrypted traffic -- as I'm accessing Plex via the secure web portal.

I've tried changing the Remote Access port (manually specify) in the Plex Web > Server > Remote Access settings, but when I click "Apply", it fails each time.

I assume that since the Media Server is on my linux server, this is where the port "needs to be forwarded", but as I understand it, my server is having all ports forwarded to it on that IP address. I tried opening the port I specified on the firewall, but the connection still fails.

Can anyone offer me some help figuring this out? I'm really tired of watching my HD streams in 480p

Multiple subtitle tracks in VobSub disappear after library update

$
0
0

Hello,

first of all: this could be a Plex Web problem as well, but I'm rather guessing PMS, so I'll try it here.

I am using PMS 0.9.12.3 on Ubuntu 14.04 and have a serious issue with my VobSubs. I was able to reproduce this multiple times with multiple VobSubs right after a clean install with clean library. So here I go:

I have a lot of TV shows with VobSubs (IDX/SUB) and they mostly contain multiple languages. I know that Plex doesn't really support VobSubs (yet?), but I think this issue can't be too hard to fix. So after I've added a TV shows library and the initial library update is done, everything looks and works perfectly. I can choose the subtitle I want, it displays nicely, perfect!

Now comes the problem: If I either refresh the specific item (one episode) or the entire series, I am left with only one language from the VobSubs for that episode or the entire series, respectively, the rest is gone. If I refresh the entire library on the other hand, this doesn't happen. Unfortunately, it doesn't bring back the missing languages either. To achieve that, I have to delete the IDX/SUB duo, update the library and add them again. So unless I stop using the two Refresh buttons, I am left with a really annoying problem.

I tried to investigate a little further and found out, that the two 'bad' refresh buttons actually delete the entries in the media_streams table of the database.

It's probably not as easy as just copying the code snippet from the 'good' refresh button to the two 'bad' ones, but I thought maybe somebody is willing to look into it.

Additionally, I wasn't able to figure out the order in which the subtitle languages are sorted yet. It seems rather mysterious. It's neither alphabetically, nor in the order of the original IDX, nor in the order of database ID. I would very much like them to be sorted according to the original IDX. That order is already saved in the DB anyway (column url_index in table media_streams).

If this gets fixed, I'll buy a Plex Pass any second :D

No soup for you....

$
0
0

Hey guys... I need your help. Ive been using PMS for a few years now. But I have been running it in a windows environment. I just recently decided to run PMS in Ubuntu 15.10 Server. Installed 0.9.14.4 fine, no issues on the install. I am using USB storage... I mounted the storage and when going to the web interface Plex sees all of the movie folders and fan/album art, but when I try to play the movie I just get "No Soup for you".

I know this is a file permissions issue and I thought I set this up correctly. But here is what my mistake could possible be. When I setup Ubuntu Server I setup my mine sudo account with the username of "plex". So the account "plex" has ownership of all files and folders. Could this be my problem? Could someone help shed some light on this for me?

Please understand I am a noob when it comes to linux.

Thanks in advance!!

Missing files

$
0
0

Hello,

I run the Plex Media Server on a remote Linux machine, and stream its content to an Apple TV or on my Mac using the client apps.

However some files are not listed. I understand file names must follow a specific convention, but if I could avoid an ssh to my server to rename the files, that would be great.

Said otherwise, on a scale from 0 (don't care) to 10 (need it), I would rate the following features as:

-1. being able to play any playable file in the synced folders : 10
-2. having a nice view of the files with the meta-data, posters etc... : 2

A working feature 1 is the only one missing before I fully move away from Kodi.

Is there a way to get every playable files correctly listed on the Apple TV, Mac Theater apps, even if that is just an ugly, misformated filename without poster?

[Debian 7.9 (Wheezy)] Home Video not transcoding properly?

$
0
0

I'm running Plex 0.9.14.3 (PlexPass) on OpenMediaVault 2.1.20 (Stoneburner) which is Debian 7.9.

On this particular server, there are a large number of older Home Videos which do not play on the Plex Preview Channel on my Roku by play perfectly fine using the webclient or android app. When I was using Plex 0.9.14.4 on my FreeNAS server, I did not have this problem with the file I used as a sample in the Plex Server Logs below. There are three attempted viewings of this home videos.

Failed viewing a specific Home Video via the Roku. It displays the error: "Video Unavailable\n We're unable to play this video, make sure the server is running and has access to this video":

Dec 14, 2015 21:59:04 [0x7fbb053ff700] ERROR - Failed to calculate available disk space for path '/media/91ba78b6-1c8cess)
 Dec 14, 2015 21:59:04 [0x7fbaebffe700] INFO - [Transcoder] Input #0, avi, from '/media/208f31bd-6fc1-4b76-bb1e-a868c5
  Metadata:
    creation_time   : 2004-05-23 03:58:09
    encoder         : CanonMVI01
  Duration: 00:00:47.67, start: 0.000000, bitrate: 2334 kb/s
    Stream #0:0, 1, 33333/500000: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 320x240, 2
    Stream #0:1, 1, 1/11024: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11024 Hz, 1 channels, u8, 88 kb/s
 Dec 14, 2015 21:59:04 [0x7fbb06ffd700] ERROR - [Transcoder] [ac3 @ 0x2bd8fe0] invalid sample rate
 Dec 14, 2015 21:59:04 [0x7fbaebffe700] INFO - [Transcoder] Output #0, segment, to 'media-%05d.ts':
  Metadata:
    plex.duration   : 47.6662
    plex.total_duration: 47.6662
    Stream #0:0, 0, 33333/500000: Video: h264 (libx264), yuv420p, 320x240, q=-1--1, max. 3364 kb/s, 15 fps, 15 tbn, 1
    Metadata:
      encoder         : Lavc56.41.100 libx264
    Stream #0:1, 0, 0/0: Audio: ac3, 0 channels, 128 kb/s
    Metadata:
      encoder         : Lavc56.41.100 ac3
 Dec 14, 2015 21:59:04 [0x7fbaebffe700] ERROR - [Transcoder] Error while opening encoder for output stream #0:1 - mayb
 Dec 14, 2015 21:59:04 [0x7fbb06ffd700] ? - [Transcoder]
 Dec 14, 2015 21:59:04 [0x7fbb06ffd700] WARN - Transcode runner appears to have died.
 Dec 14, 2015 21:59:04 [0x7fbb06ffd700] WARN - Timed out waiting for segment.
 Dec 14, 2015 21:59:04 [0x7fbb053ff700] WARN - Transcode runner appears to have died.
 Dec 14, 2015 21:59:04 [0x7fbb053ff700] WARN - Timed out waiting for segment.
 Dec 14, 2015 21:59:05 [0x7fbb06ffd700] ERROR - Caught exception trying to stream file: /media/91ba78b6-1c8e-4baa-b3bbdea3649e3cff7c4871c78.jpg
 Dec 14, 2015 21:59:10 [0x7fbb06ffd700] ERROR - Caught exception trying to stream file: /media/91ba78b6-1c8e-4baa-b3bba6040e9578f90c999d5f4.jpg
 Dec 14, 2015 21:59:10 [0x7fbb053ff700] ERROR - Caught exception trying to stream file: /media/91ba78b6-1c8e-4baa-b3bb1a7ea4677cd2fde4db2de.jpg
 Dec 14, 2015 21:59:10 [0x7fbaebffe700] ERROR - Caught exception trying to stream file: /media/91ba78b6-1c8e-4baa-b3bbbf28d5707fbfc5c9153ef.jpg

Successful viewing of the same video in the web interface:

Dec 14, 2015 21:59:49 [0x7fbaf9fff700] ERROR - Failed to calculate available disk space for path '/media/91ba78b6-1c8e-4baa-b3bb-4c99aa040421/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Ssessions': 0 (Success)
Dec 14, 2015 21:59:49 [0x7fbaef7ff700] INFO - [Transcoder] Input #0, avi, from '/media/208f31bd-6fc1-4b76-bb1e-a868c56fe332/Photos/2004_05_23/06 Narragansett Bay 2.AVI':
  Metadata:
    creation_time   : 2004-05-23 03:58:09
    encoder         : CanonMVI01
  Duration: 00:00:47.67, start: 0.000000, bitrate: 2334 kb/s
    Stream #0:0, 1, 33333/500000: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 320x240, 2246 kb/s, 15 fps, 15 tbr, 15 tbn, 15 tbc
    Stream #0:1, 1, 1/11024: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11024 Hz, 1 channels, u8, 88 kb/s
Dec 14, 2015 21:59:49 [0x7fbaebffe700] INFO - [Transcoder] Output #0, matroska, to 'pipe:':
  Metadata:
    plex.duration   : 47.6662
    plex.total_duration: 47.6662
    encoder         : Lavf56.36.100
    Stream #0:0, 0, 1/1000: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 320x240, q=-1--1, max. 3364 kb/s, 15 fps, 1k tbn, 15 tbc
    Metadata:
      encoder         : Lavc56.41.100 libx264
    Stream #0:1, 0, 1/1000: Audio: aac ([255][0][0][0] / 0x00FF), 11025 Hz, mono, fltp, 32 kb/s
    Metadata:
      encoder         : Lavc56.41.100 aac
 Dec 14, 2015 21:59:51 [0x7fbaee7ff700] ? - [Transcoder]
 Dec 14, 2015 21:59:51 [0x7fbb06ffd700] ? - [Transcoder]

Successful viewing of the same video using the Android app on my phone"

Dec 14, 2015 22:25:38 [0x7fbaf9fff700] ERROR - Failed to calculate available disk space for path '/media/91ba78b6-1c8e-4baa-b3bb-4c99aa040421/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions': 0 (Success)
 Dec 14, 2015 22:25:38 [0x7fbaee7ff700] INFO - [Transcoder] Input #0, avi, from '/media/208f31bd-6fc1-4b76-bb1e-a868c56fe332/Photos/2004_05_23/06 Narragansett Bay 2.AVI':
  Metadata:
    creation_time   : 2004-05-23 03:58:09
    encoder         : CanonMVI01
  Duration: 00:00:47.67, start: 0.000000, bitrate: 2334 kb/s
    Stream #0:0, 1, 33333/500000: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 320x240, 2246 kb/s, 15 fps, 15 tbr, 15 tbn, 15 tbc
    Stream #0:1, 1, 1/11024: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11024 Hz, 1 channels, u8, 88 kb/s
 Dec 14, 2015 22:25:38 [0x7fbaf67ff700] INFO - [Transcoder] Output #0, segment, to 'media-%05d.ts':
  Metadata:
    plex.duration   : 47.6662
    plex.total_duration: 47.6662
    encoder         : Lavf56.36.100
    Stream #0:0, 0, 1/90000: Video: h264 (libx264), yuv420p, 320x240, q=-1--1, max. 720 kb/s, 15 fps, 90k tbn, 15 tbc
    Metadata:
      encoder         : Lavc56.41.100 libx264
    Stream #0:1, 0, 1/90000: Audio: aac, 11025 Hz, mono, fltp, 32 kb/s
    Metadata:
      encoder         : Lavc56.41.100 aac
 Dec 14, 2015 22:25:40 [0x7fbaf9fff700] ? - [Transcoder]
 Dec 14, 2015 22:25:40 [0x7fbaef7ff700] ? - [Transcoder]

I've had similar weirdness when trying to view other Home Videos - they always work on the web client, usually work on the Android App, and have the most issues on the Roku. That's not to say it doesn't work and work well most times - its just that most of the viewing problems I have with Home Video files are on the Roku platform.

Any thoughts? I'm all ears :)

Plex but does not open the port 32400 or any but still running

$
0
0

Plex starts but does not open the port 32400 or any other . I use nmap and tested all ports in my system.

Already removed completely, and installed all over again without success. Using that steps:
sudo apt-get purge plexmediaserver
sudo rm -rf /var/lib/plexmediaserver
sudo userdel plex
sudo rm /etc/init/plexmediaserver.conf
sudo rm /etc/default/plexmediaserver.

Don´t have log files.

Does anyone know what I can do ?
The service is running, but is not possible to access localhost:32400

I´m using ubuntu ( kodibuntu) then i able only use command line.


subtitles with diacritics

$
0
0
HI,
I have a problem with subtitles that diacritics, like "ă, î, ș, ț, â", are not showing up. Diacritics are replaced by symbols or blank spaces. Subtitle is set to Romanian and as client i use Samsung TV.

[Ubuntu 14.04]: After upgrade Plex Media Server fails to start after install

$
0
0

Thanks very much for looking at this. I would appreciate any assistance. I am having and issue with Plex Media Server plexmediaserver_0.9.12.4.1192-9a47d21_amd64 on Ubuntu 14.04. PMS is installed on a headless server. The server itself is running Ubuntu server 12.04.4. I installed a virtual machine that is running Ubuntu Server 14.04, and installed PMS on the VM. I first installed PMS on a different VM (UbuntuServer 11?? IIRC) and I am not sure of the PMS version--I cannot find detailed info right now because the old VM is not working right now (currently, it won't start and is not running. I haven't diagnosed the problem.). Install on the first VM was smooth with no issues. PMS ran fine. I then saw that there were security issues with the old version of PMS, and I decided to upgrade. I created a new VM with UbuntuServer [ubuntu-14.04.2-server-amd64] that is working with no problems I have observed. I installed PMS 9.12.4, but it won't start after install. I followed the install instructions at https://support.plex.tv/hc/en-us/articles/200288586-Installation.

After starting up the VM, I type:
sudo service plexmediaserver status, type sudo password,
and the output is:
plexmediaserver stop/waiting

Whey I use the same text, but replace "status" with "start" I get:
plexmediaserver start/running, process 1208
the process number changes each time I repeat the command

I have searched via google and in this forum, but not found an answer.
I tried some of this things listed here to no avail
http://www.reddit.com/r/PleX/comments/3efy7m/plex_linux_server_not_running_lxle_14042/?ref=readnext_4
I can't find any log files, but I tried rerunning install with the following screen shot.

Thanks for your help,
e_identity

Skylake and HEVC support

$
0
0

Hi,

with the new Skylake CPUs Intel integrated HEVC support. As far as i know there already is a HEVC support in plex. I want to know if the computing power needed for h265 encoding is still 4 times the power needed for h264. I am talking about fully encoding the streams on the server.

Sincere regards,
SpiGAndromeda

Can plex use VCE on Ubuntu Server?

$
0
0

I am running my server with a Trinity APU. Not a ton of oomphf, but the integrated graphics have a powerful video encoding feature. How could I set up plex to take advantage of this? Some of my files are too high bitrate for the chip to be able to transcode them on the fly currently. I'm thinking taking advantage of this hardware acceleration could alleviate the problem.

Accessing channels on Mediaserver remotely - where is the bandwidth being used?

$
0
0

So, I am running mediaserver on Ubuntu in my home, but do not live there during the week. During the week, I have a rasplex setup, which accesses my mediaserver at the remote location. If I am watching content on the Channels selection where does the 'bandwidth' come from? What I mean is, am I streaming the content from my remote media server using the link I have installed there, or am I streaming the content using the internet link at the location where the Rasplex client is?

The mediaserver location has a limited link (2mb/2mb), but the remote location where the rasplex client is has a 15mb/15mb link, so obviously I would rather be using the internet link there, rather than trying to receive content via the 2mb link and re-stream it to the client!

I don't think I have explained this very well, but hopefully the comment makes sense - this is only for channels content, that comes from the internet, and not locally stored content.

iptv , how to get working with error, m3u8 no info how to get it working anywhere,,help crossdomain

$
0
0

hi im looking to add iptv to my plex, and i keep getting error im running a pro 15tb server based in germany 1.5gbit , fast,, but wanted to forward links from iptv server.. but i keep getting errors from m3u8 saying crossdomain error.

any pointers for ubuntu user on remote server would be great help,, thanks in advance

Urgent: No remote access

$
0
0

Here is the log:

Nov 30, 2015 11:44:20 [0x7fb4a0bfe700] DEBUG - MyPlex: Toggling server publish state.
Nov 30, 2015 11:44:20 [0x7fb4a0bfe700] DEBUG - PublicAddressManager: Starting.
Nov 30, 2015 11:44:20 [0x7fb4a0bfe700] DEBUG - PublicAddressManager: Obtaining public address and mapping port.
Nov 30, 2015 11:44:20 [0x7fb4a23ff700] DEBUG - PublicAddressManager: Obtaining public IP.
Nov 30, 2015 11:44:20 [0x7fb4a23ff700] DEBUG - HTTP requesting GET http://plex.tv/pms/:/ip
Nov 30, 2015 11:44:21 [0x7fb4a23ff700] DEBUG - PublicAddressManager: Got public IP from http://plex.tv: 178.27.113.4
Nov 30, 2015 11:44:21 [0x7fb4a23ff700] DEBUG - MyPlex: Sending Server Info to myPlex (user=my@mail.addy, ip=, port=32400)
Nov 30, 2015 11:44:26 [0x7fb4acffd700] DEBUG - HTTP requesting GET https://plex.tv/services/pubsub/servers
Nov 30, 2015 11:44:26 [0x7fb4a23ff700] DEBUG - MyPlex: Published Mapping State response was 422
Nov 30, 2015 11:44:26 [0x7fb4a23ff700] WARN - MyPlex: Invalid response when mapping state (code=422):

Port Forwarding (32400 -> 32400) is enabled in my router.

PMS 0.9.14.4 64-Bit on Ubuntu 14.04.2 Server 64-Bit.


plex seems to stall on transcodeing when it is set to the /tmp folder

$
0
0

OK arch Linux setup with no swap partition plex set to trans-code to /tmp folder in Linux system witch is tmpfs of 5.9Gigs when it gets to 100 capacities it says i have to swtich stream quiality to a lower one this is when i am playing it in webui not through plex.tv/web but ipaddress/web logs state this just after transcoding stops and

[0x7f7dde7fe700] ERROR - Failed to write chunk to file /tmp/plex-transcode-0stglbh8quk81tt9-4d07b0b3-8da5-434d-8d08-78feaaf06985/chunk-temp
Oct 14, 2015 04:24:59 [0x7f7dde7fe700] ERROR - Failed to write chunk to file /tmp/plex-transcode-0stglbh8quk81tt9-4d07b0b3-8da5-434d-8d08-78feaaf06985/chunk-temp
Oct 14, 2015 04:24:59 [0x7f7dde7fe700] ERROR - Failed to write chunk to file /tmp/plex-transcode-0stglbh8quk81tt9-4d07b0b3-8da5-434d-8d08-78feaaf06985/chunk-temp
Oct 14, 2015 04:24:59 [0x7f7deafff700] DEBUG - Request: [127.0.0.1:49116] PUT /video/:/transcode/session/0stglbh8quk81tt9/progress?progress=23.2&size=7393744048&speed=5.4&remaining=1052 (12 live)
Oct 14, 2015 04:24:59 [0x7f7deafff700] VERBOSE - * progress => 23.2
Oct 14, 2015 04:24:59 [0x7f7deafff700] VERBOSE - * size => 7393744048
Oct 14, 2015 04:24:59 [0x7f7deafff700] VERBOSE - * speed => 5.4
Oct 14, 2015 04:24:59 [0x7f7deafff700] VERBOSE - * remaining => 1052
Oct 14, 2015 04:24:59 [0x7f7deafff700] VERBOSE - doShouldThrottleTranscodeNow: m_lastChunkWritten = 1622, m_lastChunkRead = 1622, chunksToThrottle = 32 (session: 0stglbh8quk81tt9)
Oct 14, 2015 04:24:59 [0x7f7deafff700] DEBUG - It took 0.0 sec to serialize a list with 0 elements.
Oct 14, 2015 04:24:59 [0x7f7df47fe700] DEBUG - Completed: [127.0.0.1:49116] PUT /video/:/transcode/session/0stglbh8quk81tt9/progress?progress=23.2&size=7393744048&speed=5.4&remaining=1052 (11 live) 0ms 289 bytes 206
Oct 14, 2015 04:24:59 [0x7f7dde7fe700] ERROR - Failed to write chunk to file /tmp/plex-transcode-0stglbh8quk81tt9-4d07b0b3-8da5-434d-8d08-78feaaf06985/chunk-temp
Oct 14, 2015 04:24:59 [0x7f7dde7fe700] ERROR - Failed to write chunk to file /tmp/plex-transcode-0stglbh8quk81tt9-4d07b0b3-8da5-434d-8d08-78feaaf06985/chunk-temp
Oct 14, 2015 04:24:59 [0x7f7dde7fe700] ERROR - Failed to write chunk to file /tmp/plex-transcode-0stglbh8quk81tt9-4d07b0b3-8da5-434d-8d08-78feaaf06985/chunk-temp
Oct 14, 2015 04:24:59 [0x7f7dde7fe700] ERROR - Failed to write chunk to file /tmp/plex-transcode-0stglbh8quk81tt9-4d07b0b3-8da5-434d-8d08-78feaaf06985/chunk-temp
Oct 14, 2015 04:24:59 [0x7f7dde7fe700] ERROR - Failed to write chunk to file /tmp/plex-transcode-0stglbh8quk81tt9-4d07b0b3-8da5-434d-8d08-78feaaf06985/chunk-temp
Oct 14, 2015 04:24:59

occurs this has never happen before just after changing to a new pc if i increase my tmp tmpfs size it just takes longer for it to error out i am running on a 64bit os of arch linux i am set up i believe correctly a swap file on my linux box but to no avail the swap file was set to 64Gigs in size any help to fix the problem it happens on every device ps3 pc

Video
Size 33.02 GB
Duration 2:04:44
Container MKV
Codec H264
Bitrate 37893 kbps
Language English
Bit Depth 8
CABAC 1
Chroma Subsampling 4:2:0
Color Space yuv
Duration 2:04:44
Frame Rate 23.976 fps
Frame Rate Mode cfr
Has Scaling Matrix 0
Height 1080
Level 4.1
Profile high
Ref Frames 4
Scan Type progressive
Width 1920
Audio

Codec DCA
Channels 6.1
Bitrate 1536 kbps
Language English
Audio Channel Layout 6.1
Bit Depth 24
Bitrate Mode VBR
Duration 2:04:44
Profile ma
Sampling Rate 48000 Hz

are the file specs
P.S. i want to use the ram for transcodeing not that i need to

PMS is either slow or times out on new server

$
0
0

I have 3 Plex Media Servers.
single i7-4930K CPU @ 3.40GHz (13067 passmark) 32GB RAM on FreeNAS (mix of SSD and spindle drives) (0.9.14.4)
dual Xeon(R) CPU 5160 @ 3.00GHz (1992 passmark x2) 16 GB RAM on FreeNAS (mix of SSD and spindle drives) (0.9.12.19)
dual Xeon(R) CPU X5690 (9273 passmark x2) @ 3.47GHz 32GB of RAM on CentOS7 (SSD and NFS mount to content) (0.9.12.19)

All work great. The i7 is set for "make my CPU hurt) and I've had 10 successful streams (all transcoded). I have not maxed out the X5690 system yet (set for automatic setting with the CPU). The 5160 we have done 5 or so streams without issues (all transcoded).

I since built a minimal install CentOS7 (0.9.12.19, first tried 0.9.14.4) on an HP DL385 which has 2 12 core AMD 2.2GHz Opteron CPUs (8874 passmark x2). 68 GB of RAM and an SSD drive (content is an NFS mount just like the other systems). Loading menus is painful. I finally got two streams to work for a short period of time, but nothing else would load. The streams were on a 6mb/s feed away from the servers. The other site we tested from has a 50/50mbps connection to the servers. We tried the main account and the shared account. The one time we did get a single feed going from the 50/50 site. Latency is roughly 5ms from the 50/50 site and the 6mbps site is around 15ms.

Load on the new server peaks at 40%. I've tried safari, mozilla, ATV via plexconnect and a roku box. We turned off scanning of the directories to not cause additional overhead issues. The connection between all plex media servers to the NAS environments are direct connection, no switches.

Any ideas why performance would be so sluggish and painful (loading images going in-between menus, and loading a stream takes what seems for ever? Even though the passmark score on the Opterons are roughly the same as a single i7, do the AMDs not have the ability to out perform with 24 cores? Does Plex not work well on that many cores?

Thanks

Log file from attempting to watch a movie (which eventually timed out):

Dec 06, 2015 18:49:56 [0x7f44f23ff700] DEBUG - Request: [10.5.12.156:65284] OPTIONS /playQueues?type=video&uri=library%3A%2F%2Ff0524c9e-aeb0-40d2-a85b-136b99a01bb4%2Fitem%2F%252Flibrary%252Fmetadata%252F803&shuffle=0&repeat=0 (15 live) TLS GZIP
Dec 06, 2015 18:49:56 [0x7f45123ff700] DEBUG - Completed: [10.5.12.156:65284] OPTIONS /playQueues?type=video&uri=library%3A%2F%2Ff0524c9e-aeb0-40d2-a85b-136b99a01bb4%2Fitem%2F%252Flibrary%252Fmetadata%252F803&shuffle=0&repeat=0 (15 live) TLS GZIP 3ms 586 bytes 200
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] DEBUG - Request: [10.5.12.156:65285] POST /playQueues?type=video&uri=library%3A%2F%2Ff0524c9e-aeb0-40d2-a85b-136b99a01bb4%2Fitem%2F%252Flibrary%252Fmetadata%252F803&shuffle=0&repeat=0 (15 live) TLS GZIP
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] DEBUG - Auth: Came in with a super-token, authorization succeeded.
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] DEBUG - PlayQueue: 0 generated IDs compressed down to a 2 byte blob.
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] DEBUG - PlayQueue: Start index: 0 End index: 0 Count: 1
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] DEBUG - PlayQueue: 1 generated IDs compressed down to a 24 byte blob.
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] DEBUG - PlayQueue: Added 1 items in 0.0 sec.
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] WARN - SLOW QUERY: It took 1520.000000 ms to retrieve 1 items.
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] WARN - SLOW QUERY: It took 1830.000000 ms to retrieve 61 items.
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] DEBUG - We're going to try to auto-select an audio stream for account 1.
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] DEBUG - Selecting best audio stream for part ID 1113 (autoselect: 0 language: en)
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] DEBUG - Audio Stream: 14619, Subtitle Stream: -1
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] DEBUG - It took 0.0 sec to serialize a list with 1 elements.
Dec 06, 2015 18:49:56 [0x7f45123ff700] DEBUG - Completed: [10.5.12.156:65285] POST /playQueues?type=video&uri=library%3A%2F%2Ff0524c9e-aeb0-40d2-a85b-136b99a01bb4%2Fitem%2F%252Flibrary%252Fmetadata%252F803&shuffle=0&repeat=0 (15 live) TLS GZIP 389ms 2346 bytes 200
Dec 06, 2015 18:49:56 [0x7f44f23ff700] DEBUG - Request: [10.5.12.156:65285] GET /photo/:/transcode?url=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F803%2Fart%2F1449343579%3FX-Plex-Token%3Dxxxxxxxxxxxxxxxxxxxx&width=2560&height=1440&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (15 live) TLS GZIP
Dec 06, 2015 18:49:56 [0x7f44f23ff700] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
Dec 06, 2015 18:49:56 [0x7f44f23ff700] DEBUG - Auth: Came in with a super-token, authorization succeeded.
Dec 06, 2015 18:49:56 [0x7f44f23ff700] DEBUG - Photo transcoder: Request for url [http://127.0.0.1:32400/library/metadata/803/art/1449343579?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx] (is local: 1 upscaled: 0)
Dec 06, 2015 18:49:56 [0x7f44f23ff700] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
Dec 06, 2015 18:49:56 [0x7f44f23ff700] DEBUG - Auth: Came in with a super-token, authorization succeeded.
Dec 06, 2015 18:49:56 [0x7f44f4bff700] DEBUG - Request: [10.5.12.156:65286] GET /photo/:/transcode?url=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F803%2Fthumb%2F1449343579%3FX-Plex-Token%3Dxxxxxxxxxxxxxxxxxxxx&width=200&height=300&minSize=1&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (17 live) TLS GZIP
Dec 06, 2015 18:49:56 [0x7f44f4bff700] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
Dec 06, 2015 18:49:56 [0x7f44f4bff700] DEBUG - Auth: Came in with a super-token, authorization succeeded.
Dec 06, 2015 18:49:56 [0x7f44f4bff700] DEBUG - Photo transcoder: Request for url [http://127.0.0.1:32400/library/metadata/803/thumb/1449343579?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx] (is local: 1 upscaled: 0)
Dec 06, 2015 18:49:56 [0x7f44f4bff700] DEBUG - The cache file did not exist, but the original did [/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/PhotoTranscoder/08/088a0df41950fac2d51484edfaa3242f9b923c87.jpg].
Dec 06, 2015 18:49:56 [0x7f44efbff700] DEBUG - Request: [10.5.12.156:65287] OPTIONS /library/metadata/803?checkFiles=1 (17 live) TLS GZIP
Dec 06, 2015 18:49:56 [0x7f45123ff700] DEBUG - Completed: [10.5.12.156:65287] OPTIONS /library/metadata/803?checkFiles=1 (17 live) TLS GZIP 3ms 586 bytes 200
Dec 06, 2015 18:49:56 [0x7f44f23ff700] WARN - SLOW QUERY: It took 610.000000 ms to retrieve 1 items.
Dec 06, 2015 18:49:56 [0x7f44f23ff700] DEBUG - Computed media url for item 803: http://127.0.0.1:45947/system/agents/media/get?guid=com.plexapp.agents.imdb://tt1232829?lang=en&amp;mediaType=1&amp;url=metadata://art/com.plexapp.agents.themoviedb_08bf0028aee84996e23c83e2ef55428655a7c15d
Dec 06, 2015 18:49:56 [0x7f44f23ff700] DEBUG - HTTP requesting GET http://127.0.0.1:45947/system/agents/media/get?guid=com.plexapp.agents.imdb://tt1232829?lang=en&amp;mediaType=1&amp;url=metadata://art/com.plexapp.agents.themoviedb_08bf0028aee84996e23c83e2ef55428655a7c15d
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] DEBUG - Request: [10.5.12.156:65288] GET /library/metadata/803?checkFiles=1 (18 live) TLS GZIP
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] DEBUG - Auth: Came in with a super-token, authorization succeeded.
Dec 06, 2015 18:49:56 [0x7f44f23ff700] DEBUG - Calculated media file path for item 803: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/Movies/b/a26775aee5383df6b4d964335cf7a75dc0c575f.bundle/Contents/_combined/art/com.plexapp.agents.themoviedb_08bf0028aee84996e23c83e2ef55428655a7c15d
Dec 06, 2015 18:49:56 [0x7f44f23ff700] DEBUG - Calling back into ourselves for photo to transcode, optimizing the process (status: -1)
Dec 06, 2015 18:49:56 [0x7f44f23ff700] DEBUG - Photo cache obtained 509890 bytes from http://127.0.0.1:32400/library/metadata/803/art/1449343579?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Dec 06, 2015 18:49:56 [0x7f44f23ff700] DEBUG - Saving original media file to /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/PhotoTranscoder/ab/ab5e3c964278ab390699f009e045c742e49f0ba3.jpg
Dec 06, 2015 18:49:56 [0x7f44ee3ff700] WARN - SLOW QUERY: It took 1860.000000 ms to retrieve 1 items.
Dec 06, 2015 18:49:57 [0x7f44f23ff700] DEBUG - Created thumbnail of size 1920x1080, has pixels: 1
Dec 06, 2015 18:49:57 [0x7f44ee3ff700] WARN - SLOW QUERY: It took 2150.000000 ms to retrieve 61 items.
Dec 06, 2015 18:49:57 [0x7f44f4bff700] DEBUG - Created thumbnail of size 200x300, has pixels: 1
Dec 06, 2015 18:49:57 [0x7f4511bfe700] DEBUG - Completed: [10.5.12.156:65286] GET /photo/:/transcode?url=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F803%2Fthumb%2F1449343579%3FX-Plex-Token%3Dxxxxxxxxxxxxxxxxxxxx&width=200&height=300&minSize=1 (17 live) TLS GZIP 522ms 19096 bytes 200
Dec 06, 2015 18:49:58 [0x7f45123ff700] DEBUG - Completed: [10.5.12.156:65285] GET /photo/:/transcode?url=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F803%2Fart%2F1449343579%3FX-Plex-Token%3Dxxxxxxxxxxxxxxxxxxxx&width=2560&height=1440 (17 live) TLS GZIP 1555ms 527631 bytes 200 (pipelined: 2)
Dec 06, 2015 18:50:00 [0x7f4506fff700] DEBUG - It took 130.000000 ms to retrieve 0 items.
Dec 06, 2015 18:50:04 [0x7f4505fff700] DEBUG - It took 140.000000 ms to retrieve 0 items.
Dec 06, 2015 18:50:11 [0x7f44f3bff700] DEBUG - It took 120.000000 ms to retrieve 0 items.
Dec 06, 2015 18:50:26 [0x7f44ee3ff700] WARN - SLOW QUERY: It took 1450.000000 ms to retrieve 1 items.
Dec 06, 2015 18:50:26 [0x7f44ee3ff700] WARN - SLOW QUERY: It took 1800.000000 ms to retrieve 61 items.
Dec 06, 2015 18:50:29 [0x7f44f5bfd700] DEBUG - It took 762.7 sec to serialize a list with 50 elements.
Dec 06, 2015 18:50:29 [0x7f45123ff700] DEBUG - Completed: [10.5.12.156:64862] GET /library/recentlyAdded (17 live) TLS GZIP 353155ms 5418 bytes 200
Dec 06, 2015 18:50:41 [0x7f44fbfff700] DEBUG - It took 749.3 sec to serialize a list with 50 elements.
Dec 06, 2015 18:50:43 [0x7f44f33fe700] DEBUG - It took 742.9 sec to serialize a list with 50 elements.
Dec 06, 2015 18:50:43 [0x7f45123ff700] DEBUG - Completed: [10.5.12.156:64902] GET /library/recentlyAdded (14 live) TLS GZIP 334524ms 5418 bytes 200
Dec 06, 2015 18:50:47 [0x7f44fead8700] DEBUG - It took 740.5 sec to serialize a list with 50 elements.
Dec 06, 2015 18:50:47 [0x7f4511bfe700] DEBUG - Completed: [10.5.12.156:64897] GET /library/recentlyAdded (14 live) TLS GZIP 346019ms 5418 bytes 200
Dec 06, 2015 18:50:55 [0x7f44ee3ff700] DEBUG - We're going to try to auto-select an audio stream for account 1.
Dec 06, 2015 18:50:55 [0x7f44ee3ff700] DEBUG - Selecting best audio stream for part ID 1113 (autoselect: 0 language: en)
Dec 06, 2015 18:50:55 [0x7f44ee3ff700] DEBUG - Audio Stream: 14619, Subtitle Stream: -1
Dec 06, 2015 18:50:55 [0x7f44ee3ff700] DEBUG - It took 0.0 sec to serialize a list with 1 elements.
Dec 06, 2015 18:50:55 [0x7f45123ff700] DEBUG - Completed: [10.5.12.156:65288] GET /library/metadata/803?checkFiles=1 (12 live) TLS GZIP 58736ms 2344 bytes 200
Dec 06, 2015 18:50:55 [0x7f44efbff700] DEBUG - Request: [10.5.12.156:65311] GET /video/:/transcode/universal/start.m3u8?path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F803&mediaIndex=0&partIndex=0&protocol=hls&offset=0&fastSeek=1&directPlay=0&directStream=0&subtitleSize=100&audioBoost=100&maxVideoBitrate=1500&videoQuality=60&videoResolution=720x480&session=wc3ml5sw8y&subtitles=burn&Accept-Language=en&X-Plex-Product=Plex+Web&X-Plex-Version=2.4.23&X-Plex-Client-Identifier=375n2xem6aq&X-Plex-Platform=Safari&X-Plex-Platform-Version=9.0&X-Plex-Device=OSX&X-Plex-Device-Name=Plex+Web+(Safari)&X-Plex-Username=aalexson&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (12 live) TLS GZIP
Dec 06, 2015 18:50:55 [0x7f44efbff700] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
Dec 06, 2015 18:50:55 [0x7f44efbff700] DEBUG - Auth: Came in with a super-token, authorization succeeded.
Dec 06, 2015 18:50:55 [0x7f44efbff700] DEBUG - Found session GUID of wc3ml5sw8y in session start.
Dec 06, 2015 18:50:55 [0x7f44efbff700] DEBUG - Using profile Safari
Dec 06, 2015 18:50:55 [0x7f44efbff700] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/803?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Dec 06, 2015 18:50:55 [0x7f44efbff700] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/metadata/803?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Dec 06, 2015 18:50:55 [0x7f44fead8700] DEBUG - Request: [127.0.0.1:35337] GET /library/metadata/803?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (13 live)
Dec 06, 2015 18:50:55 [0x7f44fead8700] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
Dec 06, 2015 18:50:55 [0x7f44fead8700] DEBUG - Auth: Came in with a super-token, authorization succeeded.
Dec 06, 2015 18:50:55 [0x7f44fead8700] WARN - SLOW QUERY: It took 930.000000 ms to retrieve 1 items.
Dec 06, 2015 18:50:55 [0x7f44fead8700] WARN - SLOW QUERY: It took 1150.000000 ms to retrieve 61 items.
Dec 06, 2015 18:51:03 [0x7f44fb7fe700] DEBUG - It took 696.5 sec to serialize a list with 50 elements.
Dec 06, 2015 18:51:04 [0x7f45123ff700] DEBUG - Completed: [10.5.12.156:64900] GET /library/recentlyAdded (13 live) TLS GZIP 357929ms 5418 bytes 200
Dec 06, 2015 18:51:15 [0x7f44fb7fe700] DEBUG - Request: [10.5.12.156:65288] OPTIONS /:/timeline?ratingKey=803&key=%2Flibrary%2Fmetadata%2F803&state=error&playQueueItemID=22&time=0&duration=6577619 (12 live) TLS GZIP
Dec 06, 2015 18:51:15 [0x7f44efbff700] ERROR - Error issuing curl_easy_perform(handle): 28
Dec 06, 2015 18:51:15 [0x7f44efbff700] WARN - HTTP error requesting GET http://127.0.0.1:32400/library/metadata/803?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (28, Timeout was reached) (Operation timed out after 20021 milliseconds with 0 out of -1 bytes received)
Dec 06, 2015 18:51:15 [0x7f44efbff700] DEBUG - Simulating 408 after curl timeout
Dec 06, 2015 18:51:15 [0x7f44efbff700] ERROR - HTTP 408 downloading url http://127.0.0.1:32400/library/metadata/803?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Dec 06, 2015 18:51:15 [0x7f44efbff700] ERROR - [TranscodeUniversalRequest] Unable to get container: /library/metadata/803?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Dec 06, 2015 18:51:15 [0x7f45123ff700] DEBUG - Completed: [10.5.12.156:65311] GET /video/:/transcode/universal/start.m3u8?path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F803&mediaIndex=0&partIndex=0&protocol=hls&offset=0&fastSeek=1&directPlay=0&directStream=0&subtitleSize=100&audioBoost=100&maxVideoBitrate=1500&videoQuality=60&videoResolution=720x480&session=wc3ml5sw8y&subtitles=burn&Accept-Language=en (12 live) TLS GZIP 20032ms 392 bytes 400
Dec 06, 2015 18:51:25 [0x7f44fead8700] WARN - SLOW QUERY: It took 760.000000 ms to retrieve 1 items.
Dec 06, 2015 18:51:25 [0x7f44fead8700] WARN - SLOW QUERY: It took 990.000000 ms to retrieve 61 items.
Dec 06, 2015 18:51:54 [0x7f44fead8700] DEBUG - We're going to try to auto-select an audio stream for account 1.
Dec 06, 2015 18:51:54 [0x7f44fead8700] DEBUG - Selecting best audio stream for part ID 1113 (autoselect: 0 language: en)
Dec 06, 2015 18:51:54 [0x7f44fead8700] DEBUG - Audio Stream: 14619, Subtitle Stream: -1
Dec 06, 2015 18:51:54 [0x7f44fead8700] DEBUG - It took 0.0 sec to serialize a list with 1 elements.
Dec 06, 2015 18:51:54 [0x7f4511bfe700] DEBUG - Completed: [127.0.0.1:35337] GET /library/metadata/803 (10 live) 58707ms 4742 bytes 200
^C

Debian Version Not Needed

$
0
0

I am running Debian 8.2 aka jessie, technically:

3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux

Anyhow, downloading and installing the standard Debian 64-bit Ubuntu version works fine! In Debian, it would have to be installed at the command line, something like this:

sudo dpkg -i Downloads/plexmediaserver_0.9.12.19.1537-f38ac80_amd64.deb

To be ready for the install, first remove any traces of any previous versions, something like this:

sudo apt-get --purge remove plexmediaserver
sudo rm --recursive /usr/lib/plexmediaserver
sudo rm --recursive /var/lib/plexmediaserver

After the install, I would certainly reboot. Running the command:

px ax|grep plex

should show you all occurrences of the various plexmediaserver modules.

In Debian, the menu item Plex Media Manager will be installed in the folder Other. Just click on the item and start setting up PMS.

Having said all this, in my experience, I cannot play a movie on my Roku longer than about 90 minutes without the Roku client running into an error and bouncing me out of the video. However, it is very easy to restart, just click on the movie title again, and resume from where you left off. Presently, I have only about a dozen different movie files, so I know I'm not overloading the system.

Finally, you cannot use "sudo stop plexmediaserver". This is something which does get lost when doing this simple install. Basically, if I have just added a few new channels and they are not showing up yet, I just reboot the server.

Any comments on this topic are welcome! ~James****

Plex server for weeks now has not been working, Music plays but most of the movies dont.

$
0
0

not sure what I have done wrong, upgraded and downgraded through all versions none of them work. I am running a quad-core 2.4 with Ubuntu server install on it along with plex server.

Buffering Problems - Improvements / Advice?

$
0
0

So I have a server hosted in the east side of the U.S. but most of my streaming activity occurs on the west side of the country. My server is running Ubuntu 14.04 and has a 1 Gbps connection with 250Mbps bandwidth so there's plenty of room to handle multiple user up / down. However, when I'm trying to stream 1080p or even 720p (at any transfer speed), 85% of the time I run into frequent short lags (plays for 3 sec, pauses for 2 seconds, repeat).

My CPU performs well, where the average of transcoding is well above the base 1.0 threshold (hovers around 3-5), but just to be safe, I set the server's transcoder quality setting to prefer high speed encoding. I wish there was an option to set how far Plex will download to buffer, but if I recall correctly, there is no option to set that. My home internet is a solid 200 down / 100 up so I assume no problems with my internet speed, so I was wondering what the reason for the buffering pauses may be.

Is there throttling going on? Could someone help me debug this problem? Also, is there any other options (without relocating my server) I can make to improve the speed and preventing the annoying pauses?

Viewing all 7311 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>