Media can be Direct Played on a device if the source media is compatible with the client’s playback capabilities, meaning that the source media:
Is stored in a compatible file container
Is encoded in a compatible bitrate
Is encoded with compatible codecs
Is a compatible resolution
Basically, the file is 100% compatible with your device.
If the file really is 100% compatible, then so are the contained streams. So why would the Server send a stream it should know the client is not asking for?
If the client is running on an AppleTV 4K, how do I force the Server to send only the video stream and the audio stream the Client is actually playing? This is relevant as an unselected (by the Client) DTS-HD 7.1 audio stream can be more than twice the size of the HEVC video stream.
Every movie I have is in an MKV container, HEVC video and various audio tracks. Every movie plays Direct Play. I have never seen it say Direct Stream.
That would no longer be direct play. In order to remove the undesired streams, Plex would have to re-mux the file in real-time (direct stream).
Disable direct play in the Plex app’s settings on the Apple TV 4K. This will force the server to direct stream if there are compatible streams contained within the file (which presumably there are). This won’t cause transcoding of the streams; they will just be re-muxed.
@pommesmatte Yes, I would agree with you. I have several movies with Dolby Atmos tracks packaged in MKV containers. These won’t play directly on an AppleTV, forcing the Server to transcode them to FLAC. So I’ve started adding a FLAC 7.1 stream to these containers, keeping the Dolby Atmos streams as well (who knows, one day maybe the AppleTV - or some other box - will stream that directly).
I’ve been playing around with the Plex Client’s Advanced Allow Direct Play settings. I’ve noticed some strange things so far. In all cases, the video is HEVC. If I tell the Client to select the FLAC audio stream, then turning off Direct Play indeed forces the Client into Direct Stream mode. Everything works great and the Client reports that the bitstream rate is about half of what it was when it was playing the same movie in Direct Play mode. This makes sense as the Dolby Atmos track is no longer being pushed down the wire.
But if I select any audio track supported by the AppleTV other than FLAC (i.e. AAC, AC3, etc.) something weird happens: the newly selected audio track plays as expected, but there is no video. The screen is black with a “buffering”-ish looking icon spinning in the middle of the screen. This never changes as the movie continues to play and audio continues to play as expected. The Client’s UI remains responsive, so I can both confirm that the Server remains in Direct Stream mode and I can go back and choose the FLAC track. When I do this, all is well as the video is now displayed, and of course, the FLAC track plays.
This feels like a bug in the Client. Both HEVC and whatever non-FLAC track I selected are compatible with the AppleTV. I don’t know what’s so special about the HEVC/FLAC combo such that this is the only combo that plays correctly.