Direct Play broken on Fire TV Stick with frame rate matching

Server Version#: 1.29.0.6244
Player Version#: 9.10.1.36024

Plex fails to direct play and switches over to transcoding the video (while also burning in compatible subtitles) on my Fire TV Stick 4K.

This happens since a short time all those media played without an issue before.

I noticed, that the culprit is the “frame rate matching” setting. Disabling this setting solves the issue, but leaves me without proper frame rate matching.

1 Like

Oh interesting!! @ChuckPa seems somehow a regression bug has been introduced.

Can you please get both the Server and FireTV Debuug logs which capture this?

If you can, I’ll write it up right away and shoot over there

There you go @ChuckPa.

I played two movies, both with 1080p and 4K versions in library, with and without subtitles, just hitting play and explicitly choosing the 4K version, with and without framematching enabled. Fire Stick 4K connected to an 1080p SDR TV.

Interesting is also that when just hit play, it chooses the 1080p version on one movie (as expected), but the 4K version on the other (I only noticed that after ending my test)…

2022-11-10_Client Log.txt (633.3 KB)
2022-11-10_Plex Media Server.log (998.0 KB)
Framerate matching diabled, just hit play:
Screenshot (29)
Framerate matching disabled, choosing 4K version:
Screenshot (30)
Framerate matching enabled, just hit play:
Screenshot (31)
Framerate matching enabled, choosing 4 K version:
Screenshot (32)
Framerate matching enabled, just hit play:
Screenshot (33)
Framerate matching enabled, choosing 4 K version:
Screenshot (34)
Framerate matching disabled, just hit play:
Screenshot (35)
Framerate matching disabled, choosing 4 K version:
Screenshot (36)

I don’t know why it just converts the container on “gray man” though. I’m sure I had other videos where the video was transcoded even without subtitles present, when framerate matching is enabled.

1 Like

Ok, to add even more data to the issue:

When starting Thor 4 with subtitles DISABLED and framerate matching enabled, Plex chooses to direct stream the container while copying audio and video.
Screenshot (40)
If i then ENABLE the forced subtitle while playing the playback switches to Direct Play.
Screenshot (41)

2022_11_10_Plex Media Server_2.txt (81.5 KB)
2022-11-10_Client Log_2.txt (147.5 KB)

1 Like

@ChuckPa Any news on this topic?

Yes. I must also apologize for not getting back sooner

Resolve mystery #2

When you have subtitles in the file but you DISABLE subtitles, PMS must REMUX the file to strip them out. This is the definition of DirectStream.

When you have the subtitles in the file but leave them ENABLED, PMS can send the file AS-IS WITHOUT MODIFICATION. This is the definition of DirectPlay. (PMS can directly play the file without any alteration of the container or contents)

I am still working on the first issue. I am trying to recreate your scenario using content I’ve ripped from my disks (which I keep as-is at full strength). I have the Spears & Munsil test disks.

I am testing using 1.29.2, FireTV 4K Max, and 2021 LG C1 OLED 48".

Eh lol, no. When a file Direct Plays all tracks only are selected by the player at the client side (no interaction at all at the server side), thats the definition of Direct Play. Of course a file can also direct play, if I disable the subtitle. It does on the EXACT same hardware with framerate matching disabled.

This all comes down to the bug, where for some reason Plex decides that Direct Play is not possible, when framerate matching is enabled.

Now that you’ve slapped me around a bit :fish: , let me go redo what I did and try again.

Sorry for not doing this right the first time.

Sorry, I didn’t mean to sound harsh or anything.
I may have the time to reproduce the issue tomorrow with a Fire TV 4K Max and maybe also a 4K TV, instead of the Fire TV 4K and an 1080p TV.

Did you saw from my logs, that the switching to Direct Stream with framerate matching enabled

 [TranscodeFallbackBehaviour] Detected direct play failed, falling back to transcode (starting: true)

seems to be caused by an error in the AUDIO section:

Suppressed: com.google.android.exoplayer2.audio.u$b: AudioTrack init failed 0 Config(48000, 252, 191998)
			... 13 more
Caused by: com.google.android.exoplayer2.audio.u$e: AudioTrack write failed: -6
	at com.google.android.exoplayer2.audio.g0.k0(SourceFile:206)
	at com.google.android.exoplayer2.audio.g0.Y(SourceFile:24)
	at com.google.android.exoplayer2.audio.g0.f(SourceFile:370)
	at com.google.android.exoplayer2.audio.l0.Y(SourceFile:45)
	at x2.p.b(SourceFile:62)
	at x2.p.render(SourceFile:46)
	at com.google.android.exoplayer2.w1.p(SourceFile:91)
	at com.google.android.exoplayer2.w1.handleMessage(SourceFile:220)
	... 3 more

I just ran the test again.

Do you get this?

Please point and tell me what I’m missing?

what I get:

23.96 fps → 60
23.97 fps → 59.94
24.00 fps → 60
59.94 fps → 59.94

What exactly am I seeing here? From the 60Hz I can at least tell that you have framerate matching disabled?

I have “Refresh Rate Switching” enabled.

There is no “Refresh Rate Matching” setting.

If the problem is it’s selecting the wrong refresh rate – that would make sense with what I see.

Ok, I’m using German interface and am not aware of the exact term.

Will try again tomorrow, but with framerate switching a 24p movie should result in 24Hz, not in 60Hz of course.

You enabled the setting in Plex AND in the Fire TV settings?

1 Like

Thank you. now I see it.

I have video resolution AUTO
I had Match Original Frame Rate: OFF

Retesting.

Thank you for sharing and teaching me :slight_smile:

PS: It is very badly broken. I will sort this out and write it up for the developer.

  1. Forces transcode on video which otherwise is directplay
  2. No playback progression when DirectPlay mode. (Drops packets like crazy)
1 Like

I can confirm I have the same issue. I installed plex on my firestick 4k yesterday and I am getting an error for 4k dolby vision and hdr content if I have Frame Rate Switching enabled in plex. If I set it to off they play but at 60hz which is unacceptable. 1080p SDR content plays fine with Frame Rate Switching and the refresh changes correctly.

Other than that DV plays very well in plex on the fire stick 4k with no stutters as opposed to my shield tube where plex stutters sporadically.

@ChuckPa Any Update/fix on this?

I updated to 9.12.2.36964

I no longer see the issue.

You can tell it’s updated because it has the new yellow splash banner.

Nope, issue still exists for me in version 9.12.2.36964.