Why does one connection transcode and the other direct play? as far as I can tell there are no differences and the transcoded stream is 4x the bandwidth.

Help
Why does one connection transcode and the other direct play? as far as I can tell there are no differences and the transcoded stream is 4x the bandwidth.

Posted Jun 24, 2021, 11:11 PM UTC

224
Blind_Watchman•

Were there subtitles on either stream? If not, you'll get the most definitive answer by looking at the logs (make sure debug logging is enabled as well via Settings > General > Enable Plex Media Server debug logging). Here's a snippet of what it might look like if subtitles have to be burned in:

[19796] DEBUG - [Transcode] MDE: Selected protocol hls; container: mkv
[19796] DEBUG - [Transcode] MDE: analyzing media item 805603
[19796] DEBUG - [Transcode] MDE: E2 - Episode 2: Direct Play is disabled
[19796] DEBUG - [Transcode] MDE: E2 - Episode 2: media must be transcoded in order to use the hls protocol
[19796] DEBUG - [Transcode] MDE: E2 - Episode 2: selected subtitle cannot be converted to a compatible format, burning into video stream
[19796] DEBUG - [Transcode] MDE: E2 - Episode 2: avoiding video remux due to burned subtitle stream
[19796] DEBUG - [Transcode] MDE: E2 - Episode 2: no remuxable profile found, so video stream will be transcoded
...
[19796] DEBUG - [Transcode] Streaming Resource: Reached Decision id=365481 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3000,App cannot direct play this item. Direct play is disabled. Transcode=1001,Direct play not available; Conversion OK.) media=(id=805603 part=(id=826290 decision=transcode container=mkv protocol=hls streams=(Video=(id=1713389 decision=transcode bitrate=15610 encoder=h264_nvenc width=1920 height=1080) Audio=(id=1713390 decision=copy channels=6 rate=48000) Subtitle=(id=1743356 decision=burn languageCode=eng location=embedded))))
2
RetroReflectiveOP•

No subtitles on either stream.

I have had the debug logging going but they only seem to go back about 10 hours and this occurred about 12 hours ago. I might have to catch it sooner.

1
maineguy1988•

What client? And you're absolutely certain that both clients have the quality set to original?

2
RetroReflectiveOP•

The client is the Plex app on a 2016 Samsung. The issue I have is that both streams are being viewed at 1080p but in one it is direct playing and in the other it is transcoding but taking up four times the bandwidth. I can see no reason why the transcoding is taking place.

The hardware can handle the client side decode, and the transcode takes up more bandwidth!

1
maineguy1988•

Wait I'm confused. These are not the same files. Does the file that works play correctly on BOTH TVs? And does the file that doesn't work not work on both TVs? If the file doesn't play correctly on both TVs, then there is something wrong with the file.

3
RetroReflectiveOP•

They are files of sequential episodes from the same season of a TV show. They were played one after the other on the same TV. So everything was the same hardware and the encoding (as far as I can tell) is identical. It plays well enough but one of the plays took up 4x the bandwidth and required server hardware cycles to transcode. I am just trying to work out why.

1
maineguy1988•

That didn't answer my question. You do not know for sure that the encodes share the same specifications.

3
Mex5150Lifetime Plex Pass•

Subtitles would have been my first guess, but as you've ruled that out, what the connection strength the same on both clients?

2
RetroReflectiveOP•

Connection strength is identical, it is the exact same hardware at all stages.

1
rhythmrice•

did you make sure that client isnt still set on the default (720p) forcing it to transcode?

2
RetroReflectiveOP•

Definitely, and in any case both are being viewed at 1080p

1
Biny•

Player on one device can’t handle MKV. It’s transcoding it to a mp4

2
RetroReflectiveOP•

They are the same device!

1
darknessgp•

You might look in plex, or use like mediainfo or ffprobe to get more details on the file. I know these are hevc, but I know for h.264 there are levels that not all devices are compatible with. Might be some slight difference that this view in plex is not showing.

2
RetroReflectiveOP•

Good tip, I'll take a closer look at the encoding... but they are subsequent episodes of the same show that were acquired in a season pack.

Edit: from mediainfo it appears they are near identical. The format, profile, codec, etc. are all the same and there are only minor differences in bitrate (4499 vs 4497).

1
dandraffbalIntel Xeon E3-1275V6 - Google Drive (50TB)•

This subtle difference could be the difference between it being supported or not.

I’m not sure if this is the correct link to your tv, but Samsung should tell you the limit. https://developer.samsung.com/smarttv/develop/specifications/media-specifications/2017-tv-video-specifications.html

Logs would help a ton though; so next time I guess.

1
[deleted]•

[removed]

-1