<?xml version="1.0" encoding="UTF-8"?>
<profiles version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nonamespaceschemalocation="http://www.serviio.org/xsd/profiles/v/1.10/Profiles.xsd">
  <profile id="flv_player" name="Flash player" extendsprofileid="1" alwaysenabletranscoding="true" selectable="false">
    <h264levelcheck>
      FILE_ATTRIBUTES
    </h264levelcheck>
    <transcoding>
      <video targetcontainer="flv"Default handler: <!-- remuxing back to FLV to enable seeking on flv files that would normally play natively -->
>
        <matches container="flv"/>
      </video>
      <video targetcontainer="flv" targetacodec="mp3" forcestereo="true" asamplerate="44100">
        <matches container="matroska" vcodec="h264" squarepixels="true"/>
        <matches container="mp4" vcodec="h264" squarepixels="true"/>
        <matches container="avi" vcodec="h264" squarepixels="true"/>
        <matches container="mpegts" vcodec="h264" squarepixels="true"/>
        <matches container="3gp" vcodec="h264" squarepixels="true"/>
        <matches container="*" vcodec="h264" acodec="speex" squarepixels="true"/>
      </video>
      <video targetcontainer="flv" targetvcodec="flv" targetacodec="mp3" forcestereo="true" asamplerate="44100">
        <matches container="matroska"/>
        <matches container="mp4"/>
        <matches container="avi"/>
        <matches container="mpegts"/>
        <matches container="3gp"/>
        <matches container="asf"/>
        <matches container="mpeg"/>
        <matches container="mpegts"/>
        <matches container="ogg"/>
        <matches container="wtv"/>
        <matches container="rm"/>
        <matches container="flv" acodec="speex"/>
      </video>
      <audio targetcontainer="mp3">
        <matches container="mp3" codec="mp2"/>
        <matches container="mp4"/>
        <matches container="flac"/>
        <matches container="ogg"/>
        <matches container="lpcm"/>
        <matches container="adts"/>
        <matches container="asf"/>
        <matches container="wv"/>
        <matches container="mpc"/>
        <matches container="ape"/>
        <matches container="dsf"/>
        <matches container="wav"/>
      </audio>
    </transcoding>
    <onlinetranscoding>
      <video targetcontainer="flv" targetacodec="mp3" forcestereo="true" asamplerate="44100">
        <matches container="flv" squarepixels="true"/>
Default handler: <!-- vp6, flv or h264 -->
        <matches container="applehttp" vcodec="h264" squarepixels="true"/>
      </video>
      <video targetcontainer="flv" targetvcodec="flv" targetacodec="mp3" forcestereo="true" asamplerate="44100">
        <matches container="rtp"/>
        <matches container="rtsp"/>
        <matches container="applehttp"/>
        <matches container="asf"/>
        <matches container="flv"/>
        <matches container="mjpeg"/>
      </video>
    </onlinetranscoding>
    <generictranscoding>
      <video targetcontainer="flv" targetvcodec="flv" targetacodec="mp3" forcestereo="true" asamplerate="44100"/>
    </generictranscoding>
    <alternativequalities>
      <quality type="MEDIUM">
        <transcoding>
          <video targetcontainer="flv" targetvcodec="flv" targetacodec="mp3" forcestereo="true" asamplerate="44100" maxvbitrate="1000" maxwidth="854" maxheight="480">
            <matches container="*"/>
          </video>
        </transcoding>
        <onlinetranscoding>
          <video targetcontainer="flv" targetvcodec="flv" targetacodec="mp3" forcestereo="true" asamplerate="44100" maxvbitrate="1000" maxwidth="854" maxheight="480">
            <matches container="*"/>
          </video>
        </onlinetranscoding>
        <generictranscoding>
          <video targetcontainer="flv" targetvcodec="flv" targetacodec="mp3" forcestereo="true" asamplerate="44100" maxvbitrate="1000" maxwidth="854" maxheight="480"/>
        </generictranscoding>
      </quality>
      <quality type="LOW">
        <transcoding>
          <video targetcontainer="flv" targetvcodec="flv" targetacodec="mp3" forcestereo="true" asamplerate="22050" maxvbitrate="500" maxwidth="356" maxheight="200">
            <matches container="*"/>
          </video>
        </transcoding>
        <onlinetranscoding>
          <video targetcontainer="flv" targetvcodec="flv" targetacodec="mp3" forcestereo="true" asamplerate="44100" maxvbitrate="500" maxwidth="356" maxheight="200">
            <matches container="*"/>
          </video>
        </onlinetranscoding>
        <generictranscoding>
          <video targetcontainer="flv" targetvcodec="flv" targetacodec="mp3" forcestereo="true" asamplerate="44100" maxvbitrate="500" maxwidth="356" maxheight="200"/>
        </generictranscoding>
      </quality>
    </alternativequalities>
    <subtitles>
      <softsubs mime-type="text/srt" type="srt" character-encoding="utf-8"/>
      <hardsubs>
        <bitmapbased supported="true"/>
        <textbased supported="false"/>
      </hardsubs>
    </subtitles>
    <thumbnailsresolution>
      HD
    </thumbnailsresolution>
    <automaticimagerotation>
      true
    </automaticimagerotation>
    <multipleaudiotrackaware>
      false
    </multipleaudiotrackaware>
  </profile>
  <profile id="html5" name="HTML5" extendsprofileid="1" alwaysenabletranscoding="true" selectable="false">
    <mediaformatprofiles>
      <mediaformatprofile mime-type="application/x-mpegurl">
        HLS
      </mediaformatprofile>
    </mediaformatprofiles>
    <transcoding>
      <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true">
        <matches container="3gp"/>
        <matches container="asf"/>
        <matches container="avi"/>
        <matches container="flv"/>
        <matches container="matroska"/>
        <matches container="mpeg"/>
        <matches container="mpegts"/>
        <matches container="mpegvideo"/>
        <matches container="ogg"/>
        <matches container="rm"/>
        <matches container="wtv"/>
        <matches container="mp4" vcodec="mpeg4"/>
        <matches container="mp4" vcodec="msmpeg4"/>
        <matches container="mp4" acodec="ac3"/>
        <matches container="mp4" acodec="eac3"/>
        <matches container="*" vcodec="h265"/>
Default handler: <!-- uncomment if your browser supports H265 natively -->
      </video>
      <audio targetcontainer="applehttp" forceinheritance="true">
        <matches container="mp3" codec="mp2"/>
        <matches container="mp4" codec="alac"/>
        <matches container="flac"/>
        <matches container="ogg"/>
        <matches container="lpcm"/>
        <matches container="adts"/>
        <matches container="asf"/>
        <matches container="wv"/>
        <matches container="mpc"/>
        <matches container="ape"/>
        <matches container="dsf"/>
        <matches container="wav"/>
      </audio>
    </transcoding>
    <onlinetranscoding>
      <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true">
        <matches container="*"/>
      </video>
    </onlinetranscoding>
    <audiotrackremux>
      <video targetcontainer="applehttp" targetacodec="aac" forcestereo="true">
        <matches container="*" vcodec="h264"/>
      </video>
    </audiotrackremux>
    <generictranscoding>
      <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true"/>
    </generictranscoding>
    <alternativequalities>
      <quality type="MEDIUM">
        <transcoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" maxvbitrate="1000" maxwidth="854" maxheight="480">
            <matches container="*"/>
          </video>
        </transcoding>
        <onlinetranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" maxvbitrate="1000" maxwidth="854" maxheight="480">
            <matches container="*"/>
          </video>
        </onlinetranscoding>
        <generictranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" maxvbitrate="1000" maxwidth="854" maxheight="480"/>
        </generictranscoding>
      </quality>
      <quality type="LOW">
        <transcoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" asamplerate="22050" maxvbitrate="500" maxwidth="426" maxheight="240">
            <matches container="*"/>
          </video>
        </transcoding>
        <onlinetranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" asamplerate="22050" maxvbitrate="500" maxwidth="426" maxheight="240">
            <matches container="*"/>
          </video>
        </onlinetranscoding>
        <generictranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" asamplerate="22050" maxvbitrate="500" maxwidth="426" maxheight="240"/>
        </generictranscoding>
      </quality>
    </alternativequalities>
    <subtitles>
      <softsubs mime-type="text/vtt" type="vtt" character-encoding="utf-8"/>
      <hardsubs>
        <bitmapbased supported="true"/>
        <textbased supported="false"/>
      </hardsubs>
    </subtitles>
    <thumbnailsresolution>
      HD
    </thumbnailsresolution>
    <automaticimagerotation>
      true
    </automaticimagerotation>
    <multipleaudiotrackaware>
      false
    </multipleaudiotrackaware>
  </profile>
  <profile id="html5_mobile" name="HTML5 Mobile" extendsprofileid="html5" alwaysenabletranscoding="true" selectable="false">
    <transcodingDefault handler: <!-- only play mp4/h264(main3 and less)/aac natively -->
>
      <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" forcevtranscoding="true" maxwidth="1920" maxheight="1080">
        <matches container="*" vcodec="h264" profile="high" levelgreaterthan="4.0"/>
      </video>
      <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" maxwidth="1920" maxheight="1080">
        <matches container="3gp"/>
        <matches container="asf"/>
        <matches container="avi"/>
        <matches container="flv"/>
        <matches container="matroska"/>
        <matches container="mpeg"/>
        <matches container="mpegts"/>
        <matches container="mpegvideo"/>
        <matches container="ogg"/>
        <matches container="rm"/>
        <matches container="wtv"/>
        <matches container="mp4" vcodec="mpeg4"/>
        <matches container="mp4" vcodec="msmpeg4"/>
        <matches container="mp4" acodec="ac3"/>
        <matches container="mp4" acodec="eac3"/>
        <matches container="*" vcodec="h265"/>
Default handler: <!-- uncomment if your browser supports H265 natively -->
        <matches container="*" widthgreaterthan="1920"/>
      </video>
    </transcoding>
    <alternativequalities>
      <quality type="MEDIUM">
        <transcoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" maxvbitrate="1000" maxwidth="854" maxheight="480">
            <matches container="*"/>
          </video>
        </transcoding>
        <onlinetranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" maxvbitrate="1000" maxwidth="854" maxheight="480">
            <matches container="*"/>
          </video>
        </onlinetranscoding>
        <generictranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" maxvbitrate="1000" maxwidth="854" maxheight="480"/>
        </generictranscoding>
      </quality>
      <quality type="LOW">
        <transcoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" asamplerate="22050" maxvbitrate="500" maxwidth="426" maxheight="240">
            <matches container="*"/>
          </video>
        </transcoding>
        <onlinetranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" asamplerate="22050" maxvbitrate="500" maxwidth="426" maxheight="240">
            <matches container="*"/>
          </video>
        </onlinetranscoding>
        <generictranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" asamplerate="22050" maxvbitrate="500" maxwidth="426" maxheight="240"/>
        </generictranscoding>
      </quality>
    </alternativequalities>
  </profile>
  <profile id="serviigo_standard" name="ServiiGo (Standard)" extendsprofileid="1" alwaysenabletranscoding="true" selectable="false"Default handler: <!-- Standard profile It uses high resolution thumbnails and images to make use of modern devices large heap space per app and hdpi/xhdpi/xxhdpi displays. It delivers videos natively under 'Original' quality, and uses mpeg2 for 'Medium' and 'Low' qualities mpeg2 can only be played back in the internal player on some deviced (e.g. Nexus 7) It transcodes all non .mp3 audio to mp3 -->
>
    <transcodingDefault handler: <!-- We don't do any video transcoding under Original quality. Videos have to be played in an external player, but because they are delivered natively, byte based seeking is enabled -->
Default handler: <!-- Transcode non .mp3 audio for the Media Player -->
>
      <audio targetcontainer="mp3" forceinheritance="true"Default handler: <!-- Supported media formats are outlined http://developer.android.com/guide/appendix/media-formats.html -->
Default handler: <!-- TODO Once ServiiGo 4.0 has been out for a while, comment out mp4 -->
Default handler: <!-- Comment out to play m4a files natively -->
>
        <matches container="mp4"/>
Default handler: <!-- Comment out to play flac files natively -->
        <matches container="flac"/>
Default handler: <!-- Comment out to play ogg files natively -->
        <matches container="ogg"/>
Default handler: <!-- Comment out to play wma files natively (not recommended as not supported on most devices) -->
        <matches container="asf"/>
Default handler: <!-- Convert all of the other formats -->
        <matches container="lpcm"/>
        <matches container="flv"/>
        <matches container="rtp"/>
        <matches container="rtsp"/>
        <matches container="adts"/>
        <matches container="wv"/>
        <matches container="mpc"/>
        <matches container="ape"/>
        <matches container="dsf"/>
        <matches container="wav"/>
        <matches container="mp4" codec="alac"/>
        <matches container="mp3" codec="mp2"/>
      </audio>
    </transcoding>
    <onlinetranscoding>
      <video targetcontainer="mpegts">
        <matches container="flv" vcodec="h264"/>
        <matches container="mp4"/>
        <matches container="applehttp" vcodec="h264"/>
        <matches container="mpegts" vcodec="h264"/>
Default handler: <!-- jhb50 add -->
      </video>
      <video targetcontainer="mpegts" targetacodec="ac3" abitrate="384" targetvcodec="mpeg2video" maxvbitrate="4000">
        <matches container="flv"/>
        <matches container="asf"/>
Default handler: <!-- to support mms:// streams -->
        <matches container="rtp"/>
        <matches container="rtsp"/>
        <matches container="applehttp"/>
      </video>
    </onlinetranscoding>
    <generictranscoding>
      <video targetcontainer="mpegts" targetvcodec="mpeg2video" targetacodec="mp3" forcestereo="true"/>
    </generictranscoding>
    <alternativequalitiesDefault handler: <!-- Transcode videos to reduce bandwidth requirements. Very few devices can play these back in the internal player, it currently only works on the Nexus 7. All other devices must play them back in an external player, but that means no seeking. -->
>
      <quality type="MEDIUM">
        <transcoding>
          <video targetcontainer="mpegts" targetvcodec="mpeg2video" targetacodec="mp3" forcestereo="true" abitrate="128" maxvbitrate="1000" maxwidth="854" maxheight="480">
            <matches container="*"/>
          </video>
        </transcoding>
        <generictranscoding>
          <video targetcontainer="mpegts" targetvcodec="mpeg2video" targetacodec="mp3" forcestereo="true" abitrate="128" maxvbitrate="1000" maxwidth="854" maxheight="480"/>
        </generictranscoding>
      </quality>
      <quality type="LOW">
        <transcoding>
          <video targetcontainer="mpegts" targetvcodec="mpeg2video" targetacodec="mp3" forcestereo="true" asamplerate="22050" abitrate="128" maxvbitrate="500" maxwidth="426" maxheight="240">
            <matches container="*"/>
          </video>
        </transcoding>
        <generictranscoding>
          <video targetcontainer="mpegts" targetvcodec="mpeg2video" targetacodec="mp3" forcestereo="true" asamplerate="22050" abitrate="128" maxvbitrate="500" maxwidth="426" maxheight="240"/>
        </generictranscoding>
      </quality>
    </alternativequalities>
    <subtitles>
      <softsubs mime-type="text/srt" type="srt" character-encoding="utf-8"/>
      <hardsubs>
        <bitmapbased supported="true"/>
        <textbased supported="false"/>
      </hardsubs>
    </subtitles>
    <allowedimageresolutions large="4096x4096" medium="1920x1920" small="1280x1280"/>
    <thumbnailsresolution>
      HD
    </thumbnailsresolution>
  </profile>
  <profile id="serviigo" name="ServiiGo (Legacy Devices)" extendsprofileid="serviigo_standard" alwaysenabletranscoding="true" selectable="false"Default handler: <!-- Profile for legacy devices (< Android 3.2) Named so that it is used by older versions of ServiiGo that do not know about the new profiles It uses low resolution thumbnails and images to keep memory usage down as these older devices that have small amounts of heap per app. They also tend to have ldpi/mdpi displays, so there is little point in loading high resolution images. It delivers videos natively under 'Original' quality, and uses mpeg2 for 'Medium' and 'Low' qualities It transcodes all non .mp3 audio to mp3 -->
Default handler: <!-- Original quality rules are inherited from the standard profile -->
Default handler: <!-- We have to duplicate the alternative quality rules -->
>
    <alternativequalitiesDefault handler: <!-- Transcode videos to reduce bandwidth requirements -->
>
      <quality type="MEDIUM">
        <transcoding>
          <video targetcontainer="mpegts" targetvcodec="mpeg2video" targetacodec="mp3" forcestereo="true" abitrate="128" maxvbitrate="1000" maxwidth="854" maxheight="480">
            <matches container="*"/>
          </video>
        </transcoding>
        <generictranscoding>
          <video targetcontainer="mpegts" targetvcodec="mpeg2video" targetacodec="mp3" forcestereo="true" abitrate="128" maxvbitrate="1000" maxwidth="854" maxheight="480"/>
        </generictranscoding>
      </quality>
      <quality type="LOW">
        <transcoding>
          <video targetcontainer="mpegts" targetvcodec="mpeg2video" targetacodec="mp3" forcestereo="true" asamplerate="22050" abitrate="128" maxvbitrate="500" maxwidth="426" maxheight="240">
            <matches container="*"/>
          </video>
        </transcoding>
        <generictranscoding>
          <video targetcontainer="mpegts" targetvcodec="mpeg2video" targetacodec="mp3" forcestereo="true" asamplerate="22050" abitrate="128" maxvbitrate="500" maxwidth="426" maxheight="240"/>
        </generictranscoding>
      </quality>
    </alternativequalities>
    <subtitles>
      <softsubs mime-type="text/srt" type="srt" character-encoding="utf-8"/>
      <hardsubs>
        <bitmapbased supported="true"/>
        <textbased supported="false"/>
      </hardsubs>
    </subtitles>
Default handler: <!-- Use lower resolution images and thumbnails -->
    <allowedimageresolutions large="4096x4096" medium="1024x1024" small="800x800"/>
    <thumbnailsresolution>
      DLNA
    </thumbnailsresolution>
  </profile>
  <profile id="serviigo_hls" name="ServiiGo (HLS)" extendsprofileid="serviigo_standard" alwaysenabletranscoding="true" selectable="false"Default handler: <!-- HLS profile It uses high resolution thumbnails and images to make use of modern devices large heap space per app and hdpi/xhdpi/xxhdpi displays. It delivers videos natively under 'Original' quality, and uses HLS for 'Medium' and 'Low' qualities HLS can be played back in the internal player on all devices that are offered this profile (>=3.2) However, transcoding to HLS is more CPU intensive than transcoding to mpeg2 It transcodes all non .mp3 audio to mp3 -->
>
    <onlinetranscodingDefault handler: <!-- h264 will be re-muxed, which isn't expensive, but other formats will be transcoded -->
Default handler: <!-- TODO Cut down the number of formats that are transcoded -->
>
      <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true">
        <matches container="*"/>
      </video>
    </onlinetranscoding>
    <generictranscoding>
      <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true"/>
    </generictranscoding>
    <alternativequalitiesDefault handler: <!-- Transcode videos to reduce bandwidth requirements. These videos can can be played in the internal player on most devices that are offered this profile. Seeking is done using time based seeking and start=XX url param. -->
>
      <quality type="MEDIUM">
        <transcoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" abitrate="128" maxvbitrate="1000" maxwidth="854" maxheight="480">
            <matches container="*"/>
          </video>
        </transcoding>
        <generictranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" abitrate="128" maxvbitrate="1000" maxwidth="854" maxheight="480"/>
        </generictranscoding>
      </quality>
      <quality type="LOW">
        <transcoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" asamplerate="22050" abitrate="128" maxvbitrate="500" maxwidth="426" maxheight="240">
            <matches container="*"/>
          </video>
        </transcoding>
        <generictranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" asamplerate="22050" abitrate="128" maxvbitrate="500" maxwidth="426" maxheight="240"/>
        </generictranscoding>
      </quality>
    </alternativequalities>
    <subtitles>
      <softsubs mime-type="text/srt" type="srt" character-encoding="utf-8"/>
      <hardsubs>
        <bitmapbased supported="true"/>
        <textbased supported="false"/>
      </hardsubs>
    </subtitles>
    <allowedimageresolutions large="4096x4096" medium="1920x1920" small="1280x1280"/>
    <thumbnailsresolution>
      HD
    </thumbnailsresolution>
  </profile>
  <profile id="serviigo_gtv" name="ServiiGo (Google TV)" extendsprofileid="serviigo_hls" alwaysenabletranscoding="true" selectable="false"Default handler: <!-- Google TV profile It uses high resolution thumbnails and images to make use of modern devices large heap space per app and hdpi/xhdpi/xxhdpi displays. It transcodes all videos to HLS for use in the internal player. It transcodes all non .mp3 audio to mp3 -->
Default handler: <!-- In the future we could cut down on video transcoding, but this is a start that should always work -->
>
    <transcodingDefault handler: <!-- h264 will be re-muxed, which isn't expensive, but other formats will be transcoded -->
Default handler: <!-- Seeking is done using time based seeking and start=XX url param -->
Default handler: <!-- TODO Cut down the number of formats that are transcoded -->
>
      <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac">
        <matches container="*"/>
      </video>
    </transcoding>
Default handler: <!-- Online original quality rules are inherited from the HLS profile -->
    <alternativequalitiesDefault handler: <!-- Transcode videos to reduce bandwidth requirements. Seeking is done using time based seeking and start=XX url param. -->
>
      <quality type="MEDIUM">
        <transcoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" abitrate="128" maxvbitrate="1200" maxwidth="854" maxheight="480">
            <matches container="*"/>
          </video>
        </transcoding>
        <generictranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" abitrate="128" maxvbitrate="1200" maxwidth="854" maxheight="480"/>
        </generictranscoding>
      </quality>
      <quality type="LOW">
        <transcoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" asamplerate="22050" abitrate="128" maxvbitrate="800" maxwidth="640" maxheight="360">
            <matches container="*"/>
          </video>
        </transcoding>
        <generictranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" asamplerate="22050" abitrate="128" maxvbitrate="800" maxwidth="640" maxheight="360"/>
        </generictranscoding>
      </quality>
    </alternativequalities>
    <subtitles>
      <softsubs mime-type="text/srt" type="srt" character-encoding="utf-8"/>
      <hardsubs>
        <bitmapbased supported="true"/>
        <textbased supported="false"/>
      </hardsubs>
    </subtitles>
    <allowedimageresolutions large="4096x4096" medium="1920x1920" small="1280x1280"/>
    <thumbnailsresolution>
      HD
    </thumbnailsresolution>
  </profile>
  <profile id="googlecast" name="Google Cast" extendsprofileid="1" alwaysenabletranscoding="true" selectable="false"Default handler: <!-- Google Cast profile that delivers H.264/MP4 files natively and uses HLS for everything else: https://developers.google.com/cast/docs/media It does not take into account the low memory on certain Google Cast devices so it doesn't transcode the video stream unless it has to. If the video must be transcoded, then it limits it to 720p@10Mbps in an attempt to reduce server load. -->
>
    <transcoding>
      <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcevtranscoding="true" maxwidth="1280" maxheight="720" maxvbitrate="10000">
        <matches container="*" vcodec="h264" profile="high" levelgreaterthan="5"/>
        <matches container="*" vcodec="h264" profile="main" levelgreaterthan="5"/>
      </video>
      <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac">
        <matches container="matroska" vcodec="h264"/>
        <matches container="mpegts" vcodec="h264"/>
        <matches container="flv" vcodec="h264"/>
        <matches container="3gp" vcodec="h264"/>
        <matches container="avi" vcodec="h264"/>
      </video>
      <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" maxwidth="1280" maxheight="720" maxvbitrate="10000">
        <matches container="3gp"/>
        <matches container="asf"/>
        <matches container="avi"/>
        <matches container="flv"/>
        <matches container="matroska"/>
        <matches container="mpeg"/>
        <matches container="mpegts"/>
        <matches container="mpegvideo"/>
        <matches container="ogg"/>
        <matches container="rm"/>
        <matches container="wtv"/>
        <matches container="mp4" vcodec="mpeg4"/>
        <matches container="mp4" vcodec="msmpeg4"/>
        <matches container="mp4" acodec="ac3"/>
        <matches container="mp4" acodec="eac3"/>
      </video>
      <audio targetcontainer="mp3">
        <matches container="mp3" codec="mp2"/>
        <matches container="flac"/>
        <matches container="ogg"/>
        <matches container="lpcm"/>
        <matches container="adts"/>
        <matches container="asf"/>
        <matches container="wv"/>
        <matches container="mpc"/>
        <matches container="ape"/>
        <matches container="dsf"/>
        <matches container="wav"/>
        <matches container="mp4" codec="alac"/>
      </audio>
    </transcoding>
    <onlinetranscoding>
      <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac">
        <matches container="*"/>
      </video>
    </onlinetranscoding>
    <alternativequalities>
      <quality type="MEDIUM">
        <transcoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" abitrate="128" maxvbitrate="1200" maxwidth="854" maxheight="480">
            <matches container="*"/>
          </video>
        </transcoding>
        <generictranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" abitrate="128" maxvbitrate="1200" maxwidth="854" maxheight="480"/>
        </generictranscoding>
      </quality>
      <quality type="LOW">
        <transcoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" asamplerate="22050" abitrate="128" maxvbitrate="800" maxwidth="640" maxheight="360">
            <matches container="*"/>
          </video>
        </transcoding>
        <generictranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" asamplerate="22050" abitrate="128" maxvbitrate="800" maxwidth="640" maxheight="360"/>
        </generictranscoding>
      </quality>
    </alternativequalities>
    <subtitles>
      <softsubs mime-type="text/srt" type="srt" character-encoding="utf-8"/>
      <hardsubs>
        <bitmapbased supported="true"/>
        <textbased supported="false"/>
      </hardsubs>
    </subtitles>
    <allowedimageresolutions large="4096x4096" medium="1920x1920" small="1280x1280"/>
    <thumbnailsresolution>
      HD
    </thumbnailsresolution>
  </profile>
  <profile id="chromecast" name="Chromecast" extendsprofileid="googlecast" alwaysenabletranscoding="true" selectable="false"Default handler: <!-- Chromecast specific Google Cast profile that accounts for the fact that Chromecast cannot handle much more than 7Mbps except when playing back H.264 in MP4 because it only has a 30MB source buffer for the MPL library that decodes HLS. -->
>
    <transcoding>
      <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcevtranscoding="true" maxwidth="1280" maxheight="720" maxvbitrate="7000">
        <matches container="*" vcodec="h264" profile="high" levelgreaterthan="5"/>
        <matches container="*" vcodec="h264" profile="main" levelgreaterthan="5"/>
        <matches container="3gp"/>
        <matches container="asf"/>
        <matches container="avi"/>
        <matches container="flv"/>
        <matches container="matroska"/>
        <matches container="mpeg"/>
        <matches container="mpegts"/>
        <matches container="mpegvideo"/>
        <matches container="ogg"/>
        <matches container="rm"/>
        <matches container="wtv"/>
        <matches container="mp4" vcodec="mpeg4"/>
        <matches container="mp4" vcodec="msmpeg4"/>
        <matches container="mp4" acodec="ac3"/>
        <matches container="mp4" acodec="eac3"/>
      </video>
    </transcoding>
    <generictranscoding>
      <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcevtranscoding="true" maxwidth="1280" maxheight="720" maxvbitrate="7000"/>
    </generictranscoding>
    <alternativequalities>
      <quality type="MEDIUM">
        <transcoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" abitrate="128" maxvbitrate="1200" maxwidth="854" maxheight="480">
            <matches container="*"/>
          </video>
        </transcoding>
        <generictranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" abitrate="128" maxvbitrate="1200" maxwidth="854" maxheight="480"/>
        </generictranscoding>
      </quality>
      <quality type="LOW">
        <transcoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" asamplerate="22050" abitrate="128" maxvbitrate="800" maxwidth="640" maxheight="360">
            <matches container="*"/>
          </video>
        </transcoding>
        <generictranscoding>
          <video targetcontainer="applehttp" targetvcodec="h264" targetacodec="aac" forcestereo="true" asamplerate="22050" abitrate="128" maxvbitrate="800" maxwidth="640" maxheight="360"/>
        </generictranscoding>
      </quality>
    </alternativequalities>
    <subtitles>
      <softsubs mime-type="text/srt" type="srt" character-encoding="utf-8"/>
      <hardsubs>
        <bitmapbased supported="true"/>
        <textbased supported="false"/>
      </hardsubs>
    </subtitles>
    <allowedimageresolutions large="4096x4096" medium="1920x1920" small="1280x1280"/>
    <thumbnailsresolution>
      HD
    </thumbnailsresolution>
  </profile>
  <profile id="alexa" name="Alexa" extendsprofileid="1" alwaysenabletranscoding="true" selectable="false">
    <transcoding>
      <video targetcontainer="mpegts" targetvcodec="h264" targetacodec="aac" forcestereo="true" forcevtranscoding="true" maxwidth="1280" maxheight="720">
        <matches container="*" widthgreaterthan="1280" heightgreaterthan="720"/>
      </video>
      <video targetcontainer="mpegts" targetvcodec="h264" targetacodec="aac" forcestereo="true" maxwidth="1280" maxheight="720">
        <matches container="3gp"/>
        <matches container="asf"/>
        <matches container="avi"/>
        <matches container="flv"/>
        <matches container="applehttp"/>
        <matches container="mp4"/>
        <matches container="matroska"/>
        <matches container="mpeg"/>
        <matches container="mpegts"/>
        <matches container="mpegvideo"/>
        <matches container="ogg"/>
        <matches container="rm"/>
        <matches container="wtv"/>
        <matches container="*" vcodec="h265"/>
      </video>
      <audio targetcontainer="mp3" abitrate="384">
        <matches container="mp3" codec="mp2"/>
        <matches container="mp4" codec="alac"/>
        <matches container="flac"/>
        <matches container="ogg"/>
        <matches container="lpcm"/>
        <matches container="adts"/>
        <matches container="asf"/>
        <matches container="wv"/>
        <matches container="mpc"/>
        <matches container="ape"/>
        <matches container="dsf"/>
        <matches container="wav"/>
      </audio>
    </transcoding>
    <onlinetranscoding>
      <video targetcontainer="mpegts" targetvcodec="h264" targetacodec="aac" forcestereo="true" maxwidth="1280" maxheight="720">
        <matches container="*"/>
      </video>
    </onlinetranscoding>
    <audiotrackremux>
      <video targetcontainer="mpegts" targetacodec="aac" forcestereo="true">
        <matches container="*" vcodec="h264"/>
      </video>
    </audiotrackremux>
    <generictranscoding>
      <video targetcontainer="mpegts" targetvcodec="h264" targetacodec="aac" forcestereo="true" maxwidth="1280" maxheight="720"/>
    </generictranscoding>
    <subtitles>
      <hardsubs>
        <bitmapbased supported="true"/>
        <textbased supported="true"/>
      </hardsubs>
    </subtitles>
    <thumbnailsresolution>
      HD
    </thumbnailsresolution>
    <automaticimagerotation>
      true
    </automaticimagerotation>
    <multipleaudiotrackaware>
      false
    </multipleaudiotrackaware>
  </profile>
</profiles>