#----------------------------------------------------------------------------
# Profile for Samsung QLED 4K TVs from 2019+.
# See DefaultRenderer.conf for descriptions of all the available options.
#
# This is based on Samsung-UHD.conf but removes dts and divx support, which
# was removed from all Samsung TVs in 2019, and has more specific subtitles
# support.
#

RendererName = Samsung QLED 4K 2019+
RendererIcon = samsung-tv.png

# ============================================================================
# modelName=QN49Q70RAFXZA
# modelName=QN75Q90RAFXZA
# modelName=QE55QN95AATXXU
# modelName=TQ43Q68CAUXXC
# friendlyName=Samsung Q68CA 43, manufacturer=Samsung Electronics, modelName=TQ43Q68CAUXXC, modelNumber=AllShare1.0, modelDescription=Samsung TV DMR, manufacturerURL=http://www.samsung.com/sec, modelURL=http://www.samsung.com/sec
# modelName=QA65QE1DASXNZ
# modelName=UA65DU8000SXNZ
# modelName=QA65QE1CASXNZ
# modelName=UA65CU8500SXNZ
# modelName=QA65S90CASXNZ
# modelName=UA65AU7002SXNZ
# modelName=UA65BU8000SXNZ
# etc.
#
# Example manuals:
# http://downloadcenter.samsung.com/content/UM/201909/20190919132100565/MUSATSCR-4.0.0_EM_MUSE_USA_ENG-US_190731.0.pdf
# http://downloadcenter.samsung.com/content/UM/201910/20191024133448825/MUSDVBEUR-3.0.0_EM_MUSE_EU_ENG_190820.0.pdf
# ============================================================================
#
# 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
#

UserAgentSearch = (QA|QE|QN|UA|UE|GQ|TQ)\d{2}(Q|QN|RU|LS|QE|AU|BU|CU|DU|S)\d[\dBCD]|Samsung TV
UpnpDetailsSearch = (QA|QE|QN|UA|UE|GQ|TQ)\d{2}(Q|QN|RU|LS|QE|AU|BU|CU|DU|S)\d[\dBCD](.*)Samsung TV
LoadingPriority = 1

TranscodeVideo = MPEGTS-H264-AC3
TranscodeFastStart = true
SeekByTime = true
UseClosedCaption = true
SubtitleHttpHeader = CaptionInfo.sec
NeedVersionedObjectId = true
AlbumArtProfile = JPEG_SM

MaxVideoWidth = 4096
MaxVideoHeight = 2160
# Samsung TV allow up to H264 5.1
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             v:h264                               a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/avi                 w:4096   h:2160   b:600000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:avi             v:mjpeg                              a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/avi                 w:3840   h:2160   b:800000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:avi             v:mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/avi                 w:1920   h:1080   b:200000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:mkv             v:h264                               a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/x-matroska          w:4096   h:2160   b:600000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G   si:ASS|SUBRIP|VOBSUB
Supported = f:mkv             v:h265                               a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/x-matroska          w:4096   h:2160   b:1000000000   se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G   si:ASS|SUBRIP|VOBSUB
Supported = f:mkv             v:mjpeg                              a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/x-matroska          w:3840   h:2160   b:800000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G   si:ASS|SUBRIP|VOBSUB
Supported = f:mkv             v:mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/x-matroska          w:1920   h:1080   b:200000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G   si:ASS|SUBRIP|VOBSUB
Supported = f:mp4             v:h264                               a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/mp4                 w:4096   h:2160   b:600000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G   si:TX3G
Supported = f:mp4             v:h265                               a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/mp4                 w:4096   h:2160   b:1000000000   se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G   si:TX3G
Supported = f:mp4             v:mjpeg                              a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/mp4                 w:3840   h:2160   b:800000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G   si:TX3G
Supported = f:mp4             v:mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/mp4                 w:1920   h:1080   b:200000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G   si:TX3G
Supported = f:3gp             v:h264                               a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/3gpp                w:4096   h:2160   b:600000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:3gp             v:mjpeg                              a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/3gpp                w:3840   h:2160   b:800000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:3gp             v:mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/3gpp                w:1920   h:1080   b:200000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:mov             v:h264                               a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/quicktime           w:4096   h:2160   b:600000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:mov             v:mjpeg                              a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/quicktime           w:3840   h:2160   b:800000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:mov             v:mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/quicktime           w:1920   h:1080   b:200000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:flv             v:h264                               a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/x-flv               w:4096   h:2160   b:600000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:flv             v:mjpeg                              a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/x-flv               w:3840   h:2160   b:800000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:flv             v:mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/x-flv               w:1920   h:1080   b:200000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:mpegps          v:h264                               a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/mpeg                w:4096   h:2160   b:600000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:mpegps          v:mjpeg                              a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/mpeg                w:3840   h:2160   b:800000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:mpegps          v:mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/mpeg                w:1920   h:1080   b:200000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:mpegts          v:h264                               a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/vnd.dlna.mpeg-tts   w:4096   h:2160   b:600000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:mpegts          v:mjpeg                              a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/vnd.dlna.mpeg-tts   w:3840   h:2160   b:800000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:mpegts          v:mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/vnd.dlna.mpeg-tts   w:1920   h:1080   b:200000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:mpegts          v:h265                               a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/vnd.dlna.mpeg-tts   w:4096   h:2160   b:1000000000   se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:wmv             v:h264                               a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/x-ms-wmv	           w:4096   h:2160   b:600000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:wmv             v:mjpeg                              a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/x-ms-wmv	           w:3840   h:2160   b:800000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:wmv             v:mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/x-ms-wmv	           w:1920   h:1080   b:200000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:asf             v:h264                               a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/x-ms-asf	           w:4096   h:2160   b:600000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:asf             v:mjpeg                              a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/x-ms-asf	           w:3840   h:2160   b:800000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:asf             v:mp4|mpeg1|mpeg2|vc1|wmv|h263|vp6   a:ac3|lpcm|adpcm|aac-lc|he-aac|wma|eac3|mp3   m:video/x-ms-asf	           w:1920   h:1080   b:200000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:webm            v:vp8                                a:vorbis                                      m:video/webm                w:1920   h:1080   b:200000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G
Supported = f:webm            v:vp9                                a:vorbis                                      m:video/webm                w:3840   h:2160   b:800000000    se:ASS|MICRODVD|SAMI|SUBRIP|TEXT|TX3G

# 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
