#----------------------------------------------------------------------------
# Profile for Samsung 2021 TVs.
# 43Q7*A/50Q7*A model, Q6*A/AU9 series
# See DefaultRenderer.conf for descriptions of all the available options.
#

RendererName = Samsung 2021 AU9/Q6/43Q7/50Q7
RendererIcon = samsung-tv.png

# ============================================================================
# Manual:
# https://downloadcenter.samsung.com/content/UM/202109/20210910124253866/OSNDVBEUA-7.2.0_EM_OSCAR_EU_ENG_210910.0.pdf
# starting page 157 (specs on page 162)
# ============================================================================
#
# As friendlyName and USER-AGENT can be changed in the TV menu, we can't rely on it
# we will rely on modelName
# modelName=QE85Q60AAUXXC / UE75AU9005KXXC
# ============================================================================
#
# try user agent even if most of time it's changed by user.
UserAgentSearch = SEC_HHP_.*(U[NEA]\d{2}AU9\d{3}|Q[NEA]\d{2}Q6\d{1}A|Q[NEA]43Q7\d{1}A|Q[NEA]50Q7\d{1}A)
UpnpDetailsSearch = U[NEA]\d{2}AU9\d{3}|Q[NEA]\d{2}Q6\d{1}A|Q[NEA]43Q7\d{1}A|Q[NEA]50Q7\d{1}A
LoadingPriority = 3

TranscodeVideo = HLS-MPEGTS-H264-AAC, MPEGTS-H264-AAC
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

Supported = f:hls             v:h264                                          a:aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|ac3|eac3                                m:application/x-mpegURL     w:4096   h:2160   b:600000000
Supported = f:mkv             v:h265                                          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-matroska          w:4096   h:2160   b:800000000   si:ASS|SUBRIP|VOBSUB
Supported = f:mkv             v:h264                                          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-matroska          w:4096   h:2160   b:600000000   si:ASS|SUBRIP|VOBSUB
Supported = f:mkv             v:av1                                           a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-matroska          w:3840   h:2160   b:400000000   si:ASS|SUBRIP|VOBSUB
Supported = f:mkv             v:mjpeg                                         a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-matroska          w:3840   h:2160   b:800000000   si:ASS|SUBRIP|VOBSUB
Supported = f:mkv             v:mp4|vc1|mpeg1|mpeg2|wmv|h263|vp6|mvc          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-matroska          w:1920   h:1080   b:200000000   si:ASS|SUBRIP|VOBSUB
Supported = f:mp4             v:h265                                          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/mp4                 w:4096   h:2160   b:800000000   si:TX3G
Supported = f:mp4             v:h264                                          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/mp4                 w:4096   h:2160   b:600000000   si:TX3G
Supported = f:mp4             v:av1                                           a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/mp4                 w:3840   h:2160   b:400000000   si:TX3G
Supported = f:mp4             v:mjpeg                                         a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/mp4                 w:3840   h:2160   b:800000000   si:TX3G
Supported = f:mp4             v:mp4|vc1|mpeg1|mpeg2|wmv|h263|vp6|mvc          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/mp4                 w:1920   h:1080   b:200000000   si:TX3G
Supported = f:mpegts          v:h265                                          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/mp2t                w:4096   h:2160   b:800000000
Supported = f:mpegts          v:h264                                          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/mp2t                w:4096   h:2160   b:600000000
Supported = f:mpegts          v:av1                                           a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/mp2t                w:3840   h:2160   b:400000000
Supported = f:mpegts          v:mjpeg                                         a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/mp2t                w:3840   h:2160   b:800000000
Supported = f:mpegts          v:mp4|vc1|mpeg1|mpeg2|wmv|h263|vp6|mvc          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/mp2t                w:1920   h:1080   b:200000000
Supported = f:mpeg|mpegps     v:h264                                          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/mpeg                w:4096   h:2160   b:600000000
Supported = f:mpeg|mpegps     v:av1                                           a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/mpeg                w:3840   h:2160   b:400000000
Supported = f:mpeg|mpegps     v:mjpeg                                         a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/mpeg                w:3840   h:2160   b:800000000
Supported = f:mpeg|mpegps     v:mp4|vc1|mpeg1|mpeg2|wmv|h263|vp6|mvc          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/mpeg                w:1920   h:1080   b:200000000
Supported = f:avi             v:h264                                          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/avi                 w:4096   h:2160   b:600000000   si:DIVX
Supported = f:avi             v:av1                                           a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/avi                 w:3840   h:2160   b:400000000   si:DIVX
Supported = f:avi             v:mjpeg                                         a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/avi                 w:3840   h:2160   b:800000000   si:DIVX
Supported = f:avi             v:mp4|vc1|mpeg1|mpeg2|wmv|h263|vp6|mvc          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/avi                 w:1920   h:1080   b:200000000   si:DIVX
Supported = f:asf             v:h264                                          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-ms-asf            w:4096   h:2160   b:600000000
Supported = f:asf             v:av1                                           a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-ms-asf            w:3840   h:2160   b:400000000
Supported = f:asf             v:mjpeg                                         a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-ms-asf            w:3840   h:2160   b:800000000
Supported = f:asf             v:mp4|vc1|mpeg1|mpeg2|wmv|h263|vp6|mvc          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-ms-asf            w:1920   h:1080   b:200000000
Supported = f:3gp             v:h264                                          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/3gp                 w:4096   h:2160   b:600000000
Supported = f:3gp             v:av1                                           a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/3gp                 w:3840   h:2160   b:400000000
Supported = f:3gp             v:mjpeg                                         a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/3gp                 w:3840   h:2160   b:800000000
Supported = f:3gp             v:mp4|vc1|mpeg1|mpeg2|wmv|h263|vp6|mvc          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/3gp                 w:1920   h:1080   b:200000000
Supported = f:mov             v:h264                                          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/quicktime           w:4096   h:2160   b:600000000
Supported = f:mov             v:av1                                           a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/quicktime           w:3840   h:2160   b:400000000
Supported = f:mov             v:mjpeg                                         a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/quicktime           w:3840   h:2160   b:800000000
Supported = f:mov             v:mp4|vc1|mpeg1|mpeg2|wmv|h263|vp6|mvc          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/quicktime           w:1920   h:1080   b:200000000
Supported = f:flv             v:h264                                          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-flv               w:4096   h:2160   b:600000000
Supported = f:flv             v:av1                                           a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-flv               w:3840   h:2160   b:400000000
Supported = f:flv             v:mjpeg                                         a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-flv               w:3840   h:2160   b:800000000
Supported = f:flv             v:mp4|vc1|mpeg1|mpeg2|wmv|h263|vp6|mvc          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-flv               w:1920   h:1080   b:200000000
Supported = f:wmv             v:h264                                          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-ms-wmv            w:4096   h:2160   b:600000000
Supported = f:wmv             v:av1                                           a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-ms-wmv            w:3840   h:2160   b:400000000
Supported = f:wmv             v:mjpeg                                         a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-ms-wmv            w:3840   h:2160   b:800000000
Supported = f:wmv             v:mp4|vc1|mpeg1|mpeg2|wmv|h263|vp6|mvc          a:ac3|lpcm|adpcm|aac-lc|aac-ltp|aac-main|aac-ssr|he-aac|wma|eac3|ac4|mp3|opus    m:video/x-ms-wmv            w:1920   h:1080   b:200000000

Supported = f:webm            v:vp8                                           a:vorbis                                                                         m:video/webm                w:1920   h:1080   b:200000000
Supported = f:webm            v:vp9                                           a:vorbis                                                                         m:video/webm                w:3840   h:2160   b:800000000
Supported = f:webm            v:av1                                           a:vorbis                                                                         m:video/webm                w:3840   h:2160   b:400000000

Supported = f:rm              v:rm                                            a:ralf                                                                m:application/vnd.rn-realmedia-vbr     w:1920   h:1080   b:200000000

# Supported audio formats:
Supported = f:aif|aiff   	 	m:audio/L16
Supported = f:ape   	 		m:audio/ape
Supported = f:mp3   	 		m:audio/mpeg
Supported = f:m4a|mpa|aac  		m:audio/x-m4a
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|jpeg   m:image/jpeg   w:15360   h:9024
Supported = f:mpo        m:image/mpo    w:15360   h:8640
Supported = f:png        m:image/png    w:4096    h:4096
Supported = f:heic       m:image/heic   w:12000   h:9000

# Supported subtitles formats:
SupportedExternalSubtitlesFormats = SAMI,SUBRIP,MICRODVD,ASS,TEXT,TX3G
# todo : add when available - SMPTE-TT Text .xml

#SupportedInternalSubtitlesFormats
# todo : for mp4 add when available - TTML in smooth streaming MP4 (added in ffmpeg 4.4)
# todo : for mp4 add when available - SMPTE-TT Text MP4
# todo : for mp4 add when available - SMPTE-TT PNG MP4
