PlexConnect issue

plexconnect

#1

I have PMS and PlexConnect installed on my Synology. I see the following error in my PlexConnect.log:

19:50:35 PlexAPI: No Response from Plex Media Server
19:50:35 PlexAPI: No Response from Plex Media Server
19:50:35 PlexAPI: We failed to reach a server. Reason: timed out
19:50:35 PlexAPI: We failed to reach a server. Reason: timed out
19:50:35 PlexAPI: Traceback:
Traceback (most recent call last):
  File "/volume1/@appstore/plexconnect/share/PlexConnect/PlexAPI.py", line 426, in getXMLFromPMS
    response = urllib2.urlopen(request, timeout=20)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
    context=self._context)
  File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
    raise URLError(err)
URLError: <urlopen error timed out>

Anyone know what the cause of that is?
Settings.cfg:

[PlexConnect]
enable_plexgdm = True
ip_pms = 0.0.0.0
port_pms = 32400
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 8.8.8.8 #also tried 10.0.5.1
prevent_atv_update = True
enable_plexconnect_autodetect = True
ip_plexconnect = 0.0.0.0
hosttointercept = trailers.apple.com
port_webserver = 81
enable_webserver_ssl = True
port_ssl = 444
certfile = /usr/local/plexconnect/etc/certificates/trailers.pem
allow_gzip_atv = False
allow_gzip_pmslocal = False
allow_gzip_pmsremote = True
loglevel = Normal
logpath = /usr/local/plexconnect/var

I added the cert via browsing to trailers.apple.com/trailers.cer. The server is using UPnP in case that makes a difference, but should be findable at 0.0.0.0:32400 so i'm not sure what else to try.


#2

Please describe your problem and provide the following info:
1) full PlexConnect.log
2) IP address of the Syno and ATV
3) PMS version
4) Syno model, and confirmation that only one ethernet port is connected
Also, please note that if PMS is logged in to MyPlex, so must your ATV be logged in as well.


#3

@moody_blue The PlexConnect.log has sensitive credentials in it. Sharing it would not be a good idea!


#4

What appears to be happening is that even though I'm trying to play over LAN, the plexconnect server wants to transcode. I see this entry in the log:

XMLConverter: VideoURL: https://redacted.plex.direct:32400/video/:/transcode/universal/start.m3u8?maxVideoBitrate=40000&videoQuality=100&subtitleSize=100&fastSeek=1&partIndex=0&session=redacted&skipSubtitles=0&audioBoost=100&protocol=hls&path=%2Flibrary%2Fmetadata%2F1110&videoResolution=1920x1080&directStream=1&X-Plex-Token=redacted&X-Plex-Platform=tvOS&X-Plex-Model=3%2C1&X-Plex-Client-Capabilities=protocols%3Dhttp-live-streaming%2Chttp-mp4-streaming%2Chttp-streaming-video%2Chttp-streaming-video-720p%2Chttp-mp4-video%2Chttp-mp4-video-720p%3BvideoDecoders%3Dh264%7Bprofile%3Ahigh%26resolution%3A1080%26level%3A41%7D%3BaudioDecoders%3Dmp3%2Caac%7Bbitrate%3A160000%7D&X-Plex-Client-Platform=tvOS&X-Plex-Client-Identifier=redacted&X-Plex-Device=AppleTV&X-Plex-Product=PlexConnect&X-Plex-Platform-Version=7.2&X-Plex-Device-Name=Apple+TV&X-Plex-Version=0.5-dev-210316

that /transcode url tells me that it doesn't think the apple tv is capable of direct play. This is a gen3 appletv and the media info for the movie shows an ac3 audio stream:

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 1h 48mn
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
Frame rate                               : 31.250 fps (1536 spf)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 347 MiB (5%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

#5

1) Are you using subtitles ? If yes this may the reason for transcoding (PlexConnect supports rendering, which is an alternative to transcoding subtitles, but they need to be srt external (cannot be embedded or have another format), and in ATV settings (the PlexConnect ones) you need to code subtitlerenderer=iOS, PMS
2) Pls post the complete mediainfo, not just the audio part
3) You need to have in ATV settings (the Apple settings not the PlexConnect settings) Dolby Audio set to active (and not defaulted to auto) in order to direct play AC3 content