Quantcast
Channel: Synology — Plex Forums
Viewing all 3609 articles
Browse latest View live

Will upgrade to DS415+ fix my photo slideshow performance issue?

$
0
0

I am currently using a DS213j, running the Plex app installed from Synology, and viewing on a TV connected to a Tivo Roamio. Both are connected to gigabit ethernet, on the same switch.

When I try to view photos stored on the DS213j, each photo takes several seconds to load, and my DS CPU usage goes to 100% during this time. After the photo is displayed, CPU drops back down, until I tell the Tivo to go forward to the next photo. Then the CPU is back to 100%.

This all looks to me as if the low performance of the CPU in the 213j is my issue. I don't know what processing is done on the Synology for viewing photos, but I assume it is being converted to the right size to display on my TV, and that this processing is done on the fly, when each photo is selected. The photos I see this issue on are anywhere from 2MB to 8MB jpeg files.

Am I correct in thinking that upgrading to DS415+, with a significant increase in processing power, would fix this issue? Should I expect that switching from one photo to another would take less than one second with this configuration?

Thanks!


Plex on DS415play stopped working after upgrade to DSM 6.

$
0
0

Good Morning,

After updating my DS415play to DSM 6.0-7321 Plex stopped working.

The version installed on my system is 0.9.16.3.1840-cece46d

There is any package available for manual install on Synology DS415Play?

Thanks in advance for your help.

Plex on Synology 6.0RC

$
0
0

Has anyone here attempted to install Plex on Synology 6.0RC which has been released today?

Plex no longer finding metadata

$
0
0

I'm not sure if it's something I caused or if recent updates to the server or the plex server software caused this, but movies are no longer getting updated with posters or metadata period. It's possible I'm not understanding something correctly myself, I just dont know anymore. It makes me cringe every time I go to pull up a movie. Hahaha. I've included some screen shots of my settings. It's like it's trying to reach out but it's just reaching the internet maybe? I'm not sure. I looked at the log (could be the wrong log) and it's not showing any errors. Thanks ahead of time for any help or ideas.



Error when activating embedded subtitules

$
0
0

Hi,
As soon as I activate subtitles (embedded in the movie file), there is an error and I can't even play again the file. I'm able to play the file again (without subtitles) once it had been deleted and then added back.
My config : Synology NAS DS215j with Plex media server and I use a Xbox one to read the files

I've been facing this issue for weeks and can't find a solution.

Thanks for your help.

B

Ignoring #recycle and #snapshot

$
0
0

I use BTRFS snapshots on certain folders, such as family pictures, to prevent accidental deletions or modifications of the content and expose both #recycle and #snapshot links to the users.

Plex kept indexing these folders, which in case of a #snapshot folder posed a significant problem - a snapshot is created every day and a total of 30 snapshots are displayed there, leaving Plex to index 30 times the content it should.

I have fixed the issue by placing .plexignore with the following content in every folder:
snapshot/
recycle/

It would be nice if Plex for Synology would automatically ignore these folder in a future release.

Synology DS1815+ is it worth it?

$
0
0

Hello I have just started using plex and i'm really enjoying it, I was thinking of getting a Synology DS1815+ 8 Bay at the moment i have no type of backup of videos or movies, so maybe a synology would be good for raid 5 or raid 6.

If you could tell me what is best that would be great, also moving plex from computer drives to a synology how do i do that will keeping movie covers and information, as the movie location is going to change

Streaming HEVC (x265) to TV

$
0
0

Hi,

This is my current setup:
Synology DS213+ (DSM 5.2)
PMS v0.9.15.6
Samsung UE40JU6440 (With built-in Plex client)

I seem to be having issues trying to stream an x265 encoded stream using Plex. I get the message that "This server is not powerful enough."

My TV supports the format just fine though, as it works flawlessly when I plug in a USB-drive with the video file on it.
Shouldn't Plex just stream the video, instead of transcoding it in some way?


Plex un-optimal episode version selection

$
0
0

I just tried placing two copies of the same TV episode in a folder; one .mp4 and one .mkv file. Minus the extension, the naming was identical between the two. Plex properly recognizes this as a multi-version episode but when trying to play it on my Android TV (Nvidia Shield), it automatically picks the .mkv version, which results in transcoding. If I delete the .mkv from the folder, thus forcing the server to serve the .mp4 instead, it direct plays.

I would expect that in the case of multiple versions, Plex would always make the optimal selection. Is the current behavior a bug? Or is it working as intended?

Thanks!

No Agents Plex Server 0.9.9.10.459-008ea34

$
0
0

Trying to move Plex from my windows machine to a new synology array. Just installed PMS. No agents when adding movie folders. I deleted all the plugins still no dice. Anymore advice? The Plex user has full RW access to all folders as well.

Plex Server won't automatically launch (Run)

$
0
0

Hi, I have a DS215j running DSM6.0-7321. I have Plex Server 0.9.16.3.1840-cece46d.

Since updating to DSM 6.0 I find that each day I have to manually start the Plex server.

I can't access the log files as described in the FAQ, however, if it helps, the last line says:-
ERROR - Unable to set up server: basic_string::_S_create. (I have a screen dump of the log file if it helps).

Asking it to run manually works fine.

Thanks

Andrew

How do I get Plex Media Server to stop listing deleted content

$
0
0

I'm running Plex Media Server 0.9.16.0 on a Synology server.

I'm having an issue where deleted content does not seem to be removed from the Plex database. This only seems to happen to my Premium Music Library, not to my Movies or TV Shows. I can do Update Libraries / Optimize Databases / Clean Bundles / Empty Trash to my heart's content, it doesn't seem to make a difference.

What could be the problem? Or is there a way to rebuild the database fully without losing my ratings and such?

Thanks.

  • martin

Auto-updating/refreshing a remote Plex Media Server from NAS (script)

$
0
0

My media center setup consists of a Synology NAS and a Mac Mini. I tried to run Plex Media Server on the NAS for a while, but eventually found it too sluggish for transcoding, so I decided to move PMS over to the Mac Mini and just use the NAS as a storage device. One thing that's bothered me, though, is that PMS doesn't auto-update the library when there are changes on the network shares, so I either have to update manually or wait for the library update interval to kick in.

So, I wrote a script to fix that (borrowed heavily from here).

The script works by tying into inotify on the NAS, which is a Linux kernel subsystem that notices changes to the filesystem and reports those changes to applications. Inotify monitors the media directories on the NAS for changes, then connects to the remote Plex Server's web API to find the appropriate media section to refresh. If it finds a matching section, it uses the web API to send an update command to that section.

There's a bit of work involved in getting this up and running. This assumes you're running DSM6, and that you have shell access with admin/root privileges.

  1. Make sure you have "Python3" installed from the Synology Package Manager first.

  2. You'll need to install the "pynotify" Python module. The easiest way is to install the Python EasyInstall utility; Shell into your NAS, and run:
    wget https://bootstrap.pypa.io/ez_setup.py -O - | python3
    then run:
    /var/packages/py3k/target/usr/local/bin/easy_install pyinotify

  3. Save this script somewhere on your NAS as plex_notify.py:

# PLEX NOTIFIER SCRIPT v1.0
# Written by Talisto: https://forums.plex.tv/profile/talisto
# Modified heavily from https://codesourcery.wordpress.com/2012/11/29/more-on-the-synology-nas-automatically-indexing-new-files/

###################################################
# MODIFY VARIABLES HERE
###################################################

# Plex Server IP or hostname
plex_server_host = '192.168.1.100'

# Plex Server port
plex_server_port = 32400

# Map the mount points on your Plex Media Server to the fileserver's local paths
path_maps = {
    '/Volumes/video/movies': '/volume1/video/movies',
    '/Volumes/video/tv': '/volume1/video/TV',
    '/Volumes/music': '/volume1/music'
}

# Allowed file extensions
allowed_exts = [
    'jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff',
    'mp3', 'flac', 'aac', 'wma', 'ogg', 'ogv', 'wav', 'wma', 'aiff',
    'mpg', 'mp4', 'avi', 'mkv', 'm4a', 'mov', 'wmv', 'm2v', 'm4v', 'vob'
]

# Log file
log_file_path = '/var/log/plex_notify.log'

# PID file
pid_file_path = '/var/run/plex_notify.pid'

# Daemonize the process or not
daemonize = False

###################################################
# YOU SHOULDN'T NEED TO TOUCH ANYTHING BELOW HERE
###################################################

import pyinotify
import sys
import os.path
from subprocess import call
import signal
import fnmatch
import urllib.request
import xml.etree.ElementTree as ET
import json

###################################################
# CLASSES / FUNCTIONS
###################################################

class EventHandler(pyinotify.ProcessEvent):

    def __init__(self, host, port, sections, allowed_exts):
        self.modified_files = set()
        self.plex_host = host
        self.plex_port = port
        self.plex_sections = sections
        self.allowed_exts = allowed_exts

    def process_IN_CREATE(self, event):
        self.process_path(event, 'CREATE')

    def process_IN_MOVED_TO(self, event):
        self.process_path(event, 'MOVED TO')

    def process_IN_MOVED_FROM(self, event):
        self.process_path(event, 'MOVED FROM')

    def process_IN_DELETE(self, event):
        self.process_path(event, 'DELETE')

    def process_IN_MODIFY(self, event):
        if self.is_allowed_path(event.pathname, event.dir):
            self.modified_files.add(event.pathname)

    def process_IN_CLOSE_WRITE(self, event):
        # ignore close_write unlesss the file has previously been modified.
        if (event.pathname in self.modified_files):
            self.process_path(event, 'WRITE')

    def process_path(self, event, type):
        if self.is_allowed_path(event.pathname, event.dir):
            log("Notification: %s (%s)" % (event.pathname, type))

            for path in list(self.plex_sections.keys()):
                if fnmatch.fnmatch(event.pathname, path + "/*"):
                    log("Found match: %s matches Plex section ID: %d" % (
                        event.pathname,
                        self.plex_sections[path]
                    ))
                    self.update_section(self.plex_sections[path])

            # Remove from list of modified files.
            try:
                self.modified_files.remove(event.pathname)
            except KeyError as err:
                # Don't care.
                pass
        else:
            log("%s is not an allowed path" % event.pathname)

    def update_section(self, section):
        log('Updating section ID %d' % (section))
        req = urllib.request.Request("http://%s:%d/library/sections/%d/refresh" % (
            self.plex_host,
            self.plex_port,
            section
        ))
        response = urllib.request.urlopen(req)

    def is_allowed_path(self, filename, is_dir):
        # Don't check the extension for directories
        if not is_dir:
            ext = os.path.splitext(filename)[1][1:].lower()
            if ext not in self.allowed_exts:
                return False
        if filename.find('@eaDir') > 0:
            return False
        return True

def log(text):
    if not daemonize:
        print(text)
    log_file.write(text + "\n")
    log_file.flush()

def signal_handler(signal, frame):
    log("Exiting")
    sys.exit(0)

def get_plex_sections(host, port, path_maps):
    sections = {}
    req = urllib.request.Request("http://%s:%d/library/sections" % (host, port))
    response = urllib.request.urlopen(req)
    tree = ET.fromstring(response.read().decode("utf-8"))
    for directory in tree:
        key = directory.attrib['key']
        for location in directory:
            sections[path_maps[location.attrib['path']]] = int(key)
    log("Got Plex sections: " + json.dumps(sections))
    return sections

###################################################
# MAIN PROGRAM STARTS HERE
###################################################

log_file = open(log_file_path, 'a')

watch_events = pyinotify.IN_CLOSE_WRITE \
    | pyinotify.IN_DELETE \
    | pyinotify.IN_CREATE \
    | pyinotify.IN_MOVED_TO \
    | pyinotify.IN_MOVED_FROM

signal.signal(signal.SIGTERM, signal_handler)

sections = get_plex_sections(plex_server_host, plex_server_port, path_maps)
handler = EventHandler(plex_server_host, plex_server_port, sections, allowed_exts)
wm = pyinotify.WatchManager()
notifier = pyinotify.Notifier(wm, handler)

log('Adding directories to inotify watch')

wdd = wm.add_watch(list(sections.keys()), watch_events, rec=True, auto_add=True)

log('Starting loop')

try:
    notifier.loop(daemonize=daemonize, pid_file=pid_file_path)
except pyinotify.NotifierError as err:
    print >> sys.stderr, err
  1. Edit the plex_server_host variable near the top of your script to match the IP address of your Plex Server. If you have local DNS resolution, you can use a hostname instead.

  2. Edit the path_maps variable to match the mount points on your Plex Server, as well as the corresponding paths for the media shares of your NAS.

  3. You should change the daemonize variable to False for testing purposes until you're sure that everything is working properly.

  4. Try running the script with python3 plex_notify.py, and if all goes well, it will load up without errors :)

If you see a bunch of errors that say something like Errno=No space left on device (ENOSPC), then your inotify watcher limit is too low. Run sysctl -n -w fs.inotify.max_user_watches=16384 and then try again. Keep raising the number until the errors go away.

If you see an error that says Errno=No such file or directory (ENOENT), then you didn't configure your paths_maps properly. Make sure each entry in the list is the PMS server's mount point first, and then the corresponding local path on the NAS.

If you set daemonize to True, then the script will fork itself into a background task when you run it. It will stay running even if you log out of the shell.

This script should work on other NAS's and Linux-based servers as well.

Let me know if you find this useful!

Optimize and Subtitles

$
0
0

Hi guys,

Please accept my apologies - I am new to all of the below - before 2 weeks ago I knew what MKV and MP4 were but that was it... and I had never used Plex. I am here to learn :)

I'm running Plex Server 0.9.16.3.1840 on my DS1515+ (DSM 6.0-7321)

Because my NAS is just too slow to transcode my Blu Ray rips (I use Make MKV), I've decided to re-encode them to be Direct Play-ed to my Google Chromecast or PS4.

I've found that picking the "Original Quality" preset works a treat. The resultant quality is perfect, and it Direct Plays to both devices with the tests I've done. As a sidenote, since I have no need for the original (and larger file size) MKV files after the conversion is done, currently I am moving the converted MP4 files elsewhere - deleting the original MKV files and re-synchronising the MP4 files back into my Library as if they are the new Originals.

Now, time for my questions.

1) How are subtitles chosen when using this Optimize process? I seemingly have no option to select which subtitle to use.
2) Is there a way I can force the Optimizer to always use Forced English subtitles when doing this "Pre-Transcoding"?
3) Is there a way I can tell the difference between the Forced English-only subtitles, and the regular English subtitles when using the Web App or my iOS app? They are all just called "English (PGS)".

I am really not interested in using something like Handbrake to re-encode manually every file I rip. I really love the "set and forget" nature of the Optimize feature... it's just messing up some movies by automatically picking the first subtitle track it can find.

I think I've ripped and Optimized "The Bourne Ultimatum" about 4 times now and have yet to get it right.

Thanks in advance!

How do I get the PMS to see folders on my Synology Diskstation 1515+?

$
0
0

I installed the PMS. I have logged into Plex and it sees my NAS no problem. I go to add a folder and all I get is the default Plex folder structure. I cannot see the NAS folders. What do I need to do?


PMS v0.9.16.4 doesn't start under DSM 6.0-7321

$
0
0

Hi,

Error message from PMS log is :

# /var/packages/Plex\ Media\ Server/scripts/start-stop-status log
/volume1/Plex/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log

# cat "/volume1/Plex/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log"
...
Mar 31, 2016 07:50:58 [0xf38b3780] ERROR - Error: Unable to set up server: basic_string::_S_create

Error messages when started manually using .../start-stop-status :

# /var/packages/Plex\ Media\ Server/scripts//start-stop-status start
Starting Plex ...
/var/packages/Plex Media Server/target/Plex Media Server: /lib32/libstdc++.so.6: no version information available (required by /var/packages/Plex Media Server/target/libgnsdk_dsp.so.3.07.7)
/var/packages/Plex Media Server/target/Plex Media Server: /lib32/libstdc++.so.6: no version information available (required by /var/packages/Plex Media Server/target/libgnsdk_dsp.so.3.07.7)
ln: failed to create symbolic link ‘/usr/syno/synoman/webman/3rdparty/plex’: File exists

well, it seems something is related to libstdc++.so.6...

# ll /lib32/libstdc++.so.6
-r-xr-xr-x 1 root root 799K Mar 17 20:05 /lib32/libstdc++.so.6
# strings /lib32/libstdc++.so.6 | grep GCC
GCC_4.2.0
GCC_3.3
GCC_3.0
GCC: (crosstool-NG 1.20.0) 4.9.3 20150311 (prerelease)

here is the caracteristics from the last DSM 5.x :

# ll libstdc++.so.6
-r-xr-xr-x 1 root root 818K Nov 12 11:16 libstdc++.so.6
# strings libstdc++.so.6 | grep GCC
GCC_4.2.0
GCC_3.3
GCC_3.0
GCC: (crosstool-NG 1.19.0) 4.6.4

so, it seems the problem from the compiler version used to build the libraries which is "of course" different between DSM 5.x than 6.x while PMS seems to have been build under DSM 5.x or something like that :

# strings /var/packages/Plex\ Media\ Server/target/Plex\ Media\ Server | grep GCC
GCC_3.4
GCC_3.0
GCC: (crosstool-NG 1.17.0) 4.6.3

I copied the last DSM 5.x libstdc++.so.6 to /var/packages/Plex\ Media\ Server/target/ then PMS starts succefully.

to get back this library, you have to download the lastest DMS 5.x .pat file (firmware) related to your hardware, then extract its content using :
# tar xf DSM_DSXXXX%2B_XXXX.pat hda1.tgz
then extract libstdc++.so.6 from hda1.tgz using :
# tar xf hda1.tgz lib/libstdc++.so.6
then move the extracted libstdc++.so.6 to /var/packages/Plex\ Media\ Server/target/ using :
# mv lib/libstdc++.so.6 /var/packages/Plex\ Media\ Server/target/
then start it manually to check that everything is right :
# /var/packages/Plex\ Media\ Server/scripts/start-stop-status start

Regards

Can't install 0.9.16.4 on DSM 6.0

$
0
0

My DS 415+ is running Plex 0.9.14.3, which was installed before I updated the machine to DSM 6.0.

When I try to install the 0.9.14.4-x86-Package I get the error message "Operation failed" (translated from German: "Operation fehlgeschlagen")

Any suggestions?

BUG: Plex schedule task does not stop anymore

$
0
0

With the latest stable version I have some planned transcoding task that continue during the day even with the parameter "Prioritize streaming transcodes" I can't watch a movie as the transcoder continue in background.

Thanks

BUG: 0.9.16.4 Items appears duplicated but they are not

$
0
0

I have a bug since the last 2 version:
Some items appears to have 2 versions but when inspecting the file, its only 1 file listed twice.
If I physically move the file to remove it from Plex and re-add id, the item is not duplicated anymore.


Edit:
NAS: DS415+
DSM Version: DSM 6.0-7321
Plex Version: 0.9.16.4
Bug Since Version: 0.9.16.2

Plex Stutters with version 0.9.16.x Update

$
0
0

I've tried to update plex to 0.9.16.(any available) and it just has issues. The Synology DS214Play when watching via xbox one over Ethernet (Not wifi) seems to stutter.

I have spent all night trying to work out why, it seems to be unable to create the .ts file in the temp area quick enough. seems to do one every 5-10 seconds so the video buffers while the next video is created. I've not go anything set to transcode. I've looked and it doesn't top out processor, memory or hard drive etc.

So I downgraded back to version 0.9.15.6 and it runs fine again. it creates .ts files rapidly, 1-2 seconds each file. Has something changed in the way it writes files in version X.X.16? Any thoughts where to start looking at what the cause is?

Andy

Viewing all 3609 articles
Browse latest View live


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