Roku Ultra buffering on BluRay Rip

Do me a small favor please?

  1. Settings - Server - General - Show Advanced – Turn DEBUG logging back on. (it lets me see what is happening). DEBUG doesn’t use any more space than without. Please keep VERBOSE off unless expressly requested.

  2. When you post again, please also post the media info or XML . It will let me also see what PMS saw as it made decisions.

Sorry! Debug is now on. Verbose is now off.

XML: spiderman.xml.zip (4.6 KB)

Played at 4:26p. Zoomed to 65% and hung. Same as before.

New logs: Plex Media Server Logs_2020-01-11_16-28-43.zip (4.4 MB)

To show you how to save yourself trouble in the future,

<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="2" librarySectionTitle="Movies" librarySectionUUID="d7b5d94a-4e55-471f-b52f-b2e21d1a54f3" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1573134782">
<Video ratingKey="67983" key="/library/metadata/67983" guid="com.plexapp.agents.imdb://tt4633694?lang=en" studio="Columbia Pictures" type="movie" title="Spider-Man: Into the Spider-Verse" librarySectionTitle="Movies" librarySectionID="2" librarySectionKey="/library/sections/2" contentRating="PG" summary="Miles Morales is juggling his life between being a high school student and being a spider-man. When Wilson &#34;Kingpin&#34; Fisk uses a super collider, others from across the Spider-Verse are transported to this dimension." rating="9.7" audienceRating="9.3" viewOffset="421000" lastViewedAt="1573528781" year="2018" tagline="More Than One Wears the Mask" thumb="/library/metadata/67983/thumb/1578783371" art="/library/metadata/67983/art/1578783371" duration="7010048" originallyAvailableAt="2018-12-06" addedAt="1553143751" updatedAt="1578783371" audienceRatingImage="rottentomatoes://image.rating.upright" chapterSource="media" primaryExtraKey="/library/metadata/67984" ratingImage="rottentomatoes://image.rating.ripe">
<Media id="113913" duration="7010048" bitrate="26652" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="dca-ma" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="24p" audioProfile="ma" videoProfile="high">
<Part accessible="1" exists="1" id="116404" key="/library/parts/116404/1553152461/file.mkv" duration="7010048" file="/volume1/video/movies/Spider Man - Into the Spider-Verse/Spider-Man_-_Into_the_Spider-Verse.mkv" size="23359268361" audioProfile="ma" container="mkv" deepAnalysisVersion="4" hasThumbnail="1" requiredBandwidths="33013,31619,28379,27555,27157,27157,27157,27157" videoProfile="high">
<Stream id="211948" streamType="1" codec="h264" index="0" bitrate="21820" language="English" languageCode="eng" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" frameRate="23.976" hasScalingMatrix="0" height="1080" level="41" profile="high" refFrames="2" requiredBandwidths="27997,26603,23274,22479,22350,22350,22350,22350" scanType="progressive" width="1920" displayTitle="1080p (H.264)" />
<Stream id="211949" streamType="2" selected="1" default="1" codec="dca" index="1" channels="6" bitrate="2335" language="English" languageCode="eng" audioChannelLayout="5.1(side)" bitDepth="16" profile="ma" requiredBandwidths="2524,2468,2404,2404,2404,2404,2404,2404" samplingRate="48000" title="Surround 5.1" displayTitle="English (DTS-HD MA 5.1)" />
<Stream id="211950" streamType="2" codec="dca" index="2" channels="6" bitrate="1509" language="English" languageCode="eng" audioChannelLayout="5.1(side)" bitDepth="16" profile="dts" requiredBandwidths="1509,1509,1509,1509,1509,1509,1509,1509" samplingRate="48000" title="Surround 5.1" displayTitle="English (DTS 5.1)" />
<Stream id="211951" streamType="2" codec="ac3" index="3" channels="6" bitrate="640" language="English" languageCode="eng" audioChannelLayout="5.1(side)" requiredBandwidths="640,640,640,640,640,640,640,640" samplingRate="48000" title="Surround 5.1" displayTitle="English (AC3 5.1)" />
<Stream id="211952" streamType="2" codec="ac3" index="4" channels="2" bitrate="192" language="English" languageCode="eng" audioChannelLayout="stereo" requiredBandwidths="192,192,192,192,192,192,192,192" samplingRate="48000" title="Stereo" displayTitle="English (AC3 Stereo)" />
<Stream id="211953" streamType="3" codec="pgs" index="5" bitrate="44" language="English" languageCode="eng" requiredBandwidths="59,59,59,59,59,59,59,59" displayTitle="English (PGS)" />
<Stream id="211954" streamType="3" codec="pgs" index="6" bitrate="32" language="English" languageCode="eng" requiredBandwidths="48,48,48,48,48,48,48,48" displayTitle="English (PGS)" />
<Stream id="211955" streamType="3" codec="pgs" index="7" bitrate="81" language="English" languageCode="eng" requiredBandwidths="84,84,84,84,84,84,84,84" displayTitle="English (PGS)" />
<Stream id="211976" key="/library/streams/211976" streamType="3" codec="srt" language="English" languageCode="eng" displayTitle="English (SRT External)" />
</Part>
</Media>

As for the buffering:

  1. ARMv7 - not the strongest CPU
  2. Database is getting bogged down. Activity looks like it’s ingesting content?
Jan 11, 2020 14:56:30.063 [0x31c82450] ERROR - SSDP: Error parsing device schema for http://169.254.11.27:63444/upnp/xml/devices/ManageableDevice1.xml
Jan 11, 2020 14:56:33.478 [0x365db450] WARN - SLOW QUERY: It took 450.000000 ms to retrieve 10 items.
Jan 11, 2020 14:56:45.373 [0x31c82450] ERROR - Error issuing curl_easy_perform(handle): 28
Jan 11, 2020 14:56:45.373 [0x31c82450] ERROR - SSDP: Error parsing device schema for http://169.254.8.239:63444/upnp/xml/devices/ManageableDevice1.xml
Jan 11, 2020 14:57:00.423 [0x31c82450] ERROR - Error issuing curl_easy_perform(handle): 28
Jan 11, 2020 14:57:00.423 [0x31c82450] ERROR - SSDP: Error parsing device schema for http://169.254.10.229:49153/description.xml
Jan 11, 2020 14:57:15.453 [0x31c82450] ERROR - Error issuing curl_easy_perform(handle): 28
Jan 11, 2020 14:57:15.453 [0x31c82450] ERROR - SSDP: Error parsing device schema for http://169.254.11.27:63444/upnp/xml/devices/ManageableDevice1.xml
Jan 11, 2020 14:57:18.280 [0x34320450] INFO - Library section 2 (Movies) will be updated because of a change in '"/volume1/video/movies/Spider Man - Into the Spider-Verse"/Spider-Man_-_Into_the_Spider-Verse_-_Alternate_Universe_Mode.mkv'
Jan 11, 2020 14:57:22.555 [0x3b26f450] WARN - Held transaction for too long (../Library/MetadataRelation.cpp:122): 0.120000 seconds
Jan 11, 2020 14:57:22.560 [0x3b26f450] WARN - Held transaction for too long (../Library/MetadataItem.cpp:778): 0.130000 seconds
Jan 11, 2020 14:57:22.938 [0x3b26f450] WARN - Held transaction for too long (../Library/MediaItem.cpp:773): 0.200000 seconds
Jan 11, 2020 14:57:24.311 [0x391b7450] WARN - SLOW QUERY: It took 900.000000 ms to retrieve 51 items.
Jan 11, 2020 14:57:24.364 [0x365db450] WARN - SLOW QUERY: It took 1020.000000 ms to retrieve 50 items.
Jan 11, 2020 14:57:30.463 [0x31c82450] ERROR - Error issuing curl_easy_perform(handle): 28
Jan 11, 2020 14:57:30.463 [0x31c82450] ERROR - SSDP: Error parsing device schema for http://169.254.8.239:63444/upnp/xml/devices/ManageableDevice1.xml
Jan 11, 2020 14:57:43.090 [0x3a0db450] WARN - SLOW QUERY: It took 460.000000 ms to retrieve 16 items.
Jan 11, 2020 14:57:43.277 [0x362ed450] WARN - SLOW QUERY: It took 730.000000 ms to retrieve 51 items.
Jan 11, 2020 14:57:46.443 [0x31c82450] ERROR - Error issuing curl_easy_perform(handle): 28
  1. Not sure where this bad Certificate warning is coming from but it doesn’t like it.
Token (thockin)
Jan 11, 2020 16:20:08.322 [0x379ed450] DEBUG - Content-Length is -1 (of total: -1).
Jan 11, 2020 16:20:17.384 [0x2f9f4450] DEBUG - CERT: incomplete TLS handshake: sslv3 alert bad certificate
Jan 11, 2020 16:20:17.395 [0x2fd01450] DEBUG - CERT: incomplete TLS handshake: sslv3 alert bad certificate
Jan 11, 2020 16:20:17.589 [0x2fd01450] DEBUG - CERT: incomplete TLS handshake: sslv3 alert bad certificate
Jan 11, 2020 16:20:17.596 [0x2fd01450] DEBUG - CERT: incomplete TLS handshake: sslv3 alert bad certificate
Jan 11, 2020 16:20:28.334 [0x2fd01450] DEBUG - Completed: [10.5.69.47:40370] 200 GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (8 live) TLS GZIP 20014ms 5 bytes (pipelined: 124)
Jan 11, 2020 16:20:28.345 [0x2f9f4450] DEBUG - Auth: authenticated user 1 as thockin

If it’s trying to use PGS subtitles, as shown above, the ARMv7 CPU will always buffer. It’s not strong enough to handle them in real time. The same would be true if it has to burn SRT subtitles.

I don’t see the start of a playback session to determine what’s happening. If you could do that for me now, with DEBUG still on, that would be great

I specifically told it to use SRT (or no subs at all). Why is it trying to use PGS?

I did try to play back. That log was it. I am trying again. This time I disabled even the SRT.

Roku app’s “settings/playback” menu for this title says:

  • Quality: 26.7 Mbps 1080P (original)
  • Direct Play: Force
  • Allow Direct Stream: checked
  • Roku Captions Mode: Off
  • Burn Subtitles: Automatic

Roku app’s “settings/streams” menu for this title says:

  • Subtitles: None
  • Audio: English (DTS-HD MA 5.1)
  • Video: 1080p (H.264)

Plex Media Server Logs_2020-01-11_19-56-26.zip (3.6 MB)

In this log, I started playback at 19:50 and it failed at 19:52. I see “Failed to stream media, client probably disconnected after 69861376 bytes: 104 - Connection reset by peer” at 19:52. No idea why.

To refresh: I know the server CPU is wimpy. I do not want any transcoding. That’s why I have SRT subs downloaded and direct play enabled.

There’s really nothing else going on on this server. It’s a Synology, and CPU usage was low the whole time.

The same files play fine through RasPlex.

It’s only Plex on Roku that is hitting problems, and only some titles.

I have no idea where another cert came from. How can I try to track that down? What is it accessing (or who is accessing it) with a bad cert?

Thanks!

Any further thoughts on this?

Tim

Is there more I can do here? I am dead in the water with what FEELS like a problem in Plex-for-Roku

1 Like

I hate to be a pest, I really do, but I am unable to move on this without assistance. Am I wrong to asset that this is a bug in Plex? It sure seems that way.

1 Like

Pinging again. As far as I can tell, the Plex/Roku app is doing something wrong.

@ChuckPa said " If it’s trying to use PGS subtitles, as shown above", but as far as I can tell I have turned OFF the subtitles. “The same would be true if it has to burn SRT subtitles.” UP-thread you said “SRT … which the clients can handle without burning in”. So I got SRT, and it still doesn’t work.

1 Like

I am very sorry for having missed this. I’ve been very heavily loaded with linux.

To catch us up to current, would you please attempt a playback again?

let it play for only a few seconds then stop
wait about 60 seconds for the logs to flush (there’s a logging bug in PMS now)
Download the ZIP file and attach it.
I will see what it’s trying to do now.

Thanks @ChuckPa - I understand being very swamped and how hard-to-track issues fall into cracks. :slight_smile:

I will do as you ask tonight when I get home.

Roku app’s “settings/playback” menu for this title says:

Quality: 26.7 Mbps 1080P (original)
Direct Play: Force
Allow Direct Stream: checked
Roku Captions Mode: Off
Burn Subtitles: Automatic

Roku app’s “settings/streams” menu for this title says:

Subtitles: None
Audio: English (DTS-HD MA 5.1)
Video: 1080p (H.264)

Playback of Spider-Man started at 9:11p.

It raced to 65% and hung. I let it spin for about 20 seconds and then cancelled it.

I waited > 2 minutes to download logs.

Logs are attached. Plex Media Server Logs_2020-02-03_21-14-58.zip (5.5 MB)

Pinging this after a week. I still can’t play Plex on Roku.

Another week later.

Hi, another week has gone by - is there any resolution possible here? Or am I screaming into the void? Sorry, I am getting a bit frustrated…

Hello,

Another week…

@ChuckPa

I’m still stuck on this. Is there anything more I can do or is this now in the backlog of “weird things that don’t impact enough people to get real attention” ?

This isn’t a common issue for sure, but we’d definitely like to understand what’s happening so we can find a solution. There is noting in the logs to indicate a problem, other than something about the media the Roku doesn’t like. What we see in the logs, is that the Roku firmware is direct playing the file, and simply times out with no additional errors. This is rare, but it can happen and normally is something with the media the Roku is hanging on. With that said, we do need the source to replicate this in house to debug the issue. We can work with a sample at first, which should drastically reduce the file size since it’s large. This article explains how to generate a sample https://support.plex.tv/articles/201035968-generating-sample-files-from-media/.

Once you have generated the sample, please add that sample to your server and verify you can still replicate the issue. Sometimes the generation of the sample fixes the unknown issue. If the sample does exhibit the issue, please send that over with a link in a DM.

@ljunkie @ChuckPa

I messaged @ljunkie with the Media file. But it’s so small I am posting here, too.

The below media file loads to 65% on my Roku and then hangs. Always at exactly 65% on the screen. I tried naming it to another movie and the same.

SpiderVerse.mkv.gz (3.6 MB)

@thockin I was able to test the sample, and it looks corrupt. I am assuming it’s just the sample though. It’s way to small to test, and it doesn’t work in any player, even outside of Plex. Could you create a sample that is at least a couple hundred megabytes. You can share a link using a cloud sharing service like google drive, dropbox, one drive, etc. Happy to troubleshoot once we have that sample.

New sample sent to @ljunkie - 160 MB.

I re-ripped the Blu-Ray with a newer version of software, same problems.