PlexConnect on synology

Hello Guys,

first I have to say great work bwynants!! Great job! :-)

I did a quick test in my environment. Two critical 1080p's are working fine. But some of my 720p series are having trouble. Sound is really smoothly, but video isn't good. I wouldn't say that is stuttering, it's more not running smoothly.

Here are some infos about the used files:

This one is bad:

General
Unique ID                                : xxxxxxxxxxx
Complete name                            : \\DISKSTATION\video est.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 1.47 GiB
Duration                                 : 41mn 19s
Overall bit rate                         : 5 102 Kbps
Movie name                               : Test
Encoded date                             : UTC 2012-11-25 16:10:07
Writing application                      : mkvmerge v5.8.0 ('No Sleep / Pillow') built on Sep  2 2012 15:37:04
Writing library                          : libebml v1.2.3 + libmatroska v1.3.0

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.1
Format settings, CABAC                   : No
Format settings, ReFrames                : 2 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 41mn 19s
Bit rate                                 : 4 104 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.178
Stream size                              : 1.18 GiB (80%)
Default                                  : Yes
Forced                                   : No
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 41mn 19s
Bit rate mode                            : Constant
Bit rate                                 : 448 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 132 MiB (9%)
Language                                 : German
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 41mn 19s
Bit rate mode                            : Constant
Bit rate                                 : 448 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 132 MiB (9%)
Language                                 : English
Default                                  : No
Forced                                   : No
 

This one is good:

General
Unique ID                                : xxxxxxxxxxx
Complete name                            : \\DISKSTATION\video\Test2.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 888 MiB
Duration                                 : 25mn 35s
Overall bit rate                         : 4 854 Kbps
Encoded date                             : UTC 2012-01-25 13:10:20
Writing application                      : mkvmerge v4.0.0 ('The Stars were mine') built on Jun  6 2010 16:18:42
Writing library                          : libebml v1.0.0 + libmatroska v1.0.0

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.1
Format settings, CABAC                   : No
Format settings, ReFrames                : 2 frames
Format settings, GOP                     : N=1
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 25mn 35s
Bit rate                                 : 4 182 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.189
Stream size                              : 765 MiB (86%)
Language                                 : English
Default                                  : No
Forced                                   : No
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format profile                           : Dolby Digital
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 25mn 35s
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 35.1 MiB (4%)
Language                                 : German
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 25mn 35s
Bit rate mode                            : Constant
Bit rate                                 : 384 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 70.3 MiB (8%)
Language                                 : English
Default                                  : No
Forced                                   : No
 

Guys do you have idea about this?

BTW: ATV3 with latest iOS, PMS 0.9.7.28, DSM DSM 4.2-3202

Hello. I have an issue: plexconnect stops after run (the status in package center shows "stopped"). It runs for about 1-2minutes and then stops. And ATV trailers shows "Trailers is unavailable. Try again later". Any hints, please? Thank you !

Thank you for make this available for the Synology NAS! I'll hope you update this when new versions are available... It's really awesome that i can run this from my Synology NAS. Thanks!

For those wanting to use the package and always have the latest version from git at the same time:
 
Update for latest version of spk with new file structure
Update for new PlexConnect.py in git
 
1) Get git on your synology (using ipkg or spk; when using the spk package the git client can be found at /usr/local/git/bin/git, use this in step 5 and when pulling updates)
 
2) Stop PlexConnect on Synology from package manager in DSM
 
3) Navigate to package folder (if you can't find the 'share' folder, update to the latest package in the start post)
cd /usr/local/plexconnect/share/
 
4) Move current files to backup location
mv PlexConnect/ PlexConnect-org/
 
5) Clone PlexConnect repo
git clone https://github.com/iBaa/PlexConnect.git
 
6) Copy config files from original folder to new checkout
cp PlexConnect-org/*.cfg PlexConnect/
 
7) Change owner rights
chown -R plexconnect.root PlexConnect/
 
8 ) Start PlexConnect again from DSM (using command line kills the service when you logout)
 
9) Check if everything still works.
 
 
Now to update your code:
cd /usr/local/plexconnect/share/PlexConnect/
git pull
Check if any changes were made; if so: stop and start PlexConnect from DSM package manager to pick them up
 
If you have used this before and git pull complains about local changes in PlexConnect.py: delete it and try to pull again:
cd /usr/local/plexconnect/share/PlexConnect/
rm PlexConnect.py
git pull

Everything works nearly perfect, but music. Why? 

Server is latest 0.9.8

Music is not supported and might never be unless a new better method is found.

For those wanting to use the package and always have the latest version from git at the same time:

the newer installer puts the code in a slightly different location, apart from that the steps should work

use /usr/local/plexconnect/share/PlexConnect/ as that path also abstracts the installation location (volume 1 or volume2)

and starting and stopping can be done from within the Package Center....

Hello. I have an issue: plexconnect stops after run (the status in package center shows "stopped"). It runs for about 1-2minutes and then stops. And ATV trailers shows "Trailers is unavailable. Try again later". Any hints, please? Thank you !

What is in the log file? with the latest installer you can access the log file from within the  Package Manager, open PlexConnect and click on the 'log' link

Is there going to be a way to make sure that our synology plex connect package is up to date or do you have to respin make ever time?

Is there a way to get it submitted to synocommunity?

Do you have your build instructions for building that .spk package?

btw, thanks for building worked flawless. One thing i would add is to ask on install if the PMS is remote so no one has to edit anything.

Is there going to be a way to make sure that our synology plex connect package is up to date or do you have to respin make ever time?

Is there a way to get it submitted to synocommunity?

Do you have your build instructions for building that .spk package?

btw, thanks for building worked flawless. One thing i would add is to ask on install if the PMS is remote so no one has to edit anything.

A request is send to SynoCommunity to add the package see https://github.com/SynoCommunity/spksrc/pull/576

if they add it, I plan on making addition patches for each dot 'release' of PlexConnect and Package Manager on Synology should inform you of updates automatically.

as long as it is not added I will update this post with the latest 'released' version

you can sync to https://github.com/bwynants/spksrc and build it yourself if you like :-)

PS: if PlexGDM works correct there should be no need to edit anything in the config...

btw, thanks for building worked flawless. One thing i would add is to ask on install if the PMS is remote so no one has to edit anything.

Remote PMS's are not supported, you need to either wait for implementation of MyPlex support or make the changes manually if you understand the implications (having the option open to everyone will just create a support nightmare).

Hi,

   any one can say me how I can install the python 2.7.3-3 package? I can't find that!.

My default python package versión is the 2.7.3-11 and the plexconnect package don't work.

thanks in advance.

the newer installer puts the code in a slightly different location, apart from that the steps should work

use /usr/local/plexconnect/share/PlexConnect/ as that path also abstracts the installation location (volume 1 or volume2)

and starting and stopping can be done from within the Package Center....

Thanks, changed the steps to match the new (nicer) structure, use the /usr/local/, restart using the package manager (I liked the commandline, since I didn't need the web interface, but starting PlexConnect from the commandline kills it when your ssh connection is closed: no so good) and change the owner of the files (just in case).

For those wanting to use the package and always have the latest version from git at the same time:
 
(Update for latest version of spk with new file structure)
 
1) Get git on your synology (using ipkg or spk)
 
2) Stop PlexConnect on Synology from package manager in DSM
 
3) Navigate to package folder
cd /usr/local/plexconnect/share/
 
4) Move current files to backup location
mv PlexConnect/ PlexConnect-org/
 
5) Clone PlexConnect repo
 
6) Copy config files from original folder to new checkout
cp PlexConnect-org/*.cfg PlexConnect/
 
7) Remove code preventing PlexConnect to run as daemon
vi PlexConnect/PlexConnect.py and delete the last 10+ lines starting from 
        try:
               key = raw_input()
 
8 ) Change owner rights
chown -R plexconnect.root PlexConnect/
 
9) Start PlexConnect again from DSM (using command line kills the service when you logout)
 
10) Check if everything still works.
 
 
Now to update your code:
cd /usr/local/plexconnect/share/PlexConnect/
git pull
Check if any changes were made; if so: stop and start PlexConnect from DSM package manager to pick them up
 
If there are ever conflicts in PlexConnect.py, just delete it and git pull the latest version and check if it is still needed to manually remove the code preventing it from running as a daemon.

Hi Abmaonline, I am confused with your steps, may you pls guide me.

I have installed PlexConnect base on Bwynants package.

Steps:

1) I have installed the Git (source SynoCommunity) from DSM Package Mgr successfully

2) Successfully stopped the PlexConnect

3) I could not find the share directory in plexconnect - should I manually create it?

4) I have manually created the directory PlexConnect-org and copy all files in /usr/local/plexconnect - this is ok?

5) I cant run "git clone https://github.com/iBaa/PlexConnect.git", error "Git not found" - what am I missing here?

3) I could not find the share directory in plexconnect - should I manually create it?

use newer installer in first post

use newer installer in first post

Thanks again bro bwynants ;)

Hi Abmaonline, I am confused with your steps, may you pls guide me.

I have installed PlexConnect base on Bwynants package.

Steps:

1) I have installed the Git (source SynoCommunity) from DSM Package Mgr successfully

2) Successfully stopped the PlexConnect

3) I could not find the share directory in plexconnect - should I manually create it?

4) I have manually created the directory PlexConnect-org and copy all files in /usr/local/plexconnect - this is ok?

5) I cant run "git clone https://github.com/iBaa/PlexConnect.git", error "Git not found" - what am I missing here?

I just found out I don't use the Git package myself, so I will have a look at how I installed Git or how to get it working with the package...

Edit: ok, I used ipkg to install git; to use the git in SynoCommunity package replace git in the steps by /usr/local/git/bin/git:

5) Clone PlexConnect repo
/usr/local/git/bin/git clone https://github.com/iBaa/PlexConnect.git
and
 
/usr/local/git/bin/git pull

Hi,

I have installed plex connect on my 1511 synology yesterday with the latest spk from this thread and am having the same trouble on ATV3 FW 5.3 as described in the following thread: http://forums.plexapp.com/index.php/topic/72831-latest-plexconnect-cannot-play-content/

According to the thread the issue has been solved June 30th in the morning and the spk from this thread is from the same day so it should have been fixed but I still have the issue on my installation.

Could someone kindly advise how I can locate settings.cfg so I can edit it myself?

Thank you
Gernot

as mentioned

Hi,


I have installed plex connect on my 1511 synology yesterday with the latest spk from this thread and am having the same trouble on ATV3 FW 5.3 as described in the following thread: http://forums.plexapp.com/index.php/topic/72831-latest-plexconnect-cannot-play-content/


According to the thread the issue has been solved June 30th in the morning and the spk from this thread is from the same day so it should have been fixed but I still have the issue on my installation.


Could someone kindly advise how I can locate settings.cfg so I can edit it myself?


Thank you

Gernot


as mentioned in the first post: based on v0.1 release of PlexConnect


the bugfix is not in that version, instructions for installing a more recent version yourself are in the thread…


editing settings:

log on as root (ssh) and type

vi /usr/local/plexconnect/share/PlexConnect/Settings.cfg

Hi,

I'm note sure it's related to this project or any previous attempt :)

But i can't login in to my photo station anymore LAN:  10.0.1.2/photo  => Page couldn't be find, same error for 10.0.1.2/web/index.html

I have checked every thing i could think of incl. that Apace is running. Could I have change something like the DNS, web on 81 that I now have to reset.

I tried to uninstall this packages but still have the same problem.

Pls help :)