<Profile id="98" name="Panasonic Viera (E, G-series)" extendsProfileId="1">	<ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PacketVideoDLNAMessageBuilder</ContentDirectoryMessageBuilder>
		<SubtitlesMimeType>text/srt</SubtitlesMimeType>

		<MediaFormatProfiles>
			<MediaFormatProfile mime-type="video/divx">AVI</MediaFormatProfile>
		</MediaFormatProfiles>

		<Transcoding>

			<!-- Transcode h264 videos with profile level > 4.1 to mpegts with mpeg2video and ac3 audio -->
			<!-- (attempt to avoid video "stuttering" due to memory limit at higher ref frame settings) -->
			<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
				<Matches container="avi" vCodec="h264" profile="high" levelGreaterThan="4.1" />
				<Matches container="avi" vCodec="h264" profile="main" levelGreaterThan="4.1" />
				<Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.1" />
				<Matches container="matroska" vCodec="h264" profile="main" levelGreaterThan="4.1" />
				<Matches container="mp4" vCodec="h264" profile="high" levelGreaterThan="4.1" />
				<Matches container="mp4" vCodec="h264" profile="main" levelGreaterThan="4.1" />
			</Video>

			<!-- Transcode audio in MP4 and MKV files to AC3 -->
			<Video targetContainer="mpegts" targetACodec="ac3">
				<Matches container="mp4" vCodec="h264" aCodec="lpcm"/>				
				<Matches container="matroska" vCodec="h264" aCodec="dca" />
				<Matches container="matroska" vCodec="h264" aCodec="flac" />
				<Matches container="matroska" vCodec="h264" aCodec="vorbis" />
				<Matches container="matroska" vCodec="h264" aCodec="truehd" />
			</Video>

			<!-- Remux mpeg2 video in MKV files to MPEG-TS -->
         		<Video targetContainer="mpegts">
				<Matches container="matroska" vCodec="mpeg2video" aCodec="ac3" />
				<Matches container="mp4" vCodec="mpeg2video" aCodec="ac3" />
	         	</Video>

			<!-- Remux WTV files to MPEG-PS with no transcoding-->
			<Video targetContainer="mpeg">
				<Matches container="wtv" />
			</Video>
			
			<!-- Transcode unsupported codecs to MPEG-PS, mpeg2 video and ac3 audio -->
			<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3">		
				<Matches container="avi" vCodec="dvvideo" />
				<Matches container="avi" vCodec="mjpeg" />
				<Matches container="mp4" vCodec="mjpeg" />
				<Matches container="mp4" vCodec="mpeg4" />
				<Matches container="matroska" vCodec="mpeg4"/>
				<Matches container="mpeg"/>
				<Matches container="asf" />
				<Matches container="flv" />
				<Matches container="ogg" />
				<Matches container="3gp" />  
			</Video>


			<!-- Transcode unsupported audio mp3 -->
	         	<Audio targetContainer="mp3">  
				<Matches container="mp4" />
				<Matches container="flac" />
				<Matches container="ogg" />
				<Matches container="asf" />
				<Matches container="adts" />
			</Audio>
		</Transcoding>		
	</Profile>