plexinc / plex-media-player

Next generation Plex Desktop/Embedded Client
GNU General Public License v2.0
1.16k stars 170 forks source link

Error -17 when playing any media #927

Open orangeisnon opened 4 years ago

orangeisnon commented 4 years ago

Test environment

PMS Version: 1.18.3.2156 (QNAP) PMP Version: 1.4.1.940-574c2fa7 (Windows) **Platform (Windows/macOS/Embedded RPi/Embedded Intel): Server-QNAP, Client-Windows 10

Steps to reproduce

  1. Attempt to play any media using Plex Media Player

Current behavior

  1. Playback Error, An unknown error occurred (-17), Error code: -17 Note: Photos display correctly, however video, audio, and Live TV do not Note: Media playback is working on Plex Web on the same PC, as well as the Android app. I have restarted my PC, uninstalled and reinstalled the Plex Media Player, and updated PMS, but the issue persists.

Expected behavior

  1. Media plays

PlexMediaPlayer.log plexerror17

orangeisnon commented 4 years ago

To make this easier (hopefully) I uninstalled PMP again, deleted all AppData and ProgramFiles directories related to Plex, and installed it again. Then opened Plex, enabled Debug, and tried to play a single file. Plex.log

mseeley commented 4 years ago

Thank you very much for the tight logs. It helps so much.

SSL requires communicating with a host name. Yet below it appears we're trying to access an IP over HTTPS. This won't work; I bet it's the issue.

2019-12-20T02:29:38.150 [ DEBUG ] cplayer: Opening failed or was aborted: https://96.253.48.205:32400/video/:/transcode/universal/start?hasMDE=1&path=%2Flibrary%2Fmetadata%2F34906&mediaIndex=0&partIndex=0&protocol=http&fastSeek=1&directPlay=0&directStream=0&subtitleSize=100&audioBoost=100&location=wan&session=hidfr2wn75i5f6hp46wmhgas&offset=0&subtitles=auto&copyts=1&Accept-Language=en&X-Plex-Session-Identifier=pvkmpto80dtus6ow98eatd27&X-Plex-Chunked=1&X-Plex-Product=Plex%20for%20Windows&X-Plex-Version=1.4.1.940-574c2fa7&X-Plex-Client-Identifier=gp9lpig566fjbco0kqr2amnx&X-Plex-Platform=windows&X-Plex-Platform-Version=10&X-Plex-Sync-Version=2&X-Plex-Features=external-media%2Cindirect-media&X-Plex-Model=standalone&X-Plex-Device-Name=MS-RUSSELL&X-Plex-Device-Screen-Resolution=1280x720%2C1920x1080&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&X-Plex-Language=en&X-Plex-Client-Profile-Name=Plex%20Desktop 
2019-12-20T02:29:38.150 [ DEBUG ] cplayer: finished playback, unrecognized file format (reason 4) 
2019-12-20T02:29:38.150 [ ERROR ] cplayer: Failed to recognize file format. 
2019-12-20T02:29:38.150 [ INFO  ] cplayer:  
2019-12-20T02:29:38.200 [ WARN  ] [Web] [Player] A critical error occurred: -17 An unknown error occurred (-17) 

We'll review further. Thanks + apologies!

mseeley commented 4 years ago

Can confirm I see the same cplayer string:

2020-03-03T14:02:58.978 [ DEBUG ] cplayer: Opening done: https://10.0.0.11:32400/library/parts/104158/1576564650/file.mkv?X-Plex-Session-Identifier=0t8vsge4lt1yz7nc00enpou8&X-Plex-Product=Plex%20for%20Mac&X-Plex-Version=1.6.3-72eeb4ab&X-Plex-Client-Identifier=qouy6qsdi37n2bu8hyqsn1k1&X-Plex-Platform=osx&X-Plex-Platform-Version=10.15&X-Plex-Sync-Version=2&X-Plex-Features=external-media%2Cindirect-media&X-Plex-Model=standalone&X-Plex-Device-Name=MacBook-Pro.local&X-Plex-Device-Screen-Resolution=1504x813%2C3008x1692&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&X-Plex-Language=en&Accept-Language=en

Although playback is fine. Full logs show MPV is loading the plex.direct URL. I don't know what's up with cplayer: https://gist.github.com/mseeley/2b57ee796f464c9e03f227c64f7a1029.

@rcombs are your comfortable that there isn't a deeper bug here where cplayer is playing over http?

mseeley commented 4 years ago

even ffmpeg is logging fubar:

ffmpeg: Opening https://10.0.0.11:32400/library/parts/104158/1576564650/file.mkv
mseeley commented 4 years ago

I chatted with @rcombs. The https://{ip} is a red herring with logging.

mseeley commented 4 years ago

We haven't found a cause for this. Will keep an eye out.

lking999 commented 4 years ago

Unable to find client profile for device; platform=windows, platformVersion=10, device=, model=standalone 请问这条日志怎么解决? 最后显示: 无法下载播放所需的编解码器。 请确认已连接到 Internet 并重试。 Error code: 1008