Skip to content

Instantly share code, notes, and snippets.

@jfeilbach
Last active May 6, 2024 08:28
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jfeilbach/18b08ea0ed9eaf844d643ab092905973 to your computer and use it in GitHub Desktop.
Save jfeilbach/18b08ea0ed9eaf844d643ab092905973 to your computer and use it in GitHub Desktop.
tvOS.xml for plex (modified) for use with AppleTV 4k
<?xml version="1.0" encoding="utf-8"?>
<Client name="tvOS">
<!-- Author: Plex Inc. -->
<!-- This profile is used by A10X-based tvOS (Apple TV 4K) devices using the MPV ("experimental") video player. Currently, this requires a Plex Pass subscription. -->
<!-- Because Plex does not currently support TrueHD or DTS-MA playback in the client, this audio is transcoded to FLAC. -->
<Settings>
<Setting name="DirectPlayStreamSelection" value="true" />
<Setting name="StreamUnselectedIncompatibleAudioStreams" value="true" />
</Settings>
<TranscodeTargets>
<VideoProfile container="mkv" codec="h264,h265" audioCodec="flac" />
<MusicProfile container="flac" codec="flac" />
<PhotoProfile container="jpeg" />
<SubtitleProfile container="webvtt" subtitleCodec="webvtt"/>
</TranscodeTargets>
<DirectPlayProfiles>
<VideoProfile container="mkv,mov,mp4,mpegts,mpeg,mpegvideo,avi,flv,ogg" codec="h264,hevc,vp8,vp9,h263,mpeg1video,mpeg2video,mpeg4,vc1" audioCodec="aac,aac_latm,ac3,alac,flac,dca,vorbis,opus,eac3,mp1,mp2,mp3" subtitleCodec="ass,dvb_subtitle,vobsub,eia_608,pgs,microdvd,movtext,ssa,srt" />
<MusicProfile container="mp3" codec="mp3" />
<MusicProfile container="m4a" codec="aac,alac" />
<MusicProfile container="mp4" codec="aac,he-aac,ac3,eac3,alac" />
<MusicProfile container="flac,mkv" codec="flac" />
<PhotoProfile container="jpeg" />
</DirectPlayProfiles>
<CodecProfiles>
<VideoCodec name="*">
<Limitations>
<UpperBound name="video.width" value="3840" />
<UpperBound name="video.height" value="2160" />
<UpperBound name="video.bitDepth" value="10" />
</Limitations>
</VideoCodec>
<VideoAudioCodec name="*">
<Limitations>
<UpperBound name="audio.channels" value="8" />
</Limitations>
</VideoAudioCodec>
</CodecProfiles>
</Client>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment