[Ubuntu] Transcoded files fail on playback

For my plex setup I have a server running unraid that exposes shares on my network.  I have an Ubuntu pc that has plex installed, this PC mounts those shares and they are added as libraries in plex. Any file that can direct stream seems to do just fine.  But any file that plex attempts to transcode appears to fail. When I play a file that fails, the plex log always seems to have an entry like the following:

 

May 05, 2015 19:56:36 [0x7fa187bff700] ERROR - Couldn't find the file to stream: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media/localhost/1/2c9cb4f5f9c77c9eb49d9baae7f54c9115661d8.bundle/Contents/Subtitles/en/com.plexapp.agents.opensubtitles_8e1099b74f73f3f87a5794e6e1eedcbba3973a7b.srt
May 05, 2015 19:56:36 [0x7fa18a3ff700] ERROR - [Transcoder] /media/plexmedia/plex-transcode-ztcwxv6wxe9izfr-6aef0fe7-7e7c-4c6d-b601-767ba26ad44e/temp-0.srt: Invalid data found when processing input
May 05, 2015 19:56:36 [0x7fa188bfc700] ? - [Transcoder]
May 05, 2015 19:56:37 [0x7fa190bff700] ERROR - Failed to start session successfully.
 
 
I have attached my logs

I should also mention that if I try to play the file directly, it works just fine.

I have been having the same problem with the same setup. When I log into my ubuntu machine running on my vmware host I see that the transcoder failed. It usually takes a reboot of the the ubuntu plex machine to get the videos playing again. I just updated to the current version of Plex today but it has been happing for the last 6-8 months worth of releases for me. Please let me know if I can assist with this to provide logs etc.

any updates on this? I am still having the same problems.

Same here. I’m willing to investigate and provide logs if this thread is still active :confused:

@Twann said:
Same here. I’m willing to investigate and provide logs if this thread is still active :confused:

As this thread is 10 months old it would be helpful if you could post your log file.
How much free HDD space do you have available to the transcode temp folder?

Hi !

Please see the log file below.

! ❯ tail -f /mnt/pool/jails/plex/usr/local/plexdata-plexpass/Plex\ Media\ Server/Logs/Plex\ Media\ Server.log
! Apr 04, 2016 20:46:20 [0x80b097c00] WARN - Got a request to stop a transcode session without a session GUID (or with an invalid one).
! Apr 04, 2016 20:46:20 [0x80a1fd800] DEBUG - Completed: [172.16.1.1:48142] GET /video/:/transcode/universal/stop?session=2xhn6tqzmjd2q2cz9keyn45cdi (5 live) TLS GZIP 1ms 231 bytes 200
! Apr 04, 2016 20:46:20 [0x80b09c800] DEBUG - Client [a7145962-1e3e-4d3a-983c-572ff2679b16] reporting timeline state stopped, progress of 0/2501688ms for guid=, ratingKey=91 url=, key=/library/metadata/91, containerKey=, metadataId=91
! Apr 04, 2016 20:46:20 [0x80b09c800] DEBUG - [Now] User is Twann (ID: 1)
! Apr 04, 2016 20:46:20 [0x80b09c800] DEBUG - [Now] Device is Chrome (Plex Web (Chrome)).
! Apr 04, 2016 20:46:20 [0x80b09c800] DEBUG - [Now] Updated play state for /library/metadata/91.
! Apr 04, 2016 20:46:20 [0x80b09c800] DEBUG - Statistics: (a7145962-1e3e-4d3a-983c-572ff2679b16) Reporting active playback in state 3 of type 4 (scrobble: 0) for account 1
! Apr 04, 2016 20:46:20 [0x80a1fd400] DEBUG - Completed: [172.16.1.1:48140] GET /:/timeline?ratingKey=91&key=%2Flibrary%2Fmetadata%2F91&state=stopped&playQueueItemID=100&time=0&duration=2501688 (5 live) TLS GZIP 9ms 231 bytes 200
! Apr 04, 2016 20:46:24 [0x80a297800] WARN - NetworkServiceBrowser: Error sending out discover packet: send_to: Can’t assign requested address
! Apr 04, 2016 20:46:24 [0x80a297800] WARN - NetworkServiceBrowser: Error sending out discover packet: send_to: Can’t assign requested address
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Request: [172.16.1.1:48140] POST /playQueues?type=video&uri=library%3A%2F%2F50ba8a59-c60d-4740-ac07-da7a2044e2db%2Fitem%2F%252Flibrary%252Fmetadata%252F91&shuffle=0&repeat=0&includeChapters=1 (5 live) TLS GZIP
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - PlayQueue: 0 generated IDs compressed down to a 2 byte blob.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - PlayQueue: Start index: 0 End index: 0 Count: 1
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - PlayQueue: 1 generated IDs compressed down to a 24 byte blob.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - PlayQueue: Added 1 items in 0.0 sec.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - We’re going to try to auto-select an audio stream for account 1.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Selecting best audio stream for part ID 95 (autoselect: 1 language: fr)
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - We’re going to try to auto-select a subtitle.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - We found a suitable native subtitle language [fre] for a foreign film.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - We found a suitable native sidecar subtitle language [fre] for a foreign film.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Audio Stream: 309, Subtitle Stream: 294
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - It took 0.0 sec to serialize a list with 1 elements.
! Apr 04, 2016 20:46:29 [0x80a1fd800] DEBUG - Completed: [172.16.1.1:48140] POST /playQueues?type=video&uri=library%3A%2F%2F50ba8a59-c60d-4740-ac07-da7a2044e2db%2Fitem%2F%252Flibrary%252Fmetadata%252F91&shuffle=0&repeat=0&includeChapters=1 (5 live) TLS GZIP 19ms 1591 bytes 200 (pipelined: 2)
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Request: [172.16.1.1:48140] GET /library/metadata/91?checkFiles=1&includeChapters=1 (5 live) TLS GZIP
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Updating part with ID=95 [/mnt/media/TV/The 100/Season 03/The 100 - S03E05 - Hakeldama.mkv]
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - We’re going to try to auto-select an audio stream for account 1.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Selecting best audio stream for part ID 95 (autoselect: 1 language: fr)
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - We’re going to try to auto-select a subtitle.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - We found a suitable native subtitle language [fre] for a foreign film.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - We found a suitable native sidecar subtitle language [fre] for a foreign film.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Audio Stream: 309, Subtitle Stream: 294
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - It took 0.0 sec to serialize a list with 1 elements.
! Apr 04, 2016 20:46:29 [0x80a1fd800] DEBUG - Completed: [172.16.1.1:48140] GET /library/metadata/91?checkFiles=1&includeChapters=1 (5 live) TLS GZIP 17ms 1545 bytes 200 (pipelined: 3)
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Request: [172.16.1.1:48144] GET /video/:/transcode/universal/start?path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F91&mediaIndex=0&partIndex=0&protocol=http&offset=0&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&session=i8hrvaun8x3f1epv8itchaor&subtitles=burn&copyts=1&Accept-Language=fr&X-Plex-Chunked=1&X-Plex-Product=Plex%20Web&X-Plex-Version=2.5.10&X-Plex-Client-Identifier=a7145962-1e3e-4d3a-983c-572ff2679b16&X-Plex-Platform=Chrome&X-Plex-Platform-Version=49.0&X-Plex-Device=Linux&X-Plex-Device-Name=Plex%20Web%20%28Chrome%29&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6 live) TLS
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Found session GUID of i8hrvaun8x3f1epv8itchaor in session start.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - TranscodeUniversalRequest: using profile Web
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/91?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&checkFiles=1
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/metadata/91?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&checkFiles=1
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Request: [127.0.0.1:13813] GET /library/metadata/91?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&checkFiles=1 (7 live) GZIP
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Updating part with ID=95 [/mnt/media/TV/The 100/Season 03/The 100 - S03E05 - Hakeldama.mkv]
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - We’re going to try to auto-select an audio stream for account 1.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Selecting best audio stream for part ID 95 (autoselect: 1 language: fr)
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - We’re going to try to auto-select a subtitle.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - We found a suitable native subtitle language [fre] for a foreign film.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - We found a suitable native sidecar subtitle language [fre] for a foreign film.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Audio Stream: 309, Subtitle Stream: 294
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - It took 0.0 sec to serialize a list with 1 elements.
! Apr 04, 2016 20:46:29 [0x80a1fd400] DEBUG - Completed: [127.0.0.1:13813] GET /library/metadata/91 (7 live) GZIP 16ms 1443 bytes 200
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - MDE: analyzing media item 95
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - MDE: E05 - Hakeldama: Direct Play is disabled
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - MDE: E05 - Hakeldama: selected subtitle cannot be converted to a compatible format, burning into video stream
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - MDE: E05 - Hakeldama: avoiding video remux due to burned subtitle stream
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - MDE: E05 - Hakeldama: no remuxable profile found, so video stream will be transcoded
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - MDE: computed resolution bounding box of 1280x720.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Scaled up video bitrate to 3145Kbps based on 4.500000x fudge factor.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - MDE: E05 - Hakeldama: selected media 0 / 95
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Cleaning directory for session i8hrvaun8x3f1epv8itchaor ()
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Starting a transcode session i8hrvaun8x3f1epv8itchaor at offset -1.0 (state=2)
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - [Universal] Using local file path instead of URL: /mnt/media/TV/The 100/Season 03/The 100 - S03E05 - Hakeldama.mkv
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/streams/294?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
! Apr 04, 2016 20:46:29 [0x80b09c800] DEBUG - Request: [127.0.0.1:52715] GET /library/streams/294?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (7 live) GZIP
! Apr 04, 2016 20:46:29 [0x80b09c800] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
! Apr 04, 2016 20:46:29 [0x80b09c800] DEBUG - Auth: Came in with a super-token, authorization succeeded.
! Apr 04, 2016 20:46:29 [0x80b09c800] DEBUG - Content-Length of /mnt/media/TV/The 100/Season 03/The 100 - S03E05 - Hakeldama.fr.srt is 46900.
! Apr 04, 2016 20:46:29 [0x80a1fd400] DEBUG - Completed: [127.0.0.1:52715] GET /library/streams/294 (7 live) GZIP 6ms 46900 bytes 200
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Detected character set of UTF-8.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Downloaded stream from [127.0.0.1:32400/library/streams/294?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx] (codec: srt) to temporary file [/usr/local/plexdata-plexpass/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-i8hrvaun8x3f1epv8itchaor-e2d79e6e-cdfb-4460-a9f5-8ad845726c3b/temp-0.srt]
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - TranscodeJobManager: [Running] onTranscodeSessionStarted: i8hrvaun8x3f1epv8itchaor
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - TranscodeJobManager: [Running] → [Throttled]
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Job running: XDG_CACHE_HOME=‘/usr/local/plexdata-plexpass/Plex Media Server/Cache/’ XDG_DATA_HOME=‘/usr/local/share/plexmediaserver-plexpass/Resources/’ ‘/usr/local/share/plexmediaserver-plexpass/Resources/Plex New Transcoder’ ‘-i’ ‘/mnt/media/TV/The 100/Season 03/The 100 - S03E05 - Hakeldama.mkv’ ‘-i’ ‘/usr/local/plexdata-plexpass/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-i8hrvaun8x3f1epv8itchaor-e2d79e6e-cdfb-4460-a9f5-8ad845726c3b/temp-0.srt’ ‘-map_inlineass’ ‘1:s:0’ ‘-filter_complex’ ‘[0:0]scale=w=min(1280,iw):h=min(720,ih):force_original_aspect_ratio=decrease,inlineass=font_scale=1.000000:font_path=/usr/local/share/plexmediaserver-plexpass/Resources/Fonts/DejaVuSans-Regular.ttf:fontconfig_file=/usr/local/share/plexmediaserver-plexpass/Resources/fonts.conf[0]’ ‘-map’ ‘[0]’ ‘-codec:0’ ‘libx264’ ‘-crf:0’ ‘18’ ‘-pix_fmt:0’ ‘yuv420p’ ‘-maxrate:0’ ‘3145k’ ‘-bufsize:0’ ‘6290k’ ‘-r:0’ ‘23.975999999999999’ ‘-preset:0’ ‘veryfast’ ‘-x264opts:0’ ‘cabac=0:8x8dct=1:bframes=0:subme=2:me_range=4:rc_lookahead=10:me=hex:8x8dct=1’ ‘-map’ ‘0:1’ ‘-codec:1’ ‘copy’ ‘-copypriorss:1’ ‘0’ ‘-f’ ‘matroska’ ‘-avoid_negative_ts’ ‘disabled’ ‘-map_metadata’ ‘-1’ ‘-map_chapters’ ‘-1’ ‘-’ ‘-map’ ‘1:s:0’ ‘-f’ ‘null’ ‘-codec’ ‘copy’ ‘nullfile’ ‘-start_at_zero’ ‘-copyts’ ‘-y’ ‘-nostats’ ‘-loglevel’ ‘quiet’ ‘-loglevel_plex’ ‘error’ ‘-progressurl’ ‘http://127.0.0.1:32400/video/:/transcode/session/i8hrvaun8x3f1epv8itchaor/progress
! Apr 04, 2016 20:46:29 [0x80a297800] WARN - NetworkServiceBrowser: Error sending out discover packet: send_to: Can’t assign requested address
! Apr 04, 2016 20:46:29 [0x80a297800] WARN - NetworkServiceBrowser: Error sending out discover packet: send_to: Can’t assign requested address
! Apr 04, 2016 20:46:29 [0x80b09f400] INFO - [Transcoder] Input #0, matroska,webm, from ‘/mnt/media/TV/The 100/Season 03/The 100 - S03E05 - Hakeldama.mkv’:
! Metadata:
! title : PSArips.com | The.100.S03E05.720p.HDTV.2CH.x265.HEVC-PSA
! encoder : libebml v1.3.3 + libmatroska v1.4.4
! creation_time : 2016-02-19 06:53:05
! Duration: 00:41:41.69, start: 0.000000, bitrate: 699 kb/s
! Stream #0:0, 3, 1/1000: Video: hevc (Main), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
! Metadata:
! BPS : 621743
! BPS-eng : 621743
! DURATION : 00:41:41.583000000
! DURATION-eng : 00:41:41.583000000
! NUMBER_OF_FRAMES: 59978
! NUMBER_OF_FRAMES-eng: 59978
! NUMBER_OF_BYTES : 194418005
! NUMBER_OF_BYTES-eng: 194418005
! _STATISTICS_WRITING_APP: mkvmerge v8.8.0 (‘Wind at my back’) 64bit
! _STATISTICS_WRITING_APP-eng: mkvmerge v8.8.0 (‘Wind at my back’) 64bit
! _STATISTICS_WRITING_DATE_UTC: 2016-02-19 06:53:05
! _STATISTICS_WRITING_DATE_UTC-eng: 2016-02-19 06:53:05
! _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
! _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
! Stream #0:1, 8, 1/1000: Audio: aac (HE-AAC), 48000 Hz, stereo, fltp (default)
! Metadata:
! title : Stereo
! BPS : 75578
! BPS-eng : 75578
! DURATION : 00:41:41.547000000
! DURATION-eng : 00:41:41.547000000
! NUMBER_OF_FRAMES: 58630
! NUMBER_OF_FRAMES-eng: 58630
! NUMBER_OF_BYTES : 23632960
! NUMBER_OF_BYTES-eng: 23632960
! _STATISTICS_WRITING_APP: mkvmerge v8.8.0 (‘Wind at my back’) 64bit
! _STATISTICS_WRITING_APP-eng: mkvmerge v8.8.0 (‘Wind at my back’) 64bit
! _STATISTICS_WRITING_DATE_UTC: 2016-02-19 06:53:05
! _STATISTICS_WRITING_DATE_UTC-eng: 2016-02-19 06:53:05
! _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
! _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
! Stream #0:2, 0, 1/1000:
! Apr 04, 2016 20:46:29 [0x80b09c800] ERROR - [Transcoder] /usr/local/plexdata-plexpass/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-i8hrvaun8x3f1epv8itchaor-e2d79e6e-cdfb-4460-a9f5-8ad845726c3b/temp-0.srt: Invalid data found when processing input
! Apr 04, 2016 20:46:29 [0x80b09f400] ? - [Transcoder]
! Apr 04, 2016 20:46:29 [0x80b097400] ERROR - Failed to start session successfully.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Cleaning directory for session i8hrvaun8x3f1epv8itchaor (/usr/local/plexdata-plexpass/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-i8hrvaun8x3f1epv8itchaor-e2d79e6e-cdfb-4460-a9f5-8ad845726c3b)
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Killing job.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Signalling job ID 27960 with 9
! Apr 04, 2016 20:46:29 [0x80a1fd800] DEBUG - Completed: [172.16.1.1:48144] GET /video/:/transcode/universal/start?path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F91&mediaIndex=0&partIndex=0&protocol=http&offset=0&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&session=i8hrvaun8x3f1epv8itchaor&subtitles=burn&copyts=1&Accept-Language=fr (7 live) TLS 101ms 251 bytes 404
! Apr 04, 2016 20:46:29 [0x80b09c800] DEBUG - Request: [172.16.1.1:48140] OPTIONS /:/timeline?ratingKey=91&key=%2Flibrary%2Fmetadata%2F91&state=error&playQueueItemID=101&time=0&duration=2501688 (6 live) TLS GZIP
! Apr 04, 2016 20:46:29 [0x80a1fd800] DEBUG - Completed: [172.16.1.1:48140] OPTIONS /:/timeline?ratingKey=91&key=%2Flibrary%2Fmetadata%2F91&state=error&playQueueItemID=101&time=0&duration=2501688 (6 live) TLS GZIP 0ms 516 bytes 200 (pipelined: 4)
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Request: [172.16.1.1:48142] GET /:/timeline?ratingKey=91&key=%2Flibrary%2Fmetadata%2F91&state=error&playQueueItemID=101&time=0&duration=2501688 (6 live) TLS GZIP
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Client [a7145962-1e3e-4d3a-983c-572ff2679b16] reporting timeline state error, progress of 0/2501688ms for guid=, ratingKey=91 url=, key=/library/metadata/91, containerKey=, metadataId=91
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - [Now] User is Twann (ID: 1)
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - [Now] Device is Chrome (Plex Web (Chrome)).
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - [Now] Updated play state for /library/metadata/91.
! Apr 04, 2016 20:46:29 [0x80b09f400] DEBUG - Statistics: (a7145962-1e3e-4d3a-983c-572ff2679b16) Reporting active playback in state 0 of type 4 (scrobble: 0) for account 1
! Apr 04, 2016 20:46:29 [0x80b09f000] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/91
! Apr 04, 2016 20:46:29 [0x80b09f000] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
! Apr 04, 2016 20:46:29 [0x80b09f000] DEBUG - Auth: Came in with a super-token, authorization succeeded.
! Apr 04, 2016 20:46:29 [0x80a1fd800] DEBUG - Completed: [172.16.1.1:48142] GET /:/timeline?ratingKey=91&key=%2Flibrary%2Fmetadata%2F91&state=error&playQueueItemID=101&time=0&duration=2501688 (6 live) TLS GZIP 9ms 231 bytes 200 (pipelined: 2)
! Apr 04, 2016 20:46:29 [0x80b09f000] DEBUG - We found a suitable native subtitle language [fre] for a foreign film.
! Apr 04, 2016 20:46:29 [0x80b09f000] DEBUG - We found a suitable native sidecar subtitle language [fre] for a foreign film.
! Apr 04, 2016 20:46:29 [0x80b09f000] DEBUG - It took 0.0 sec to serialize a list with 1 elements.
! Apr 04, 2016 20:46:29 [0x80b09f000] DEBUG - Caching document http://127.0.0.1:32400/library/metadata/91 as 3793ad05c00cee988f2b2b84c85edeab82130647
! Apr 04, 2016 20:46:29 [0x80b09f000] DEBUG - [Now] Added metadata for /library/metadata/91.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Request: [172.16.1.1:48142] GET /status/sessions (5 live) TLS GZIP
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - [Now] Adding 1 sessions.
! Apr 04, 2016 20:46:29 [0x80b097400] DEBUG - It took 0.0 sec to serialize a list with 1 elements.
! Apr 04, 2016 20:46:29 [0x80a1fd800] DEBUG - Completed: [172.16.1.1:48142] GET /status/sessions (5 live) TLS GZIP 2ms 1618 bytes 200 (pipelined: 3)
! Apr 04, 2016 20:46:29 [0x80b09c800] DEBUG - Request: [172.16.1.1:48142] GET /status/sessions (5 live) TLS GZIP
! Apr 04, 2016 20:46:29 [0x80b09c800] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
! Apr 04, 2016 20:46:29 [0x80b09c800] DEBUG - Auth: Came in with a super-token, authorization succeeded.
! Apr 04, 2016 20:46:29 [0x80b09c800] DEBUG - [Now] Adding 1 sessions.
! Apr 04, 2016 20:46:29 [0x80b09c800] DEBUG - It took 0.0 sec to serialize a list with 1 elements.
! Apr 04, 2016 20:46:29 [0x80a1fd800] DEBUG - Completed: [172.16.1.1:48142] GET /status/sessions (5 live) TLS GZIP 2ms 1618 bytes 200 (pipelined: 4)

Free space is not an issue, multiple TiB.

I’ve been able to circumvent the problem by playing the file without subtitles, so I inspected the subtitles files and they were encoded using UTF8 with BOM. Converting files to UTF8 resolved my problem and I could play the file.

How can we eventually fix this in a permanent way ? Could Plex Media Transcoder handle that and convert files on the fly ?

Hope this helps ! Cheers !

For what it’s worth, here’s how I fixed all my library in one go :

cd path/to/your/media/library
sed -i '' '1 s/^\xef\xbb\xbf//' ./*/*/*.srt

The ./*/*/*.srt part will work because my library is organized like this :
<show name>/<season ##>/<show name> - <S##><E##> - <episode name.srt>

:wink:

I just stumbled onto this thread, looked at the log file and found something which, while not having direct impact on Plex that I know of currently, will help ‘clean up’ your media if you’re a purist and also access your media through other players like VLC.

In mkvmerge, you can disable the track statistics being written. In the gui, the ‘extra options’ and you can also set it in preferences. “–disable-track-statistics-tags”

Lastly, for those videos where the title is something unwanted or influencing Plex or another player, you can clear it:

mkvpropedit -s title="" filename.mkv

If your videos have ‘und’ as the language for the video or audio track, and you wish to put your native language (eng in my case):

mkvpropedit "$1" --edit track:a1 --set language=eng
mkvpropedit "$1" --edit track:v1 --set language=eng

Nice ! Thanks ChuckPa, that’s actually a super nice tip ! I may try to start a small project to build a tool to clean up media files.

To the other issue : I had the problem reproduce yesterday eve while trying to play a file with embedded subtitles (mkv).

Anyone has an idea how to check if :
A) The embedded subs are encoded with “UTF8 with BOM” ?
B) The temporary generated srt from the transcode is encoded with “UTF8 with BOM” ?
C) There is a way to convert embedded subtitles’s inside the mkv file ?
D) Plex could be running under an incompatible LANG* env vars ?

FYI, I’m running FreeNAS 9.3, inside a jail (not the plugin).

Cheers ! :slight_smile:

Twann,

By default, Plex does not set locale variables. It assumes they are in your .profile/.login and set when you log in or you will set them system-global.

Environment variables of interest are:

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

*edit as appropriate to your locale.

you may also use mkvtoolnix to strip or extract a subtitle ‘stream’ from a MKV.

Hi !

So I checked a number of things :
A) The embedded subs are encoded with “UTF8 with BOM” ?
Will not happen as everything in MKV files is encoded with UTF8 as stated in mkvmerge’s manual

B) The temporary generated srt from the transcode is encoded with “UTF8 with BOM” ?
I have no idea, but I guess no…

C) There is a way to convert embedded subtitles’s inside the mkv file ?
Not needed, see A.

D) Plex could be running under an incompatible LANG* env vars ?
I had a look in the service file for plexmediaserver_plexpass (FreeNAS) and these declarations are present :

export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"

Could the absence of export LANGUAGE=en_US.UTF-8 be an issue ? Again, I guess not as I have several files with accented names and the like and never had any issue with these…

I’ve found some interesting stuff about “cleaning” mkv files here and here. I’ll look into these later. anyway I still have no idea why plex fails playing these subtitles. I think Plex should handle this more nicely.

Regarding the last occurence of the issue, using mkvtoolnix I was able to figure out that the subtitles track of my file (which looks like making Plex fail) was in “forced”. I removed the flag and was able to select another or no subtitles track and it worked.

What else can I do to help devs find out what the real issue is ?

Thanks ChcukPa :wink:

Yes, Plex does handle the internals and should not have such an issue, I will bump this thread up to have it checked in further detail.

With ‘Forced’ subtitles, that is strange. I’ve not experienced it but, again, will bump it up as well.

There will be follow on answers here.

Update:

I found a previously closed (due to no logfiles from the user) about a possible regression with UTF8 vs UTF8 with BOM and am researching further

Thanks a lot ! Feel free to reach out to me if need be :slight_smile:
It’s always nice helping to improve the stuff we use and love !

see above… just made an update.

There is a closed, due to lack of sample data, issue. A possible regression in UTF8 vs UTF8 with BOM subtitle tagging.

Researching further.

Further research is showing that as much information (logfile) as you can share is very helpful.

If you have the time to turn up the verbosity, stop plex, clear all the logs, start plex, and run a test case known to fail, stop plex, and then post up the logs so we have an isolated case… That would be VERY helpful.

Also, the info from ‘mkvinfo’ or ‘mkvtoolnix’ which shows what is seen provides the comparison.

Will do that tonight :wink:

Please be certain to uncheck Settings -> Server -> Show Advanced -> Allow Plex Media Server tokens in logs

This will ensure no private data is posted.

Hi !

Please find log files attached and the result from mkvinfo.

Steps followed :

  1. service plexmediaserver_plexpass stop
  2. echo “” > Plex Media Server.log
  3. service plexmediaserver_plexpass start
  4. Open plex web in chrome
  5. Navigate to the episode
  6. See that have “Français”, “Français (external)”, “English (external)”.
  7. Select “Français (external)”
  8. Click play (-> Plex fails)
  9. Click back to get back to the episode
  10. Select “Français”
  11. Click play (-> Plex works)
  12. service plexmediaserver_plexpass stop

I’m not sure whether Plex is failing to play the embedded subtitles or the external ones, as there is no subtitle files along with the mkv, so I guess it’s the automatic subtitles downloaded from OpenSubtitles.

Hope this helps.

Tell me if you need the other log files, I can reproduce. :slight_smile:

Thank you for that. It’s VERY helpful. For that particular movie, would you please attach the SRT (Subtitles) file so we can check it? This is an issue previously seen but no data was ever sent when it was first encountered.