Skip to content

Instantly share code, notes, and snippets.

@e-desouza
Created September 28, 2020 19:07
Show Gist options
  • Save e-desouza/7c82dfcecd84532a9c61fb59e88fdfae to your computer and use it in GitHub Desktop.
Save e-desouza/7c82dfcecd84532a9c61fb59e88fdfae to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<Client name="Roku-7.x">
<!-- Author: Plex Inc. -->
<TranscodeTargets>
<VideoProfile protocol="hls" container="mpegts" codec="h264" audioCodec="aac,mp3,ac3" context="streaming">
<Setting name="BreakNonKeyframes" value="true" />
<Setting name="HlsElideExtXStart" value="true" />
</VideoProfile>
<VideoProfile protocol="http" container="mkv" codec="h264" audioCodec="aac,mp3,mp2,pcm,flac,alac" subtitleCodec="srt" context="streaming" />
<MusicProfile container="mp3" codec="mp3" />
<PhotoProfile container="jpeg" />
</TranscodeTargets>
<DirectPlayProfiles>
<!--VideoProfile container="mp4,mkv" codec="h264,h265,mpeg4" audioCodec="aac,mp3,flac,ac3" /-->
<VideoProfile container="mp4" codec="Hevc,mpeg1video,mpeg2video,h264,h265,mpeg4" audioCodec="eac3,ac3,aac,mp3" />
<VideoProfile container="mkv" codec="vp9,Hevc,mpeg1video,mpeg2video,h264,h265,mpeg4" audioCodec="eac3,ac3,aac,mp3,pcm,flac,alac" subtitleFormat="srt,ass,pgs" />
<MusicProfile container="mp4" codec="aac" />
<MusicProfile container="mp3" codec="mp3" />
<PhotoProfile container="jpeg,gif,png" />
</DirectPlayProfiles>
<CodecProfiles>
<VideoCodec name="h264">
<Limitations>
<UpperBound name="video.width" value="4096" isRequired="true" />
<UpperBound name="video.height" value="2160" isRequired="true" />
<UpperBound name="video.refFrames" value="16" />
<UpperBound name="video.bitDepth" value="16" />
</Limitations>
</VideoCodec>
<VideoAudioCodec name="aac,mp3,mp2,pcm,flac,alac">
<Limitations>
<UpperBound name="audio.channels" value="8" />
<LowerBound name="audio.samplingRate" value="22050" />
</Limitations>
</VideoAudioCodec>
<VideoAudioCodec name="ac3">
<Limitations>
<LowerBound name="audio.channels" value="2" />
</Limitations>
</VideoAudioCodec>
<MusicCodec name="aac">
<Limitations>
<UpperBound name="audio.channels" value="8" />
</Limitations>
</MusicCodec>
</CodecProfiles>
</Client>
@SkylinedTT
Copy link

Thank you for your effort in creating this...works like a dream.
Before it was only transcoding and direct streaming media.
The same media is now direct playing.

Client: TCL P6-Series 55P605 4K Roku TV (7103X)
Server Platform: Plex Media Server for Windows
Server Distribution: x86_64
Server Version: 1.29.1.6260-420892357 (September 28, 2022)

Thanks again.

PS: I tried the other file (roku 7 xml for Plex) but most media, stops at 13% and never starts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment