Skip to content

Instantly share code, notes, and snippets.

@iAmMrinal0
Created June 20, 2015 13:12
Show Gist options
  • Save iAmMrinal0/dddcfe52e7e09266d8fe to your computer and use it in GitHub Desktop.
Save iAmMrinal0/dddcfe52e7e09266d8fe to your computer and use it in GitHub Desktop.
Plex DLNA profile for Sony Bravia 2014 models
<?xml version="1.0" encoding="utf-8"?>
<Client name="Sony Bravia 2014">
<Identification>
<Header name="X-AV-Client-Info" regex=".*(KDL-\d{2}W[5-9]\d{2}B|KDL-\d{2}R480|XBR-\d{2}X[89]\d{2}B|KD-\d{2}[SX][89]\d{3}B).*" />
<DeviceDescription>
<Manufacturer substring="Sony" />
<FriendlyName regex="(KDL-\d{2}W[5-9]\d{2}B|KDL-\d{2}R480|XBR-\d{2}X[89]\d{2}B|KD-\d{2}[SX][89]\d{3}B).*" />
</DeviceDescription>
</Identification>
<DeviceDescription>
<ModelName>Windows Media Player Sharing</ModelName>
<ModelNumber>3.0</ModelNumber>
<ModelUrl>http://www.microsoft.com/</ModelUrl>
<Manufacturer>Microsoft Corporation</Manufacturer>
<ManufacturerUrl>http://www.microsoft.com/</ManufacturerUrl>
<X-DlnaCap />
<Sony-AggregationFlags>10</Sony-AggregationFlags>
</DeviceDescription>
<Settings>
<Setting name="AlbumArtPN" value="JPEG_TN" />
<Setting name="EmitAlbumArtResources" value="true" />
</Settings>
<TranscodeTargets>
<VideoProfile container="mpegts" codec="h264" audioCodec="ac3,aac">
<Setting name="MpegtsM2tsMode" value="true" />
</VideoProfile>
<MusicProfile container="mp3" codec="mp3" />
<PhotoProfile container="jpeg" />
</TranscodeTargets>
<DirectPlayProfiles>
<VideoProfile container="asf" codec="wmv2,wmv3,vc1" audioCodec="wmav2,wmapro,wmavoice" />
<VideoProfile container="avi" codec="mjpeg" audioCodec="pcm,pcm_u8" />
<VideoProfile container="avi" codec="mpeg4" audioCodec="ac3,eac3,mp3" />
<VideoProfile container="mkv" codec="h264,mpeg4,vp8" audioCodec="aac,ac3,eac3,dca,mp2,mp3,pcm,vorbis" />
<VideoProfile container="mp4" codec="h264,mpeg4" audioCodec="aac,ac3,eac3,mp2,mp3" />
<VideoProfile container="mpeg" codec="mpeg2video,mpeg1video" audioCodec="pcm,mp2,mp3" />
<VideoProfile container="mpegts" codec="h264" audioCodec="aac,ac3,eac3,mp2,mp3" />
<VideoProfile container="mpegts" codec="mpeg2video" audioCodec="aac,ac3,eac3,mp2,mp3" />
<VideoProfile container="mov" codec="h264,mpeg4,mjpeg" audioCodec="aac,ac3,eac3,mp2,mp3,pcm_u8" />
<MusicProfile container="mp3" codec="mp3" />
<MusicProfile container="mp4" codec="aac" />
<MusicProfile container="wav" codec="pcm,pcm_u8" />
<MusicProfile container="asf" codec="wmav2,wmapro,wmavoice" />
<PhotoProfile container="jpeg" />
</DirectPlayProfiles>
<CodecProfiles>
<VideoCodec name="*">
<Limitations>
<UpperBound name="video.width" value="1920" />
<UpperBound name="video.height" value="1080" />
</Limitations>
</VideoCodec>
</CodecProfiles>
<ContainerProfiles>
<PhotoContainer name="*">
<Limitations>
<UpperBound name="media.width" value="1920" />
<UpperBound name="media.height" value="1080" />
</Limitations>
</PhotoContainer>
</ContainerProfiles>
<DlnaMediaProfiles>
<DlnaVideoProfile container="mpegts" codec="h264" audioCodec="ac3,aac,mp3" pn="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T" mimeType="video/vnd.dlna.mpeg-tts">
<Limitations>
<Match name="video.packetLength" value="192" />
<Match name="video.timeStamp" value="1" />
</Limitations>
</DlnaVideoProfile>
<DlnaVideoProfile container="mpegts" codec="h264" audioCodec="ac3,aac,mp3" pn="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO" mimeType="video/mpeg">
<Limitations>
<Match name="video.packetLength" value="188" />
</Limitations>
</DlnaVideoProfile>
<DlnaVideoProfile container="mpegts" codec="h264" audioCodec="ac3,aac,mp3" pn="AVC_TS_HD_24_AC3,AVC_TS_HD_50_AC3,AVC_TS_HD_60_AC3,AVC_TS_HD_EU" mimeType="video/vnd.dlna.mpeg-tts" />
<DlnaVideoProfile container="mpegts" codec="mpeg2video" pn="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO" mimeType="video/vnd.dlna.mpeg-tts" />
<DlnaVideoProfile container="mpeg" codec="mpeg1video,mpeg2video" pn="MPEG_PS_NTSC,MPEG_PS_PAL" mimeType="video/mpeg" />
<DlnaVideoProfile container="mpeg" codec="mpeg1video,mpeg2video" pn="MPEG_PS_NTSC,MPEG_PS_PAL" mimeType="video/mpeg" />
<DlnaVideoProfile container="mpeg" codec="mpeg1video,mpeg2video" pn="MPEG_PS_NTSC,MPEG_PS_PAL" mimeType="video/mpeg" />
<DlnaVideoProfile container="avi" pn="" mineType="video/avi" />
</DlnaMediaProfiles>
</Client>
@chris299
Copy link

chris299 commented Nov 8, 2023

@iAmMrinal0 I try to get my BRAVIA of 2012 to play DLNA streams from PLEX, but I don't understand why some MPEGTS/H264 work and some don't not how to modify transcoding to deliver a working stream (which currently does not work)....
do you have more insights on how to modify a profile to make it work for all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment