﻿<?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.9.1/Profiles.xsd">

<!-- Add By Robert Bruce For Panasonic TCP42X3 TV -->

	<Profile id="TCP42X3" name="Panasonic TCP42X3 (2011/2012)" extendsProfileId="1">
		<!-- Panasonic Viera TCP42X3, xx50 (2012)  With AVI Support -->
		<Detection>
			<UPnPSearch>
				<FriendlyName>Panasonic TCP42X3 (2011/2012)</FriendlyName>
				<Manufacturer>Panasonic</Manufacturer>
			</UPnPSearch>
		</Detection>
		<Transcoding>
			<!-- remux VORBIS/FLAC/LPCM in MKV/MP4 to AC3 -->
			<Video targetContainer="mpegts" targetACodec="ac3" forceInheritance="true">
			    <!-- Some models support DTS natively, so the folowing line can be removed for those -->
			    <Matches container="matroska" vCodec="h264" aCodec="dca" /> <!-- ST50 supports DTS, remove this line -->
				<Matches container="matroska" vCodec="h264" aCodec="vorbis" />
				<Matches container="mp4" vCodec="h264" aCodec="lpcm" />
				<Matches container="mp4" vCodec="h264" aCodec="aac" />
				<Matches container="3gp" vCodec="h264" />
			</Video>
			<!-- Remux MPEG-TS with no transcoding -->
			<Video targetContainer="mpegts" forceInheritance="true">
				<Matches container="avi" vCodec="h264" />
				<Matches container="mp4" vCodec="h264" />
				<Matches container="matroska" vCodec="mpeg2video" />
			</Video>
			<!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
			<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" forceInheritance="true">
				<Matches container="avi" vCodec="mjpeg" />
				<Matches container="mp4" vCodec="h264" aCodec="aac" />
				<Matches container="avi" vCodec="dvvideo" />
				<Matches container="mpeg" vCodec="mpeg1video" />
				<Matches container="flv" />
				<Matches container="3gp" />
			</Video>
			<Audio targetContainer="lpcm" forceInheritance="true">
				<Matches container="flac" />
			</Audio>
		</Transcoding>
	</Profile>

<!-- Add By Robert Bruce For Asus Me572c Tablet -->

	<Profile id="Me572c" name="Asus Me572c Tablet" extendsProfileId="1">
		<!-- Asus Me572c Tablet  With AVI Support -->
		<Detection>
			<UPnPSearch>
				<FriendlyName>Asus Me572c Tablet</FriendlyName>
				<Manufacturer>Asus</Manufacturer>
			</UPnPSearch>
		</Detection>
		<Transcoding>
			<!-- remux VORBIS/FLAC/LPCM in MKV/MP4 to AC3 -->
			<Video targetContainer="mpegts" targetACodec="ac3" forceInheritance="true">
			    <!-- Some models support DTS natively, so the folowing line can be removed for those -->
			    <Matches container="matroska" vCodec="h264" aCodec="dca" /> <!-- ST50 supports DTS, remove this line -->
				<Matches container="matroska" vCodec="h264" aCodec="vorbis" />
				<Matches container="mp4" vCodec="h264" aCodec="lpcm" />
				<Matches container="mp4" vCodec="h264" aCodec="aac" />
				<Matches container="3gp" vCodec="h264" />
			</Video>
			<!-- Remux MPEG-TS with no transcoding -->
			<Video targetContainer="mpegts" forceInheritance="true">
				<Matches container="avi" vCodec="h264" />
				<Matches container="mp4" vCodec="h264" />
				<Matches container="matroska" vCodec="mpeg2video" />
			</Video>
			<!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
			<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" forceInheritance="true">
				<Matches container="avi" vCodec="mjpeg" />
				<Matches container="avi" vCodec="dvvideo" />
				<Matches container="mpeg" vCodec="mpeg1video" />
				<Matches container="flv" />
				<Matches container="3gp" />
			</Video>
			<Audio targetContainer="mp3">
				<Matches container="*" />
				<!-- Convert everything to mp3 -->
			</Audio>
		</Transcoding>
	</Profile>
	
<!-- End add for Asus Me572c Tablet -->

<!-- Add By Robert Bruce For Samsung Galaxy S3 -->

	<Profile id="GalaxyS3" name="Samsung Galaxy S3" extendsProfileId="1">
		<!-- Samsung Galaxy S3  With AVI Support -->
		<Detection>
			<UPnPSearch>
				<FriendlyName>Samsung Galaxy S3</FriendlyName>
				<Manufacturer>Samsung</Manufacturer>
			</UPnPSearch>
		</Detection>
		<Transcoding>
			<!-- remux VORBIS/FLAC/LPCM in MKV/MP4 to AC3 -->
			<Video targetContainer="mpegts" targetACodec="ac3" forceInheritance="true">
			    <!-- Some models support DTS natively, so the folowing line can be removed for those -->
			    <Matches container="matroska" vCodec="h264" aCodec="dca" /> <!-- ST50 supports DTS, remove this line -->
				<Matches container="matroska" vCodec="h264" aCodec="vorbis" />
				<Matches container="mp4" vCodec="h264" aCodec="lpcm" />
				<Matches container="mp4" vCodec="h264" aCodec="aac" />
				<Matches container="3gp" vCodec="h264" />
			</Video>
			<!-- Remux MPEG-TS with no transcoding -->
			<Video targetContainer="mpegts" forceInheritance="true">
				<Matches container="avi" vCodec="h264" />
				<Matches container="mp4" vCodec="h264" />
				<Matches container="matroska" vCodec="mpeg2video" />
			</Video>
			<!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
			<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" forceInheritance="true">
				<Matches container="avi" vCodec="mjpeg" />
				<Matches container="avi" vCodec="dvvideo" />
				<Matches container="mpeg" vCodec="mpeg1video" />
				<Matches container="flv" />
				<Matches container="3gp" />
			</Video>
			<Audio targetContainer="mp3">
				<Matches container="*" />
				<!-- Convert everything to mp3 -->
			</Audio>
		</Transcoding>
	</Profile>
	
<!-- End add for Samsung Galaxy S3 -->

<!-- Start add for Roku N1100 Model -->

	<Profile id="rokun1100" name="Roku N1100 Model" extendsProfileId="1">
		<Detection>
			<HttpHeaders>
				<User-Agent>.*CHANERU.*</User-Agent>
			</HttpHeaders>
		</Detection>
		<DeviceDescription>
			<ModelName>Roku N1100</ModelName>
			<Manufacturer>Chaneru Inc</Manufacturer>
		</DeviceDescription>
		<MediaFormatProfiles>
			<MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_SD_AAC_MULT5</MediaFormatProfile>
			<MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_SD_MPEG1_L3</MediaFormatProfile>
			<MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_SD_AC3</MediaFormatProfile>
			<MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_HD_720p_AAC</MediaFormatProfile>
			<MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_HD_1080i_AAC</MediaFormatProfile>
			<MediaFormatProfile mime-type="video/mp4">AVC_MP4_HP_HD_AAC</MediaFormatProfile>
			<MediaFormatProfile mime-type="video/mp4">AVC_MP4_LPCM</MediaFormatProfile>
			<MediaFormatProfile mime-type="video/mp4">MPEG4_P2_MP4_ASP_AAC</MediaFormatProfile>
			<MediaFormatProfile mime-type="video/mp4">MPEG4_P2_MP4_SP_L6_AAC</MediaFormatProfile>
			<MediaFormatProfile mime-type="video/mp4">MPEG4_P2_MP4_NDSD</MediaFormatProfile>
			<MediaFormatProfile mime-type="audio/mpeg">MP3</MediaFormatProfile>
		</MediaFormatProfiles>
		<Transcoding>
			<!-- You may have to limit video rate if Roku rebuffers <Video targetContainer="applehttp" targetVCodec="h264" maxVBitrate="2000" targetACodec="aac"> -->
			<Video targetContainer="applehttp" targetVCodec="h264" targetACodec="aac">
				<Matches container="asf" />
				<Matches container="mpegvideo" />
				<Matches container="mpeg" />
				<Matches container="mpegts" />
				<Matches container="matroska" />
				<Matches container="avi" />
				<Matches container="flv" />
				<Matches container="wtv" />
				<Matches container="ogg" />
				<Matches container="3gp" />
				<Matches container="rtp" />
				<Matches container="rtsp" />
				<Matches container="rm" />
			</Video>
			<Audio targetContainer="mp3">
				<Matches container="lpcm" />
            	<Matches container="flac" />
            	<Matches container="ogg" />
            	<Matches container="mp4" />
				<!--<Matches container="*" /> -->
				<!-- Convert everything to mp3 -->
         	</Audio>
		  </Transcoding>
		<AutomaticImageRotation>true</AutomaticImageRotation>
	</Profile>
	
<!-- End add for Roku N1100 Model -->
</Profiles>