APPLE TV buffering

Bringing this thread over from another post

I am having a similar issue that just cropped up over the last week or so. Only having playback issues on Apple TV (all three of them). Playback on windows 10 laptop and ios on ipad are fine. Its also only happening to older blu ray rips. Newer ones (last few months) work fine on Apple TV. I update some DVD Fab settings on occasion over time so whatever change I made a few months ago is allowing the newest files (mp4s) to play ok on the apple tv but the vast majority of files are buffering. I updated to the newest version today and that didn’t fix the problem. Switching to “convert automatically” fixes it but displays a much lower resolution than it should, than it used to and whats desired.

pinging @chuckpa

logs attached

Plex Media Server Logs_2020-04-04_13-02-52.zip (3.3 MB)

Thanks.

Now, in isolation, I can see it: The AppleTV is constantly disconnecting / dropping.

Apr 04, 2020 12:59:27.415 [0x7f70ab9a2700] DEBUG - Play progress on 10542 'Mad Men - s02e03 - The Benefactor' - got played 600016 ms by account 1!
Apr 04, 2020 12:59:27.418 [0x7f70ab9a2700] DEBUG - [Now] User is nouvelle_vague (ID: 1)
Apr 04, 2020 12:59:27.418 [0x7f70ab9a2700] DEBUG - [Now] Device is tvOS (Home Theater).
Apr 04, 2020 12:59:27.418 [0x7f70ab9a2700] DEBUG - [Now] Profile is tvOS
Apr 04, 2020 12:59:27.418 [0x7f70ab9a2700] DEBUG - [Now] Updated play state for /library/metadata/10542.
Apr 04, 2020 12:59:27.418 [0x7f70ab9a2700] DEBUG - Statistics: (65348B3C-EF1F-423E-86D4-EB65206B69E3) Reporting active playback in state 0 of type 4 (scrobble: 0) for account 1
Apr 04, 2020 12:59:27.421 [0x7f7108dbd700] DEBUG - Completed: [192.168.86.231:59423] 200 GET /:/timeline?bufferedTime=1&duration=2826943&key=%2Flibrary%2Fmetadata%2F10542&location=lan&playQueueItemID=60202&playbackTime=17363&ratingKey=10542&state=playing&time=600016 (18 live) TLS GZIP 7ms 497 bytes (pipelined: 140)
Apr 04, 2020 12:59:27.512 [0x7f7108dbd700] DEBUG - Auth: authenticated user 1 as nouvelle_vague
Apr 04, 2020 12:59:27.512 [0x7f70fbafa700] DEBUG - Request: [192.168.86.231:51306 (Subnet)] GET /library/parts/25140/1477012386/file.m4v (18 live) TLS Signed-in Token (nouvelle_vague) (range: bytes=405717959-) 
Apr 04, 2020 12:59:27.516 [0x7f70fbafa700] DEBUG - Content-Length of /shares/James/TV/Mad Men/Season 2/Mad Men - s02e03 - The Benefactor.m4v is 1495751101 (of total: 1901469060).
Apr 04, 2020 12:59:27.524 [0x7f7108dbd700] DEBUG - Failed to stream media, client probably disconnected after 557056 bytes: 104 - Connection reset by peer
Apr 04, 2020 12:59:27.524 [0x7f7108dbd700] DEBUG - Completed after connection close: [192.168.86.231:51305] 206 GET /library/parts/25140/1477012386/file.m4v (18 live) TLS 229ms 557056 bytes (range: bytes=402729656-) 
Apr 04, 2020 12:59:27.658 [0x7f7108acf700] DEBUG - Auth: authenticated user 1 as nouvelle_vague
Apr 04, 2020 12:59:27.658 [0x7f70fbafa700] DEBUG - Request: [192.168.86.231:51307 (Subnet)] GET /library/parts/25140/1477012386/file.m4v (18 live) TLS Signed-in Token (nouvelle_vague) (range: bytes=402734776-) 
Apr 04, 2020 12:59:27.661 [0x7f70fbafa700] DEBUG - Content-Length of /shares/James/TV/Mad Men/Season 2/Mad Men - s02e03 - The Benefactor.m4v is 1498734284 (of total: 1901469060).
Apr 04, 2020 12:59:27.682 [0x7f7108dbd700] DEBUG - Failed to stream media, client probably disconnected after 409600 bytes: 104 - Connection reset by peer
Apr 04, 2020 12:59:27.682 [0x7f7108dbd700] DEBUG - Completed after connection close: [192.168.86.231:51306] 206 GET /library/parts/25140/1477012386/file.m4v (18 live) TLS 169ms 409600 bytes (range: bytes=405717959-) 

Which model and tvOS firmware?
When’s the last time the app was removed and reinstalled from Plex?

Also, what does “speed test” (the app installed on tvOS) show for performance?

1 Apple TV 4th generation 64GB - Model A1625 - OS 13.4 - Speed Test 197mpbs up, 16.3 mpbs down
2 Apple TV 4k 32 GB
#1 - Model A1842- OS 13.3.1 - Speed Test 39.1mpbs up, 41.15 mpbs down
#2 - Model A1842 - OS 13.4 - Speed Test 58.3mpbs up, 7.83 mpbs down

Plex was updated (removed and installed) 4/4/2020

Those download speeds can’t be right --or-- that particular one has a problem.

If you get 41.15 down on one A1842 (ATV 4K), you should get almost exactly the same on the other, presuming you didn’t run the tests concurrently.

re-ran them today - got better upload results

1 Apple TV 4th generation 64GB - Model A1625 - OS 13.4 - Speed Test 309mpbs up, 51.4 mpbs down
2 Apple TV 4k 32 GB
#1 - Model A1842- OS 13.3.1 - Speed Test 59 mpbs up, 41.15 mpbs down
#2 - Model A1842 - OS 13.4 - Speed Test 41.2 mpbs up, 40.3 mpbs down

Just realized (my apologies), this is a WD PR4100 ?
How is it connected ? (wired / wifi)

What if the WD is reporting incorrectly?

IF the connection drops between PMS and the player anywhere along the way, PMS will blame the player. That’s the nature of TCP/IP.

What if that’s a red herring?

Apr 04, 2020 12:59:23.980 [0x7f70fbafa700] DEBUG - Content-Length of /shares/James/TV/Mad Men/Season 2/Mad Men - s02e03 - The Benefactor.m4v is 1498767564 (of total: 1901469060).
Apr 04, 2020 12:59:23.990 [0x7f7108dbd700] DEBUG - Failed to stream media, client probably disconnected after 524288 bytes: 104 - Connection reset by peer
Apr 04, 2020 12:59:23.990 [0x7f7108dbd700] DEBUG - Completed after connection close: [192.168.86.231:51286] 206 GET /library/parts/25140/1477012386/file.m4v (18 live) TLS 176ms 524288 bytes (range: bytes=405527940-) 
Apr 04, 2020 12:59:24.115 [0x7f7108acf700] DEBUG - Auth: authenticated user 1 as nouvelle_vague
Apr 04, 2020 12:59:24.115 [0x7f70ab9a2700] DEBUG - Request: [192.168.86.231:51288 (Subnet)] GET /library/parts/25140/1477012386/file.m4v (18 live) TLS Signed-in Token (nouvelle_vague) (range: bytes=405543891-) 
Apr 04, 2020 12:59:24.118 [0x7f70ab9a2700] DEBUG - Content-Length of /shares/James/TV/Mad Men/Season 2/Mad Men - s02e03 - The Benefactor.m4v is 1495925169 (of total: 1901469060).
Apr 04, 2020 12:59:24.131 [0x7f7108dbd700] DEBUG - Failed to stream media, client probably disconnected after 524288 bytes: 104 - Connection reset by peer
Apr 04, 2020 12:59:24.132 [0x7f7108dbd700] DEBUG - Completed after connection close: [192.168.86.231:51287] 206 GET /library/parts/25140/1477012386/file.m4v (18 live) TLS 154ms 524288 bytes (range: bytes=402701496-) 
Apr 04, 2020 12:59:24.317 [0x7f7108acf700] DEBUG - Auth: authenticated user 1 as nouvelle_vague
Apr 04, 2020 12:59:24.318 [0x7f70f97d2700] DEBUG - Request: [192.168.86.231:51289 (Subnet)] GET /library/parts/25140/1477012386/file.m4v (18 live) TLS Signed-in Token (nouvelle_vague) (range: bytes=402704056-) 
Apr 04, 2020 12:59:24.321 [0x7f70f97d2700] DEBUG - Content-Length of /shares/James/TV/Mad Men/Season 2/Mad Men - s02e03 - The Benefactor.m4v is 1498765004 (of total: 1901469060).
Apr 04, 2020 12:59:24.326 [0x7f7108dbd700] DEBUG - Failed to stream media, client probably disconnected after 393216 bytes: 104 - Connection reset by peer
Apr 04, 2020 12:59:24.327 [0x7f7108dbd700] DEBUG - Completed after connection close: [192.168.86.231:51288] 206 GET /library/parts/25140/1477012386/file.m4v (18 live) TLS 211ms 393216 bytes (range: bytes=405543891-) 
Apr 04, 2020 12:59:24.528 [0x7f7108dbd700] DEBUG - Auth: authenticated user 1 as nouvelle_vague
Apr 04, 2020 12:59:24.528 [0x7f70fbafa700] DEBUG - Request: [192.168.86.231:51290 (Subnet)] GET /library/parts/25140/1477012386/file.m4v (18 live) TLS Signed-in Token (nouvelle_vague) (range: bytes=405563371-) 
Apr 04, 2020 12:59:24.534 [0x7f70fbafa700] DEBUG - Content-Length of /shares/James/TV/Mad Men/Season 2/Mad Men - s02e03 - The Benefactor.m4v is 1495905689 (of total: 1901469060).
Apr 04, 2020 12:59:24.550 [0x7f7108acf700] DEBUG - Failed to stream media, client probably disconnected after 1048576 bytes: 104 - Connection reset by peer
Apr 04, 2020 12:59:24.551 [0x7f7108acf700] DEBUG - Completed after connection close: [192.168.86.231:51289] 206 GET /library/parts/25140/1477012386/file.m4v (18 live) TLS 232ms 1048576 bytes (range: bytes=402704056-) ```

Answers in BOLD

Just realized (my apologies), this is a WD PR4100 ? YES
How is it connected ? (wired / wifi) WIRED

What if the WD is reporting incorrectly? HOW CAN I TELL?

IF the connection drops between PMS and the player anywhere along the way, PMS will blame the player. That’s the nature of TCP/IP.

What if that’s a red herring? MAYBE?

I think we do have something in the middle.

The ATV tests themselves show , without doubt, they are fine. — removed from list.
Equipment connecting ATV -> Internet (any switches / routers in path) – removed.

What’s left ?

to be clear the three ATVs are on wifi, but so are the laptops, ipads, etc that can play plex fine. We are using a google wifi mesh system too with one router and five mesh pucks

That’s a whole layer of complexity I can’t account for.

Radio is radio and only one device can transmit on a particular frequency at a time.
I have no idea how their product actually works (no time to study).

It might be placement and how it handles multipath routing when one point is overloaded or weak.

Only way to tell at this point is a full spetrum population and perf test because it seems as if proximity to devices is significant

I ran the mesh test and all the routers came back with strong signals.

I guess, what worries me is i can use a lap top or an ipad in the same room and be farther away from a mesh than the apple tv and the ipad is fine but the apple tv is not.

And the none of the mesh routers have moved since the problem started. Everything was fine and then the next day they werent.

I don’t know what else to turn to.

My education & training would have me pull out an antenna and sprectrum analyzer but that’s not possible from here.

I truly don’t know what else to suggest other than get some of the new thin (it’s REALLY thin) RJ-45 cable. It’s 1/2 the diameter (1/4 the total volume), also cat 6, and flexible. It slides in along side the carpet nailer super easy.

Pic below.

Pen, Regular Cat 6 Ethernet, Thin Cat 6, US Dime (to provide dimension).

Thats greatly appreciated. unfortunately, thats not an option. is there a reason why it works on everything except apple tv? A reason why it used to work like gangbusters and then one day stopped?
I have to believe there is something that changed outside my control and i just need to reconfigure my settings to compensate.

Do you have a length of ethernet cable … Just to use as a test?

Yes, this is a totally wild grasp but it will rule out the wifi in that exact spot.

1 Like

yep and will do

1 Like

I am seeing the same thing using DVDFab to “convert” apple content. I am hardwired (both ATV and PMS) and see these same connection resets. I don’t think this is a network issue.
It is something with the MP4 container as far as I can tell. They play fine on my iPhone and PC web browser. They also play fine directly on my PC. Finally, they play fine on the ATV if I use Infuse.

One thing for you to try and see if this is the same, change your ATV setting to not allow direct play. When I do that, it switched to direct stream and again…works fine. So just rebuilding the container (which is what I think direct stream does) seems to fix the issue.

I would really like to get this solved.
I had posted on this a week or so ago, but it got no traction. I can upload logs here if desired from both the ATV & PMS.

Its Saturday so got around to digging out the ethernet cords and testing this and direct wiring the ATV to the routers didnt fix the problem.

I appreciate this post! I’m not sure how to turn off direct play on the settings? I couldn’t find that. I did turn off Enhanced Video and that did fix the problem on all three atvs so at least we can use plex right now on those devices again, but not at the optimal settings.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.