#----------------------------------------------------------------------------
# Profile for Samsung LED UHD TVs.
# See DefaultRenderer.conf for descriptions of all the available options.
# See https://www.universalmediaserver.com/forum/viewtopic.php?t=8887
#

RendererName = Samsung LED UHD
RendererIcon = samsung-tv.png

# ============================================================================
# This renderer has sent the following string/s:
#
# USER-AGENT: DLNADOC/1.50 SEC_HHP_[TV] UE88KS9810/1.0 UPnP/1.0
# friendlyName=[TV] UE88KS9810
# manufacturer=Samsung Electronics
# modelName=UE88KS9810
# modelNumber=AllShare1.0
# modelDescription=Samsung TV DMR
# manufacturerUrl=http://www.samsung.com/sec
# modelUrl=http://www.samsung.com/sec
#
# modelName=UN65KS8000FXZA
# modelName=UE65KS9002T
# modelName=UE88KS9810
# modelName=UE55MU6170U
# modelName=UE43RU7179UXZG
# ============================================================================
#
# as friendlyName and USER-AGENT can be changed in the TV menu, we can't rely on it
# we will rely on modelName and modelDescription
#
# Upgrade to latest firmware on old models to enable all codecs
#

UserAgentSearch = U[NEA]\d{2}[H-Z][SU]\d{4}
UpnpDetailsSearch = U[NEA]\d{2}[H-Z][SU]\d{4}
LoadingPriority = 1

TranscodeVideo = MPEGTS-H264-AC3
TranscodeFastStart = true
# https://github.com/UniversalMediaServer/UniversalMediaServer/issues/4272
SeekByTime = exclusive
UseClosedCaption = true
SubtitleHttpHeader = CaptionInfo.sec

# https://github.com/UniversalMediaServer/UniversalMediaServer/issues/4272
ChunkedTransfer = true

MaxVideoWidth = 4096
MaxVideoHeight = 2160
H264LevelLimit = 5.1
# some Samsung UHD display are 8 bits, but all are 12 bits capable (dithering)
SupportedVideoBitDepths = 8,10,12

#HEVC codec is only available in MKV/MP4/TS containers.
#VC1 AP L4 is not supported

# Supported video formats:
Supported = f:avi|divx        v:h264                                    a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/avi                 w:4096   h:2160   b:320000000
Supported = f:avi|divx        v:mjpeg                                   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/avi                 w:4096   h:2160   b:640000000
Supported = f:avi|divx        v:divx|mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/avi                 w:1920   h:1080   b:160000000
Supported = f:mkv             v:h264                                    a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/x-matroska          w:4096   h:2160   b:320000000
Supported = f:mkv             v:h265|mjpeg                              a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts|truehd   m:video/x-matroska          w:4096   h:2160   b:640000000
Supported = f:mkv             v:divx|mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/x-matroska          w:1920   h:1080   b:160000000
Supported = f:mp4             v:h264                                    a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/mp4                 w:4096   h:2160   b:320000000
Supported = f:mp4             v:h265|mjpeg                              a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/mp4                 w:4096   h:2160   b:640000000
Supported = f:mp4             v:divx|mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/mp4                 w:1920   h:1080   b:160000000
Supported = f:3gp             v:h264                                    a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/3gpp                w:4096   h:2160   b:320000000
Supported = f:3gp             v:mjpeg                                   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/3gpp                w:4096   h:2160   b:640000000
Supported = f:3gp             v:divx|mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/3gpp                w:1920   h:1080   b:160000000
Supported = f:mov             v:h264                                    a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/quicktime           w:4096   h:2160   b:320000000
Supported = f:mov             v:mjpeg                                   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/quicktime           w:4096   h:2160   b:640000000
Supported = f:mov             v:divx|mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/quicktime           w:1920   h:1080   b:160000000
Supported = f:flv             v:h264                                    a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/x-flv               w:4096   h:2160   b:320000000
Supported = f:flv             v:mjpeg                                   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/x-flv               w:4096   h:2160   b:640000000
Supported = f:flv             v:divx|mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/x-flv               w:1920   h:1080   b:160000000
Supported = f:mpegps          v:h264                                    a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/mpeg                w:4096   h:2160   b:320000000
Supported = f:mpegps          v:mjpeg                                   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/mpeg                w:4096   h:2160   b:640000000
Supported = f:mpegps          v:divx|mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/mpeg                w:1920   h:1080   b:160000000
Supported = f:mpegts          v:h264                                    a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/vnd.dlna.mpeg-tts   w:4096   h:2160   b:320000000
Supported = f:mpegts          v:mjpeg                                   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/vnd.dlna.mpeg-tts   w:4096   h:2160   b:640000000
Supported = f:mpegts          v:divx|mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/vnd.dlna.mpeg-tts   w:1920   h:1080   b:160000000
Supported = f:mpegts          v:h265                                    a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/vnd.dlna.mpeg-tts   w:4096   h:2160   b:640000000
Supported = f:wmv             v:h264                                    a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/x-ms-wmv            w:4096   h:2160   b:320000000
Supported = f:wmv             v:mjpeg                                   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/x-ms-wmv            w:4096   h:2160   b:640000000
Supported = f:wmv             v:divx|mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/x-ms-wmv            w:1920   h:1080   b:160000000
Supported = f:asf             v:h264                                    a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/x-ms-asf            w:4096   h:2160   b:320000000
Supported = f:asf             v:mjpeg                                   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/x-ms-asf            w:4096   h:2160   b:640000000
Supported = f:asf             v:divx|mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3|dts          m:video/x-ms-asf            w:1920   h:1080   b:160000000
Supported = f:webm            v:vp8                                     a:vorbis                                                 m:video/webm                w:1920   h:1080   b:160000000
Supported = f:webm            v:vp9                                     a:vorbis                                                 m:video/webm                w:4096   h:2160   b:160000000

# Supported audio formats:
Supported = f:aac   	 m:audio/x-m4a
Supported = f:aiff   	 m:audio/L16
Supported = f:alac   	 m:audio/m4a
Supported = f:ape   	 m:audio/ape
Supported = f:mp3   	 m:audio/mpeg
Supported = f:flac   	 m:audio/x-flac		  n:2
Supported = f:vorbis   m:audio/vorbis		  n:2
Supported = f:wav   	 m:audio/wav
Supported = f:wma   	 m:audio/x-ms-wma

# Supported image formats:
Supported = f:bmp   m:image/bmp    w:4096    h:4096
Supported = f:jpg   m:image/jpeg   w:15360   h:8640
Supported = f:mpo   m:image/mpo    w:15360   h:8640
Supported = f:png   m:image/png    w:4096    h:4096

# Supported subtitles formats:
SupportedExternalSubtitlesFormats = SAMI,SUBRIP,MICRODVD,ASS,TEXT,TX3G
# todo : add when available - Powerdivx .psb
# todo : add when available - SMPTE-TT Text .xml
SupportedInternalSubtitlesFormats = DIVX,ASS,SUBRIP,VOBSUB,TX3G
# todo : add when available - TTML in smooth streaming MP4
# todo : add when available - SMPTE-TT Text MP4
# todo : add when available - SMPTE-TT PNG MP4