At 20:32:40 we can see Newuser request a 720p at the remote location taking shape:
At 20:32:44 we can see Failed to stream media, Connection reset by peer
Then the transcoder session stops, then starts, then another peer reset.
The cycle repeats till they give up. So I guess it’s the player?
A 720p video requires less than 6 Mbps.
The user has 25 Mbps of bandwidth.
Below we see the details.
Sep 22, 2019 20:32:40.194 [0x7fa1fa797700] DEBUG - Auth: authenticated user 21243433 as NewUser
Sep 22, 2019 20:32:40.194 [0x7fa1f8cea700] DEBUG - Request: [172.117.132.49:48166 (WAN)] GET /video/:/transcode/universal/decision?audioBoost=100&autoAdjustQuality=1&directPlay=0&directStream=1&directStreamAudio=1&fastSeek=1&hasMDE=1&location=wan&maxVideoBitrate=1500&mediaBufferSize=74944&mediaIndex=0&partIndex=0&path=%2Flibrary%2Fmetadata%2F4168&protocol=*&session=770d38f6d2274b03-com-plexapp-android&subtitleSize=100&videoBitrate=1500&videoQuality=60&videoResolution=3840x2160 (16 live) TLS GZIP Signed-in Token (NewUser)
Sep 22, 2019 20:32:40.195 [0x7fa1f8cea700] DEBUG - Found session GUID of 770d38f6d2274b03-com-plexapp-android in session start.
Sep 22, 2019 20:32:40.216 [0x7fa1f8cea700] DEBUG - Streaming Resource: Reducing playback quality for 1428kbps stream bitrate: video resolution to 720x406, audio channels to 2, quality to 20, disable video DS as 30925kbps is > the 1290kbps available, disable audio DS as 639kbps is > the 128kbps available
Looks good so far. Chooses hwaccel vaapi
Sep 22, 2019 20:32:40.217 [0x7fa1f8cea700] DEBUG - MDE: Selected protocol hls; container: mpegts
Sep 22, 2019 20:32:40.218 [0x7fa1f8cea700] DEBUG - Streaming Resource: Reached Decision id=4168 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3000,App cannot direct play this item. Direct play is disabled. Transcode=1001,Direct play not available; Conversion OK.) media=(id=10380 part=(id=10380 decision=transcode container=mpegts protocol=hls streams=(Video=(id=23077 decision=transcode bitrate=1290 encoder=h264_vaapi width=720 height=406) Audio=(id=23078 decision=transcode bitrate=128 encoder=aac channels=2 rate=48000))))
Sep 22, 2019 20:32:41.875 [0x7fa16d6fb700] DEBUG - TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
Sep 22, 2019 20:32:41.875 [0x7fa16d6fb700] DEBUG - Job running: EAE_ROOT='/volume2/Plex/tmp_transcoding/pms-b7695d29-abc3-4084-944c-e769a3fb8673/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/volume2/Plex/Library/Application\ Support/Plex\ Media\ Server/Codecs/ba1b905-2538-linux-x86_64/' XDG_CACHE_HOME='/volume2/Plex/Library/Application Support/Plex Media Server/Cache' XDG_DATA_HOME='/volume2/@appstore/Plex Media Server/Resources' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/volume2/@appstore/Plex Media Server/Plex Transcoder' '-codec:0' 'h264' '-hwaccel:0' 'vaapi' '-hwaccel_fallback_threshold:0' '10' '-hwaccel_output_format:0' 'vaapi' '-codec:1' 'ac3' '-analyzeduration' '20000000' '-probesize' '20000000' '-i' '/volume1/SHR Volume/Media/TV/Veep.S01E01.Fundraiser.1080p.BluRay.DD5.1.x264-SA89/pN4GMeS0h3WAhcgMhPGoN.mkv' '-filter_complex' '[0:0]hwupload[0];[0]scale_vaapi=w=720:h=406:format=nv12[1];[1]hwupload[2]' '-filter_complex' '[0:1] aresample=async=1:ocl='\''stereo'\'':osr=48000[3]' '-map' '[2]' '-codec:0' 'h264_vaapi' '-b:0' '967k' '-maxrate:0' '1290k' '-bufsize:0' '2580k' '-r:0' '23.975999999999999' '-force_key_frames:0' 'expr:gte(t,0+n_forced*3)' '-map' '[3]' '-metadata:s:1' 'language=eng' '-codec:1' 'aac' '-b:1' '128k' '-segment_format' 'mpegts' '-f' 'ssegment' '-individual_header_trailer' '0' '-segment_time' '3' '-segment_start_number' '0' '-segment_copyts' '1' '-segment_time_delta' '0.0625' '-segment_list' 'http://127.0.0.1:32400/video/:/transcode/session/770d38f6d2274b03-com-plexapp-android/a6a14e33-b7d5-452b-a5d5-644301452820/seglist' '-segment_list_type' 'csv' '-segment_list_size' '2147483647' '-segment_list_separate_stream_times' '1' '-segment_list_unfinished' '1' '-max_delay' '5000000' '-avoid_negative_ts' 'disabled' '-map_metadata' '-1' '-map_chapters' '-1' 'media-%05d.ts' '-start_at_zero' '-copyts' '-vsync' 'cfr' '-y' '-init_hw_device' 'vaapi=vaapi:/dev/dri/renderD128' '-hwaccel_device' 'vaapi' '-filter_hw_device' 'vaapi' '-nostats' '-loglevel' 'quiet' '-loglevel_plex' 'error' '-progressurl' 'http://127.0.0.1:32400/video/:/transcode/session/770d38f6d2274b03-com-plexapp-android/a6a14e33-b7d5-452b-a5d5-644301452820/progress'
Here the first segment of the transcoded stream is requested
Sep 22, 2019 20:32:43.334 [0x7fa16d9e9700] DEBUG - Request: [172.117.132.49:48178 (WAN)] GET /video/:/transcode/universal/session/770d38f6d2274b03-com-plexapp-android/base/00000.ts (25 live) TLS Signed-in
Sep 22, 2019 20:32:43.334 [0x7fa16d9e9700] DEBUG - Asked for segment 0 from session.
Sep 22, 2019 20:32:43.334 [0x7fa16d9e9700] DEBUG - Returning segment 0 from session
Sep 22, 2019 20:32:43.334 [0x7fa16d9e9700] DEBUG - Content-Length of /volume2/Plex/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-770d38f6d2274b03-com-plexapp-android-a6a14e33-b7d5-452b-a5d5-644301452820/media-00000.ts is 379948 (of total: 379948).
But then it dies with Failed To Stream Media
Sep 22, 2019 20:32:44.218 [0x7fa1d3d11700] DEBUG - Streaming Resource: Estimated bandwidth for 770d38f6d2274b03-com-plexapp-android to be 3343kbps over 0.88s
Sep 22, 2019 20:32:44.380 [0x7fa1fa797700] DEBUG - Failed to stream media, client probably disconnected after 98304 bytes: 104 - Connection reset by peer
Sep 22, 2019 20:32:44.380 [0x7fa1fa797700] DEBUG - Completed after connection close: [172.117.132.49:48178] 200 GET /video/:/transcode/universal/session/770d38f6d2274b03-com-plexapp-android/base/00000.ts (25 live) TLS 1045ms 98304 bytes (pipelined: 1)
Sep 22, 2019 20:32:44.380 [0x7fa1fa797700] DEBUG - Removed transcode data consumer, active count 2 => 1
Sep 22, 2019 20:32:44.387 [0x7fa1fa4a9700] DEBUG - Failed to stream media, client probably disconnected after 98304 bytes: 104 - Connection reset by peer
Sep 22, 2019 20:32:44.387 [0x7fa1fa4a9700] DEBUG - Completed after connection close: [172.117.132.49:48184] 200 GET /video/:/transcode/universal/session/770d38f6d2274b03-com-plexapp-android/base/00001.ts (24 live) TLS 426ms 98304 bytes (pipelined: 1)
Sep 22, 2019 20:32:44.388 [0x7fa1fa4a9700] DEBUG - Removed transcode data consumer, active count 1 => 0
And this is a list of all those reset by peer messages:
Sep 22, 2019 20:32:44.380 [0x7fa1fa797700] DEBUG - Failed to stream media, client probably disconnected after 98304 bytes: 104 - Connection reset by peer
Sep 22, 2019 20:32:44.387 [0x7fa1fa4a9700] DEBUG - Failed to stream media, client probably disconnected after 98304 bytes: 104 - Connection reset by peer
Sep 22, 2019 20:33:17.396 [0x7fa1fa797700] DEBUG - Failed to stream media, client probably disconnected after 675448 bytes: 104 - Connection reset by peer
Sep 22, 2019 20:33:17.411 [0x7fa1fa797700] DEBUG - Failed to stream media, client probably disconnected after 122768 bytes: 104 - Connection reset by peer
Sep 22, 2019 20:43:52.395 [0x7fa1fa4a9700] DEBUG - Failed to stream media, client probably disconnected after 150070 bytes: 104 - Connection reset by peer
Sep 22, 2019 20:44:06.490 [0x7fa1fa797700] DEBUG - Failed to stream media, client probably disconnected after 81920 bytes: 104 - Connection reset by peer
Sep 22, 2019 20:44:06.500 [0x7fa1fa4a9700] DEBUG - Failed to stream media, client probably disconnected after 81920 bytes: 104 - Connection reset by peer
Sep 22, 2019 20:45:20.375 [0x7fa1fa4a9700] DEBUG - Failed to stream media, client probably disconnected after 61384 bytes: 104 - Connection reset by peer
Sep 22, 2019 20:55:12.154 [0x7fa1fa4a9700] DEBUG - Failed to stream media, client probably disconnected after 10881720 bytes: 104 - Connection reset by peer
Possible solutions to connection reset by peer:
Could you get us the player log in debug mode? At least we can add it to the evidence.
Can the remote user download the video like a desktop app or mobil can?