Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Torstein-Eide/be8bfccca96f6d3c30d0b621f28d2ee7 to your computer and use it in GitHub Desktop.

Select an option

Save Torstein-Eide/be8bfccca96f6d3c30d0b621f28d2ee7 to your computer and use it in GitHub Desktop.

Revisions

  1. @jfeilbach jfeilbach revised this gist Jul 15, 2019. No changes.
  2. @jfeilbach jfeilbach revised this gist Jul 15, 2019. 1 changed file with 11 additions and 25 deletions.
    36 changes: 11 additions & 25 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,46 +1,32 @@
    <?xml version="1.0" encoding="utf-8"?>
    <Client name="tvOS">
    <!-- Author: Plex Inc. -->
    <!-- This profile is used by A8-based tvOS devices -->
    <!-- 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 protocol="hls" container="mpegts" codec="h264" audioCodec="aac,ac3,mp3" context="streaming" />
    <MusicProfile container="mp3" codec="mp3" />
    <VideoProfile container="mkv" codec="h264,h265" audioCodec="flac" />
    <MusicProfile container="flac" codec="flac" />
    <PhotoProfile container="jpeg" />
    <SubtitleProfile protocol="hls" container="webvtt" subtitleCodec="webvtt"/>
    <SubtitleProfile container="webvtt" subtitleCodec="webvtt"/>
    </TranscodeTargets>
    <DirectPlayProfiles>
    <VideoProfile container="mp4,m4v" codec="hevc,h265,h264,mpeg4" audioCodec="aac,he-aac,ac3,eac3,flac" subtitleCodec="mov_text,tx3g,ttxt,text" />
    <!-- Since tvOS may have issues direct playing mov/*/eac3 it has its own profile -->
    <VideoProfile container="mov" codec="hevc,h265,h264,mpeg4" audioCodec="aac,he-aac,ac3,flac" subtitleCodec="mov_text,tx3g,ttxt,text" />
    <!-- Allow Direct Play of HLS content -->
    <VideoProfile protocol="hls" container="mpegts" codec="h264" audioCodec="aac,he-aac,ac3,eac3,flac" />
    <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="mp4" codec="aac,he-aac,ac3,eac3,flac" />
    <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="hevc">
    <Limitations>
    <UpperBound name="video.width" value="3840" isRequired="true" />
    <UpperBound name="video.height" value="2160" isRequired="true" />
    <UpperBound name="video.bitDepth" value="10" />
    </Limitations>
    </VideoCodec>
    <VideoCodec name="h265">
    <Limitations>
    <UpperBound name="video.width" value="3840" isRequired="true" />
    <UpperBound name="video.height" value="2160" isRequired="true" />
    <UpperBound name="video.bitDepth" value="10" />
    </Limitations>
    </VideoCodec>
    <VideoCodec name="*">
    <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="*">
  3. @jfeilbach jfeilbach created this gist Mar 22, 2018.
    52 changes: 52 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,52 @@
    <?xml version="1.0" encoding="utf-8"?>
    <Client name="tvOS">
    <!-- Author: Plex Inc. -->
    <!-- This profile is used by A8-based tvOS devices -->
    <Settings>
    <Setting name="DirectPlayStreamSelection" value="true" />
    <Setting name="StreamUnselectedIncompatibleAudioStreams" value="true" />
    </Settings>
    <TranscodeTargets>
    <VideoProfile protocol="hls" container="mpegts" codec="h264" audioCodec="aac,ac3,mp3" context="streaming" />
    <MusicProfile container="mp3" codec="mp3" />
    <PhotoProfile container="jpeg" />
    <SubtitleProfile protocol="hls" container="webvtt" subtitleCodec="webvtt"/>
    </TranscodeTargets>
    <DirectPlayProfiles>
    <VideoProfile container="mp4,m4v" codec="hevc,h265,h264,mpeg4" audioCodec="aac,he-aac,ac3,eac3,flac" subtitleCodec="mov_text,tx3g,ttxt,text" />
    <!-- Since tvOS may have issues direct playing mov/*/eac3 it has its own profile -->
    <VideoProfile container="mov" codec="hevc,h265,h264,mpeg4" audioCodec="aac,he-aac,ac3,flac" subtitleCodec="mov_text,tx3g,ttxt,text" />
    <!-- Allow Direct Play of HLS content -->
    <VideoProfile protocol="hls" container="mpegts" codec="h264" audioCodec="aac,he-aac,ac3,eac3,flac" />
    <MusicProfile container="mp3" codec="mp3" />
    <MusicProfile container="mp4" codec="aac,he-aac,ac3,eac3,flac" />
    <PhotoProfile container="jpeg" />
    </DirectPlayProfiles>
    <CodecProfiles>
    <VideoCodec name="hevc">
    <Limitations>
    <UpperBound name="video.width" value="3840" isRequired="true" />
    <UpperBound name="video.height" value="2160" isRequired="true" />
    <UpperBound name="video.bitDepth" value="10" />
    </Limitations>
    </VideoCodec>
    <VideoCodec name="h265">
    <Limitations>
    <UpperBound name="video.width" value="3840" isRequired="true" />
    <UpperBound name="video.height" value="2160" isRequired="true" />
    <UpperBound name="video.bitDepth" value="10" />
    </Limitations>
    </VideoCodec>
    <VideoCodec name="*">
    <Limitations>
    <UpperBound name="video.width" value="3840" />
    <UpperBound name="video.height" value="2160" />
    </Limitations>
    </VideoCodec>
    <VideoAudioCodec name="*">
    <Limitations>
    <UpperBound name="audio.channels" value="8" />
    </Limitations>
    </VideoAudioCodec>
    </CodecProfiles>
    </Client>