<Profiles version="1.0">

	<Profile id="viera2015" name="Panasonic Viera (2015)" extendsProfileId="1">
		<!-- Panasonic Viera 2015 Models: 
			LED/LCD's: CS610, CS650
		Supports native streaming of mainstream MP4, MKV and XVid files -->
		<Detection>
			<UPnPSearch>
				<FriendlyName>.*CS6(1|5)0_Series.*</FriendlyName>
				<Manufacturer>Panasonic</Manufacturer>
			</UPnPSearch>
		</Detection>
		<ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PacketVideoDLNAMessageBuilder</ContentDirectoryMessageBuilder>
		<Transcoding>
			<!-- Transcode h265 videos and a few others to mpegts with ac3 audio -->
			<Video targetContainer="mpegts" targetVCodec="mpeg2video" DAR="16:9" targetACodec="ac3" aBitrate="384" forceInheritance="true">
				<Matches container="*" vCodec="h265" />
				<Matches container="*" vCodec="h264" profile="high_10" />
				<Matches container="mp4" vCodec="mjpeg" />
				<Matches container="mpeg" vCodec="mpeg1video" />
				<Matches container="matroska" vCodec="vp8" />		
				<Matches container="matroska" vCodec="vp9" />
				<Matches container="ogg" />
				<Matches container="rm" />
			</Video>
			<!-- remux DTS/DTS-HD/TrueHD to AC3 -->
			<Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384" forceInheritance="true">
				<!-- Matches container="*" vCodec="h264" aCodec="dca" / -->
				<Matches container="*" vCodec="h264" aCodec="dts-hd" />
				<Matches container="*" vCodec="h264" aCodec="truehd" />
			</Video>
			<!-- Transcode DivX (XVid is supported) -->
			<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
				<Matches container="avi" vCodec="mpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" /> 
				<Matches container="avi" vCodec="msmpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
				<Matches container="avi" vCodec="dvvideo" />
			</Video>
			<!-- unsupported audio will be transcoded into lpcm audio -->
			<Audio targetContainer="lpcm" forceInheritance="true">
				<Matches container="ogg" />
				<Matches container="asf" />
				<Matches container="adts" />
				<Matches container="wv" />
				<Matches container="mpc" />
				<Matches container="ape" />
				<Matches container="dsf" />
			</Audio>
		</Transcoding>
		<AudioTrackRemux>
			<Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
				<Matches container="*" vCodec="h264" />
				<Matches container="*" vCodec="mpeg2video" /> 
				<Matches container="*" vCodec="mpeg1video" />
				<Matches container="*" vCodec="mpeg4" />
				<Matches container="*" vCodec="msmpeg4" />
			</Video>
		</AudioTrackRemux>
		<GenericTranscoding>
			<Video targetContainer="mpegts" targetVCodec="mpeg2video" DAR="16:9" targetACodec="ac3" aBitrate="384" />
		</GenericTranscoding>
		<Subtitles>
			<SoftSubs mime-type="text/srt" character-encoding="utf-8" />
		</Subtitles>	
		<ThumbnailsResolution>HD</ThumbnailsResolution>
	</Profile>

</Profiles>