@markus101,@sLumpy I think you can merge all of these posts, they’re all related.
Unexpected Playback error at end of TV episodes - Plex Players / Smart TVs - Plex Forum
Unexpected Playback error at end of movies/episodes - Plex Players / Smart TVs - Plex Forum
Transcode Errors (Samsung Tizen) - Plex Players / Smart TVs - Plex Forum
And probably others.
I could reproduce this on the Smart TV app, but not on Plex HTPC or Plex Web.
From my test, It only happens when:
Matroska is the container.
Direct Play is enabled.
Text Subtitles are enabled (.srt or .ass) (AppRenders shows the Video Information on the player)
Always happen near the end of the video.
Video may have subtitles, but if they’re not enabled the error will not appear.
It doesn’t happen on mp4 containers (incl. subtitles) from my tests.
You can reproduce yourselves with any Matroska with subtitles enabled, on a SmartTV Player. (It’ll give you the mentioned error)
Correction on above, I did find some Matroskas with subtitles that do not show this behaviour. But there were a few, I’m unable to identify why happens in some and not in others. Will check if
the length of the subtitles has something to do with it.
Also, I was able to reproduce long and short videos.
Not tested with external subtitles.
Some Logs and Tidbits
- Directplay is not applied on the server, but transcoding. The client shows directplay as the source and matroska, HTTP, in Information, but the server is actually transcoding…
- Client setup, Audio: AC3, and EAC3, enabled, DTs and MultiAudio normalization disabled. Video: Local Quality: Original, Allow Direct Play, Allow Direct Steam, Maximum H.264 5.2. Subtitles: Burn Never.
Client Error:
Server Log At The Time
Jun 16, 2023 23:47:39.867 [9468] DEBUG - Request: [127.0.0.1:61869 (Loopback)] PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress?status=opening (6 live) #582a3 Signed-in Token (mpiva) (range: bytes=0-)
Jun 16, 2023 23:47:39.867 [20400] DEBUG - Completed: [127.0.0.1:61869] 204 PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress?status=opening (6 live) #582a3 0ms 203 bytes (pipelined: 3) (range: bytes=0-)
Jun 16, 2023 23:47:39.874 [9468] DEBUG - Request: [127.0.0.1:61869 (Loopback)] PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress?status=opened (6 live) #582a4 Signed-in Token (mpiva) (range: bytes=0-)
Jun 16, 2023 23:47:39.874 [20400] DEBUG - Completed: [127.0.0.1:61869] 204 PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress?status=opened (6 live) #582a4 0ms 203 bytes (pipelined: 4) (range: bytes=0-)
Jun 16, 2023 23:47:39.874 [9468] DEBUG - Request: [127.0.0.1:61869 (Loopback)] PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress/stream?index=1&id=0&codec=h264&type=video (6 live) #582a5 Signed-in Token (mpiva) (range: bytes=0-)
Jun 16, 2023 23:47:39.875 [20400] DEBUG - Completed: [127.0.0.1:61869] 200 PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress/stream?index=1&id=0&codec=h264&type=video (6 live) #582a5 0ms 195 bytes (pipelined: 5) (range: bytes=0-)
Jun 16, 2023 23:47:39.928 [9468] DEBUG - Request: [127.0.0.1:61869 (Loopback)] PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress/stream?index=0&id=0&codec=aac&type=audio&profile=LC (6 live) #582a6 Signed-in Token (mpiva) (range: bytes=0-)
Jun 16, 2023 23:47:39.929 [20400] DEBUG - Completed: [127.0.0.1:61869] 200 PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress/stream?index=0&id=0&codec=aac&type=audio&profile=LC (6 live) #582a6 0ms 195 bytes (pipelined: 6) (range: bytes=0-)
Jun 16, 2023 23:47:39.929 [9468] DEBUG - Request: [127.0.0.1:61869 (Loopback)] PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress/streamDetail?index=0&id=0&codec=aac&type=audio&profile=LC&channels=2&layout=stereo&sampleRate=48000&disp_default=1 (6 live) #582a7 Signed-in Token (mpiva) (range: bytes=0-)
Jun 16, 2023 23:47:39.929 [20400] DEBUG - Completed: [127.0.0.1:61869] 200 PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress/streamDetail?index=0&id=0&codec=aac&type=audio&profile=LC&channels=2&layout=stereo&sampleRate=48000&disp_default=1 (6 live) #582a7 0ms 195 bytes (pipelined: 7) (range: bytes=0-)
Jun 16, 2023 23:47:39.929 [9468] DEBUG - Request: [127.0.0.1:61869 (Loopback)] PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress/streamDetail?index=1&id=0&codec=h264&type=video&profile=High&language=jpn&width=1920&height=1080&interlaced=0&sar=1:1&level=41&frameRate=29.970&disp_default=1 (6 live) #582a8 Signed-in Token (mpiva) (range: bytes=0-)
Jun 16, 2023 23:47:39.930 [20400] DEBUG - Completed: [127.0.0.1:61869] 200 PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress/streamDetail?index=1&id=0&codec=h264&type=video&profile=High&language=jpn&width=1920&height=1080&interlaced=0&sar=1:1&level=41&frameRate=29.970&disp_default=1 (6 live) #582a8 0ms 195 bytes (pipelined: 8) (range: bytes=0-)
Jun 16, 2023 23:47:39.930 [9468] DEBUG - Request: [127.0.0.1:61869 (Loopback)] PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress/streamDetail?index=2&id=0&codec=ass&type=subtitle&language=eng&disp_default=1&disp_forced=1 (6 live) #582a9 Signed-in Token (mpiva) (range: bytes=0-)
Jun 16, 2023 23:47:39.930 [20400] DEBUG - Completed: [127.0.0.1:61869] 200 PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress/streamDetail?index=2&id=0&codec=ass&type=subtitle&language=eng&disp_default=1&disp_forced=1 (6 live) #582a9 0ms 195 bytes (pipelined: 9) (range: bytes=0-)
Jun 16, 2023 23:47:39.932 [9468] DEBUG - Request: [127.0.0.1:61869 (Loopback)] PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress?duration=136.213000 (6 live) #582aa Signed-in Token (mpiva) (range: bytes=0-)
Jun 16, 2023 23:47:39.932 [11116] DEBUG - [Req#58293/Transcode] Started session successfully: p6uolhfmeyme3c6xawj8adsk
Jun 16, 2023 23:47:39.932 [12276] DEBUG - Completed: [127.0.0.1:61869] 204 PUT /video/:/transcode/session/p6uolhfmeyme3c6xawj8adsk/a1ec70e6-2eef-4502-9cd4-e9f272939146/progress?duration=136.213000 (6 live) #582aa 0ms 203 bytes (pipelined: 10) (range: bytes=0-)
Jun 16, 2023 23:47:39.932 [11116] DEBUG - [Req#58293/Transcode] Cleaning directory for session p6uolhfmeyme3c6xawj8adsk (C:\Users\mpiva\AppData\Local\Plex Media Server\Cache\Transcode\Sessions\plex-transcode-p6uolhfmeyme3c6xawj8adsk-2f58a428-123f-49f0-a122-91fd42236a3a)
Jun 16, 2023 23:47:39.934 [11116] DEBUG - Content-Length is -1 (of total: -1).
Jun 16, 2023 23:47:39.935 [5672] DEBUG - [TranscodeOutputStream] Input processing thread started at offset 0 for -1 bytes.
Jun 16, 2023 23:47:41.006 [19600] DEBUG - Jobs: 'C:\Program Files\Plex\Plex Media Server\Plex Transcoder.exe' exit code for process 16908 is -1073741819 ()
Jun 16, 2023 23:47:41.006 [15308] DEBUG - Notifying consumer that data is complete.
Jun 16, 2023 23:47:41.006 [5672] DEBUG - [TranscodeOutputStream] Input processing thread exited after writing 0 bytes, m_closed=0, m_endOfFileReached=1, session->isStopped()=0
Jun 16, 2023 23:47:41.006 [20812] DEBUG - Killing job.
Jun 16, 2023 23:47:41.006 [20812] DEBUG - Job was already killed, not killing again.
Jun 16, 2023 23:47:41.006 [20812] DEBUG - Stopping transcode session p6uolhfmeyme3c6xawj8adsk
Jun 16, 2023 23:47:41.006 [15308] DEBUG - Streaming Resource: Terminated session 0000018B32C50A10:lf6kcae8yzn5o1ef8tyfiewd with reason Conversion failed. The transcoder process crashed.
Jun 16, 2023 23:47:41.006 [15308] DEBUG - Cleaning directory for session p6uolhfmeyme3c6xawj8adsk (C:\Users\mpiva\AppData\Local\Plex Media Server\Cache\Transcode\Sessions\plex-transcode-p6uolhfmeyme3c6xawj8adsk-a1ec70e6-2eef-4502-9cd4-e9f272939146)
Jun 16, 2023 23:47:41.017 [20812] DEBUG - Transcoder: Cleaning old transcode directories.
Jun 16, 2023 23:47:41.019 [20812] DEBUG - Whacked session p6uolhfmeyme3c6xawj8adsk, 0 remaining.
Jun 16, 2023 23:47:41.019 [20812] DEBUG - Cleaning directory for session p6uolhfmeyme3c6xawj8adsk (C:\Users\mpiva\AppData\Local\Plex Media Server\Cache\Transcode\Sessions\plex-transcode-p6uolhfmeyme3c6xawj8adsk-a1ec70e6-2eef-4502-9cd4-e9f272939146)
Jun 16, 2023 23:47:41.024 [12276] ERROR - [TranscodeOutputStream] Session appears to have died from under us
Initial Assessment: Plex Transcoder crashed.
Last statistics from Plex Transcoder
<SessionReport version="2" startTime="0" startTimestamp="Jun 16, 2023 23:47:39.741" key="/library/metadata/437026" session="lf6kcae8yzn5o1ef8tyfiewd" transcode="p6uolhfmeyme3c6xawj8adsk">
<User id="1" thumb="https://plex.tv/users/7d9db1c60ea50721/avatar?c=1630931305" title="mpiva" />
<Player address="192.168.5.223" device="webOS 6.3.2" machineIdentifier="lf6kcae8yzn5o1ef8tyfiewd" model="OLED65G1PUA" platform="webOS" platformVersion="6.3.2" product="Plex for LG" remotePublicAddress="179.26.230.92" title="LG OLED65G1PUA" vendor="LG" version="5.62.0" local="1" relayed="0" secure="0" userID="1" />
<Variants>
<Variant id="a1ec70e6-2eef-4502-9cd4-e9f272939146" targetBitrate="3283" context="streaming" subtitleDecision="copy" protocol="http" container="ass" transcodeHwRequested="0" transcodeHwFullPipeline="0">
<Media audioProfile="lc" id="543231" videoProfile="high" container="ass" duration="136213" selected="1">
<Part audioProfile="lc" id="552076" videoProfile="high" container="ass" duration="136213" decision="transcode" selected="1">
<Stream codec="ass" default="1" displayTitle="English Forced (ASS)" extendedDisplayTitle="English (Forced ASS)" forced="1" format="ass" id="1887849" language="English" languageCode="eng" languageTag="en" selected="1" streamType="3" title="English" decision="copy" location="embedded" />
</Part>
</Media>
</Variant>
</Variants>
<SegmentList />
<PlaybackReports />
<StateReports />
<StateReports />
</SessionReport>
Server transcoding decision IDK why.
Jun 16, 2023 23:43:37.927 [4944] DEBUG - [Req#57edf/Transcode] TranscodeUniversalRequest: adapting profile with augmentation data: add-transcode-target(type=videoProfile&context=streaming&protocol=hls&container=mpegts&videoCodec=h264,hevc,mpeg2video,mpeg4&audioCodec=aac,ac3,eac3,mp2,mp3)+add-limitation(scope=videoAudioCodec&scopeName=mp2&type=upperBound&name=audio.bitrate&value=350)+add-limitation(scope=videoAudioCodec&scopeName=mp3&type=upperBound&name=audio.bitrate&value=350)+add-limitation(scope=videoCodec&scopeName=h264&type=upperBound&name=video.level&value=52)+add-limitation(scope=videoTranscodeTarget&scopeName=h264&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.bitDepth&value=8)+add-limitation(scope=videoTranscodeTarget&scopeName=h264&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.width&value=3840)+add-limitation(scope=videoTranscodeTarget&scopeName=h264&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.height&value=2160)+add-limitation(scope=videoTranscodeTarget&scopeName=hevc&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.bitDepth&value=10)+add-limitation(scope=videoTranscodeTarget&scopeName=hevc&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.width&value=3840)+add-limitation(scope=videoTranscodeTarget&scopeName=hevc&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.height&value=2160)+add-limitation(scope=videoTranscodeTarget&scopeName=mpeg2video&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.bitDepth&value=8)+add-limitation(scope=videoTranscodeTarget&scopeName=mpeg2video&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.width&value=1920)+add-limitation(scope=videoTranscodeTarget&scopeName=mpeg2video&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.height&value=1080)+add-limitation(scope=videoTranscodeTarget&scopeName=mpeg4&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.bitDepth&value=8)+add-limitation(scope=videoTranscodeTarget&scopeName=mpeg4&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.width&value=1920)+add-limitation(scope=videoTranscodeTarget&scopeName=mpeg4&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.height&value=1080)+add-transcode-target(type=subtitleProfile&protocol=http&context=all&subtitleCodec=ass&container=ass)
Jun 16, 2023 23:43:37.928 [4944] DEBUG - [Req#57edf/Transcode] TranscodeUniversalRequest: using augmented profile Generic
Jun 16, 2023 23:43:37.928 [4944] DEBUG - [Req#57edf/Transcode] Downloading document http://127.0.0.1:32400/library/metadata/437026?includeBandwidths=1&offset=-1&X-Plex-Incomplete-Segments=1&X-Plex-Session-Identifier=lf6kcae8yzn5o1ef8tyfiewd
Jun 16, 2023 23:43:37.936 [4944] DEBUG - [Req#57edf/Transcode/Req#57ee0] We're going to try to auto-select an audio stream for account 1.
Jun 16, 2023 23:43:37.936 [4944] DEBUG - [Req#57edf/Transcode/Req#57ee0] Selecting best audio stream for part ID 552076 (language: es)
Jun 16, 2023 23:43:37.936 [4944] DEBUG - [Req#57edf/Transcode/Req#57ee0] Audio Stream: 1887847, Subtitle Stream: 1887849
Jun 16, 2023 23:43:37.938 [4944] DEBUG - [Req#57edf/Transcode] MDE: Selected protocol http; container: ass
Jun 16, 2023 23:43:37.938 [4944] DEBUG - [Req#57edf/Transcode] MDE: analyzing media item 543231
Jun 16, 2023 23:43:37.938 [4944] DEBUG - [Req#57edf/Transcode] MDE: [SubsPlease] Chiikawa - 44 (1080p) [71C5C7A5] (2023): no direct play video profile exists for http/mkv/h264
Jun 16, 2023 23:43:37.938 [4944] DEBUG - [Req#57edf/Transcode] MDE: [SubsPlease] Chiikawa - 44 (1080p) [71C5C7A5] (2023): no direct play video profile exists for http/mkv/h264/aac
Jun 16, 2023 23:43:37.938 [4944] DEBUG - [Req#57edf/Transcode] MDE: [SubsPlease] Chiikawa - 44 (1080p) [71C5C7A5] (2023): transcoding selected subtitle stream
Jun 16, 2023 23:43:37.938 [4944] DEBUG - [Req#57edf/Transcode] MDE: [SubsPlease] Chiikawa - 44 (1080p) [71C5C7A5] (2023): selected media 0 / 543231
Jun 16, 2023 23:43:37.938 [4944] DEBUG - [Req#57edf/Transcode] Streaming Resource: Added session 0000018B3F62C210:lf6kcae8yzn5o1ef8tyfiewd
Jun 16, 2023 23:43:37.938 [4944] DEBUG - [Req#57edf/Transcode] Streaming Resource: Reached Decision id=437026 codes=(MDE=1000,Direct play OK.) media=(id=543231 part=(id=552076 decision=direct play protocol=hls streams=(Video=(id=1887848 decision= width=1920 height=1080) Audio=(id=1887847 decision= channels=0 rate=0) Subtitle=(id=1887849 decision=copy languageCode=eng location=sidecar))))
Jun 16, 2023 23:43:37.939 [12276] DEBUG - Completed: [192.168.5.223:33304] 200 GET /video/:/transcode/universal/decision?directPlay=1&directStream=1&directStreamAudio=1&protocol=hls&fastSeek=1&path=%2Flibrary%2Fmetadata%2F437026&session=5hdlczviwv8szks491prok6v&mediaIndex=0&partIndex=0&mediaBufferSize=50000&hasMDE=1&subtitleSize=100&videoQuality=100&videoResolution=3840x2160&audioBoost=700&subtitles=sidecar&advancedSubtitles=text&location=lan (9 live) #57edf GZIP 12ms 1662 bytes (pipelined: 28)
Jun 16, 2023 23:43:38.043 [4944] DEBUG - Request: [192.168.5.223:33304 (Allowed Network (Subnet))] GET /:/timeline?key=%2Flibrary%2Fmetadata%2F437026&ratingKey=437026&state=buffering&time=0&duration=136213&playbackTime=0&playQueueItemID=177453&context=source%3Ahub.video.recent&row=1&col=14 (9 live) #57ee2 GZIP Signed-in Token (mpiva) (LG OLED65G1PUA)
@markus101 if you want a video, I could PM you or you can use google on the above. is 25Mb.