Page 1 of 2

Can't play 4k files on new TV

Posted: Tue Jun 30, 2020 1:34 am
by j1mmers
Hey everyone.

I'm having issues playing 4K files on my new Sony X900h TV. They used to play fine on my previous Samsung TV.

I've tried a few different renderers and making one myself, but I keep getting the same result.

Buffer read ArrayIndexOutOfBoundsException error:
readCount: "1195381008"
maxMemorySize: "209715200"

Any help would be great! :D

Re: Can't play 4k files on new TV

Posted: Thu Jul 02, 2020 12:54 am
by j1mmers
Any ideas?

I've been playing around more with trying to make my own renderer file but I can't seem to get any further ahead.

Re: Can't play 4k files on new TV

Posted: Thu Jul 02, 2020 8:44 am
by SubJunk
Looking at the renderer file Sony x900H.conf, thre are a lot of different resolution limits specified.
If you are trying to play "Onward.mkv", that is failing to stream to the TV because its bitrate and resolution are higher than the MKV entry in the config. I have modified that config to change that case:

Code: Select all

#----------------------------------------------------------------------------
# Profile for Sony Bravia XBR series TVs.
# See DefaultRenderer.conf for descriptions of all the available options.
#

RendererName = Sony Bravia x900H
RendererIcon = braviaxbr.png

# ============================================================================
# This renderer has sent the following string/s:
#
# User-Agent: UPnP/1.0, X-AV-Physical-Unit-Info: pa="BRAVIA X900H";, X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA X900H"; mv="1.7";
# User-Agent: UPnP/1.0 DLNADOC/1.50, X-AV-Physical-Unit-Info: pa="BRAVIA XBR-55X900A";, X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA X900H"; mv="1.7";
# ---
# User-Agent: UPnP/1.0, X-AV-Physical-Unit-Info: pa="BRAVIA X900H";, X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA X900H"; mv="1.7";
# User-Agent: UPnP/1.0 DLNADOC/1.50, X-AV-Physical-Unit-Info: pa="BRAVIA XBR-55HX929";, X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA X900H"; mv="1.7";
# ============================================================================
#

UserAgentAdditionalHeader = X-AV-Client-Info
UserAgentAdditionalHeaderSearch = Sony Bravia x900H-[0-9][0-9]
UpnpDetailsSearch = Sony , XBR-[0-9][0-9]

SeekByTime = true
DLNALocalizationRequired = true
TranscodeAudio = WAV
MuxNonMod4Resolution = true
CreateDLNATreeFaster = true
MediaParserV2_ThumbnailGeneration = true
AccurateDLNAOrgPN = true
WrapDTSIntoPCM = true
HalveBitrate = true
MediaInfo = true

# The supported formats below were taken from the following link:
# http://docs.esupport.sony.com/imanual/NA/2013/XBR55-65X900A/uc_uen/codeclist.html#4

# Supported video formats:
#Supported = f:3gp|3g2         v:h264|mp4               a:aac-lc|ac3               m:video/3gpp
#Supported = f:avi             v:mp4|mjpeg              a:mp3|lpcm|mpa|ac3
#Supported = f:flv                                                                 m:video/x-flv
#Supported = f:mkv             v:mp4|h264               a:dts|ac3|aac-lc|mpa|ogg   m:video/x-matroska
#Supported = f:mov             v:mp4|h264|mjpeg         a:aac-lc|ac3|mpa|lpcm      m:video/quicktime
#Supported = f:mp4|m4v         v:mp4|h264               a:ac3|mpa|aac-lc           m:video/mp4
#Supported = f:mpegps|mpegts   v:mpeg1|mpeg2|mp4|h264   a:ac3|lpcm|aac-lc|mpa      m:video/mpeg
#Supported = f:wmv             v:wmv|vc1                a:wma                      m:video/x-ms-wmv     n:2

# Supported audio formats:
#Supported = f:3ga|3g2a  a:aac-lc                     m:audio/mp4
#Supported = f:m4a                    n:2             m:audio/x-m4a      a:(?!alac).+
#Supported = f:mp3                    n:2             m:audio/mpeg
#Supported = f:wav       a:dts|lpcm   n:6   s:48000   m:audio/wav
#Supported = f:wav                    n:2   s:48000   m:audio/wav
#Supported = f:wma                    n:2             m:audio/x-ms-wma

#MaxVideoWidth = 3840
#MaxVideoHeight = 2160
#H264Level41Limited = false
#SupportedVideoBitDepths = 8,10

#Video
#Audio
#Image
#TranscodeVideo = MPEGTS-H264-AC3
#TranscodeAudio =










TranscodeVideo = MPEGTS-H264-AC3
DefaultVBVBufSize = true
MaxVideoWidth = 4096
MaxVideoHeight = 2160
MuxDTSToMpeg = true
SupportedVideoBitDepths = 8,10
SeekByTime = exclusive
SubtitleHttpHeader = CaptionInfo.sec
PrependTrackNumbers = true
CharMap = / :
MediaInfo = true

# Supported video formats:
Supported = f:3gp        v:h264|h265|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv   a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/3gpp
Supported = f:avi  	 	 v:h264|h265|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv   a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000	 se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/avi
Supported = f:flv        v:h264|h265|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv   a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/x-flv
Supported = f:mp4        v:h264|h265|mp4|mpeg1|mpeg2|vc1|vp6|wmv   		 a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000 	 se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/mp4
Supported = f:mp4        v:mjpeg   										 a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:3840 h:2160	b:80000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/mp4
Supported = f:mkv        v:h264|h265|mp4|mpeg1|mpeg2|vc1|vp6|wmv   		 a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma       se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/x-mkv
Supported = f:mkv        v:mjpeg   										 a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:3840 h:2160	b:80000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/x-mkv
Supported = f:mov        v:h264|h265|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv   a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/quicktime
Supported = f:mpegps     v:h264|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv        a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/mpeg
Supported = f:mpegts     v:h264|h265|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv	 a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/mpeg
Supported = f:webm       v:vp8                                           a:vorbis                                     w:1920 h:1080 b:20000000	 se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/webm
Supported = f:webm       v:vp9                                           a:vorbis                                     w:3840 h:2160	b:80000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/webm
Supported = f:wmv        v:h264|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv        a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/x-ms-wmv
Supported = f:asf      	 v:h264|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv        a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/x-ms-asf

# Supported audio formats:
Supported = f:m4a    m:audio/x-m4a
Supported = f:aiff   m:audio/L16
Supported = f:flac   m:audio/flac
Supported = f:mp3    m:audio/mpeg
Supported = f:ogg    m:audio/x-ogg
Supported = f:wma    m:audio/x-ms-wma
Supported = f:wav    m:audio/wav

# Supported subtitles formats:
SupportedExternalSubtitlesFormats = ASS,MICRODVD,SAMI,SUBRIP
SupportedInternalSubtitlesFormats = ASS,SUBRIP,VOBSUB
The config is still pretty messy but I understand you are experimenting with it which is great. Let me know how it goes with this and I can continue to help

Re: Can't play 4k files on new TV

Posted: Fri Jul 03, 2020 9:20 am
by j1mmers
SubJunk wrote: Thu Jul 02, 2020 8:44 am Looking at the renderer file Sony x900H.conf, thre are a lot of different resolution limits specified.
If you are trying to play "Onward.mkv", that is failing to stream to the TV because its bitrate and resolution are higher than the MKV entry in the config. I have modified that config to change that case:

Code: Select all

#----------------------------------------------------------------------------
# Profile for Sony Bravia XBR series TVs.
# See DefaultRenderer.conf for descriptions of all the available options.
#

RendererName = Sony Bravia x900H
RendererIcon = braviaxbr.png

# ============================================================================
# This renderer has sent the following string/s:
#
# User-Agent: UPnP/1.0, X-AV-Physical-Unit-Info: pa="BRAVIA X900H";, X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA X900H"; mv="1.7";
# User-Agent: UPnP/1.0 DLNADOC/1.50, X-AV-Physical-Unit-Info: pa="BRAVIA XBR-55X900A";, X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA X900H"; mv="1.7";
# ---
# User-Agent: UPnP/1.0, X-AV-Physical-Unit-Info: pa="BRAVIA X900H";, X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA X900H"; mv="1.7";
# User-Agent: UPnP/1.0 DLNADOC/1.50, X-AV-Physical-Unit-Info: pa="BRAVIA XBR-55HX929";, X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA X900H"; mv="1.7";
# ============================================================================
#

UserAgentAdditionalHeader = X-AV-Client-Info
UserAgentAdditionalHeaderSearch = Sony Bravia x900H-[0-9][0-9]
UpnpDetailsSearch = Sony , XBR-[0-9][0-9]

SeekByTime = true
DLNALocalizationRequired = true
TranscodeAudio = WAV
MuxNonMod4Resolution = true
CreateDLNATreeFaster = true
MediaParserV2_ThumbnailGeneration = true
AccurateDLNAOrgPN = true
WrapDTSIntoPCM = true
HalveBitrate = true
MediaInfo = true

# The supported formats below were taken from the following link:
# http://docs.esupport.sony.com/imanual/NA/2013/XBR55-65X900A/uc_uen/codeclist.html#4

# Supported video formats:
#Supported = f:3gp|3g2         v:h264|mp4               a:aac-lc|ac3               m:video/3gpp
#Supported = f:avi             v:mp4|mjpeg              a:mp3|lpcm|mpa|ac3
#Supported = f:flv                                                                 m:video/x-flv
#Supported = f:mkv             v:mp4|h264               a:dts|ac3|aac-lc|mpa|ogg   m:video/x-matroska
#Supported = f:mov             v:mp4|h264|mjpeg         a:aac-lc|ac3|mpa|lpcm      m:video/quicktime
#Supported = f:mp4|m4v         v:mp4|h264               a:ac3|mpa|aac-lc           m:video/mp4
#Supported = f:mpegps|mpegts   v:mpeg1|mpeg2|mp4|h264   a:ac3|lpcm|aac-lc|mpa      m:video/mpeg
#Supported = f:wmv             v:wmv|vc1                a:wma                      m:video/x-ms-wmv     n:2

# Supported audio formats:
#Supported = f:3ga|3g2a  a:aac-lc                     m:audio/mp4
#Supported = f:m4a                    n:2             m:audio/x-m4a      a:(?!alac).+
#Supported = f:mp3                    n:2             m:audio/mpeg
#Supported = f:wav       a:dts|lpcm   n:6   s:48000   m:audio/wav
#Supported = f:wav                    n:2   s:48000   m:audio/wav
#Supported = f:wma                    n:2             m:audio/x-ms-wma

#MaxVideoWidth = 3840
#MaxVideoHeight = 2160
#H264Level41Limited = false
#SupportedVideoBitDepths = 8,10

#Video
#Audio
#Image
#TranscodeVideo = MPEGTS-H264-AC3
#TranscodeAudio =










TranscodeVideo = MPEGTS-H264-AC3
DefaultVBVBufSize = true
MaxVideoWidth = 4096
MaxVideoHeight = 2160
MuxDTSToMpeg = true
SupportedVideoBitDepths = 8,10
SeekByTime = exclusive
SubtitleHttpHeader = CaptionInfo.sec
PrependTrackNumbers = true
CharMap = / :
MediaInfo = true

# Supported video formats:
Supported = f:3gp        v:h264|h265|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv   a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/3gpp
Supported = f:avi  	 	 v:h264|h265|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv   a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000	 se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/avi
Supported = f:flv        v:h264|h265|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv   a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/x-flv
Supported = f:mp4        v:h264|h265|mp4|mpeg1|mpeg2|vc1|vp6|wmv   		 a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000 	 se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/mp4
Supported = f:mp4        v:mjpeg   										 a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:3840 h:2160	b:80000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/mp4
Supported = f:mkv        v:h264|h265|mp4|mpeg1|mpeg2|vc1|vp6|wmv   		 a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma       se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/x-mkv
Supported = f:mkv        v:mjpeg   										 a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:3840 h:2160	b:80000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/x-mkv
Supported = f:mov        v:h264|h265|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv   a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/quicktime
Supported = f:mpegps     v:h264|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv        a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/mpeg
Supported = f:mpegts     v:h264|h265|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv	 a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/mpeg
Supported = f:webm       v:vp8                                           a:vorbis                                     w:1920 h:1080 b:20000000	 se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/webm
Supported = f:webm       v:vp9                                           a:vorbis                                     w:3840 h:2160	b:80000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/webm
Supported = f:wmv        v:h264|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv        a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/x-ms-wmv
Supported = f:asf      	 v:h264|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv        a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma    w:1920 h:1080 b:20000000   se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB  m:video/x-ms-asf

# Supported audio formats:
Supported = f:m4a    m:audio/x-m4a
Supported = f:aiff   m:audio/L16
Supported = f:flac   m:audio/flac
Supported = f:mp3    m:audio/mpeg
Supported = f:ogg    m:audio/x-ogg
Supported = f:wma    m:audio/x-ms-wma
Supported = f:wav    m:audio/wav

# Supported subtitles formats:
SupportedExternalSubtitlesFormats = ASS,MICRODVD,SAMI,SUBRIP
SupportedInternalSubtitlesFormats = ASS,SUBRIP,VOBSUB
The config is still pretty messy but I understand you are experimenting with it which is great. Let me know how it goes with this and I can continue to help
Really appreciate the help! If you don't me asking which line(s) did you edit? I see a few mkv entries but don't see anything on the lines that reference resolution. I see 1080p entries for other video codecs. I'd love to learn it better.

Unfortunately it still didn't work though. New logs are attached.

Re: Can't play 4k files on new TV

Posted: Fri Jul 03, 2020 9:27 am
by Nadahar
Feed both files into a diff application, for example https://www.diffchecker.com/, and you will see what has been modified.

Re: Can't play 4k files on new TV

Posted: Fri Jul 03, 2020 1:09 pm
by j1mmers
Nadahar wrote: Fri Jul 03, 2020 9:27 am Feed both files into a diff application, for example https://www.diffchecker.com/, and you will see what has been modified.
Thanks! This helps a ton!

Re: Can't play 4k files on new TV

Posted: Fri Jul 03, 2020 6:33 pm
by SubJunk
I have two more suggestions for you:
Remove the line:

HalveBitrate = true

and change:

Supported = f:mpegts v:h264|h265|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma w:1920 h:1080 b:20000000 se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB m:video/mpeg

to:

Supported = f:mpegts v:h264|h265|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma w:1920 h:1080 b:20000000 se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB m:video/vnd.dlna.mpeg-tts

Also if you can try this build it might help https://www.universalmediaserver.com/up ... 03f2fc.exe

Re: Can't play 4k files on new TV

Posted: Sat Jul 04, 2020 8:54 am
by j1mmers
SubJunk wrote: Fri Jul 03, 2020 6:33 pm I have two more suggestions for you:
Remove the line:

HalveBitrate = true

and change:

Supported = f:mpegts v:h264|h265|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma w:1920 h:1080 b:20000000 se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB m:video/mpeg

to:

Supported = f:mpegts v:h264|h265|mjpeg|mp4|mpeg1|mpeg2|vc1|vp6|wmv a:aac-lc|he-aac|ac3|dts|eac3|lpcm|mp3|wma w:1920 h:1080 b:20000000 se:ASS|MICRODVD|SAMI|SUBRIP si:ASS|SUBRIP|VOBSUB m:video/vnd.dlna.mpeg-tts

Also if you can try this build it might help https://www.universalmediaserver.com/up ... 03f2fc.exe
I tried the above suggestions and new build of UMS but it's still not working. It now tries to play the file but after a good 30 seconds of trying it just quits. No error message displayed on the TV like before.

Re: Can't play 4k files on new TV

Posted: Sat Jul 04, 2020 9:00 am
by SubJunk
Please provide logs from this version and I'll try to see what is happening

Re: Can't play 4k files on new TV

Posted: Sat Jul 04, 2020 1:21 pm
by j1mmers
Really appreciate the help and support with this. I've attached the latest log files.