[Solved] Error when trying to play movie on Samsung SmartTV UE75KS8005

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
adron
Posts: 3
Joined: Sun Jan 20, 2019 12:06 am

[Solved] Error when trying to play movie on Samsung SmartTV UE75KS8005

Post by adron »

I have a problem playing back mp4 movie files downloaded from svt play on my Samsung SmartTV.

When I select a movie and hit play, the TV displays a loading progress indicator for a short time and then gives me an error message.

However the TV could play the same files when I used Windows 10 media sharing, so I figured that the files are ok. I figured out a workaround for these particular files, by adding the "mp4" extension to "Skip transcoding for the following extensions", the TV can play them, but then I do want transcoding for other files; that was the reason for switching to universal media server.

I have enabled tracing and restarted, then reproduced the issue with just one movie file in my library in order to reduce the size of the logs. The logs are attached to this post.

The movie that cannot play is from https://www.svtplay.se/video/254347/tim ... ickar-boll
The tool I used to download it is https://github.com/spaam/svtplay-dl

What should I do to fix this so it properly detects whether transcoding is needed and so that transcoding actually works?
Attachments
ums_dbg.zip
trace logs
(78.26 KiB) Downloaded 480 times
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Error when trying to play movie on Samsung SmartTV UE75KS8005

Post by Nadahar »

Svtplay has geolocation lockdown, so it's blocked from outside Sweden ;)
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Error when trying to play movie on Samsung SmartTV UE75KS8005

Post by Nadahar »

It seems that the problem is that UMS doesn't recognize the audio codec. Since it's registered as "undetermined" UMS can't evaluate if your TV can play the file and it falls back to transcoding. The question is why. The parsing isn't in your log (the parsing is cached, so it has probably been done earlier). To log the parsing, disable "use database" and restart UMS in trace mode. That will make UMS slower, but force the parsing to take place while being logged.

What you could also do it paste the MediaInfo output for the file (Open it in MediaInfo, select "text" output, select all, copy and paste it here).
adron
Posts: 3
Joined: Sun Jan 20, 2019 12:06 am

Re: Error when trying to play movie on Samsung SmartTV UE75KS8005

Post by adron »

I disabled the media library, hopefully that was what you meant by disabling database. I also ran MediaInfo for the file:

Code: Select all

General
Complete name                            : E:\download\filmer\timmy-kickar-boll\timmy.lamm.s01e10.timmy.kickar.boll-a87a292-svtplay.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 201 MiB
Duration                                 : 10 min 3 s
Overall bit rate mode                    : Constant
Overall bit rate                         : 2 799 kb/s
Writing application                      : Lavf58.25.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, RefFrames               : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 10 min 3 s
Bit rate mode                            : Constant
Bit rate                                 : 2 700 kb/s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.117
Stream size                              : 194 MiB (96%)
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC SBR
Format/Info                              : Advanced Audio Codec Low Complexity with Spectral Band Replication
Commercial name                          : HE-AAC
Format settings                          : Explicit
Codec ID                                 : mp4a-40-2
Duration                                 : 10 min 3 s
Bit rate mode                            : Constant
Bit rate                                 : 96.0 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 23.438 FPS (2048 SPF)
Compression mode                         : Lossy
Stream size                              : 6.81 MiB (3%)
Default                                  : Yes
Alternate group                          : 1
Attachments
ums_dbg.zip
trace log with media info for file
(78.06 KiB) Downloaded 474 times
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Error when trying to play movie on Samsung SmartTV UE75KS8005

Post by Nadahar »

Thanks, that's what I wanted. I don't remember the different labels used in the different versions, so it seems you found the correct option. The parsing was logged at least:

Code: Select all

TRACE 2019-01-21 13:46:42.627 [HTTPv2 Request Worker 13] net.pms.dlna.LibMediaInfoParser MediaInfo parsing results for "E:\download\filmer\timmy-kickar-boll\timmy.lamm.s01e10.timmy.kickar.boll-a87a292-svtplay.mp4":
  Format: "MPEG-4"              CodecID: "isom"               Duration: 0:10:03.280         Overall Bitrate Mode: CBR
  Overall Bitrate: 2798790      Cover: No                     FPS: 25.000
  - Video track ID: 1
    Format: "AVC"                 Profile: "[email protected]"          CodecID: "avc1"               Duration: 0:10:03.280
    BitRate Mode: CBR             Bitrate: 2699968              Width: 1280                   Height: 720
    Chroma: 4:2:0                 Matrix Co: BT.709             PAR: 1.000                    DAR: 16:9
    Scan Type: Progressive        FPS: 25.000                   Framerate Mode: CFR           RefFrames: 4
    Bit Depth: 8
  - Audio track ID: 2
    Format: "AAC"                 CodecID: "mp4a-40-2"          Duration: 0:10:03.264         BitRate Mode: CBR
    Bitrate: 96000                Channel(s): 2                 Samplerate: 48000
TRACE 2019-01-21 13:46:42.627 [HTTPv2 Request Worker 13] net.pms.formats.Format Parsing results for file "timmy.lamm.s01e10.timmy.kickar.boll-a87a292-svtplay.mp4": Container: MP4, Size: 211056760, Video Bitrate: 2798790, Video Tracks: 1, Video Codec: h264, Duration: 0:10:03.280, Video Resolution: 1280 x 720, Display Aspect Ratio: 16:9, Scan Type: Progressive, Frame Rate: 25.000, Frame Rate Mode: CFR (CFR), Frame Rate Mode Raw: CFR, Matrix Coefficients: BT.709, AVC Level: 3.1, Audio Tracks: 1 [Audio Codec: und, Bitrate: 96000, Channels: 2, Sample Frequency: 48000 Hz], Mime Type: video/mp4
The problem is that "mp4a-40-2" isn't recognized, and thus the audio codec ends up being "und". This is a bug in UMS. I don't think UMS will be able to play such files on any renderer (except when you disable transcoding, which disabled the whole logic that fails) until this is addressed.

I'm sure that a sample file would be handy for anyone wanting to look at it. Can't you find some software that allows you to cut a little clip and upload somewhere? 10 seconds should be fine..
adron
Posts: 3
Joined: Sun Jan 20, 2019 12:06 am

Re: Error when trying to play movie on Samsung SmartTV UE75KS8005

Post by adron »

fuggi
Posts: 8
Joined: Sun Feb 10, 2019 5:10 am

Re: Error when trying to play movie on Samsung SmartTV UE75KS8005

Post by fuggi »

Hi Nadahar,
I encountered the same issue with lots of my MP4 files when trying to render them on my LG SJ800V with WebOS v5.8:

Code: Select all

17:39:36 TRACE Adding new child "FILENAME.mp4" with class "RealFile"
17:39:36 TRACE This video does not have subtitles
17:39:36 TRACE Getting player for resource "FILENAME.mp4"
17:39:36 TRACE Returning compatible player "FFmpeg Video"
17:39:36 TRACE Format "mpegts" failed to match supported line f:mp4|m4v   	    v:h264|mp4|avc1                   a:aac-lc|he-aac|aac|ac3|dts|eac3|mp4a      m:video/mp4
17:39:36 TRACE Format "mpegts" failed to match supported line f:avi         		v:h264|mjpeg|mp4|xvid             a:aac-lc|he-aac|ac3|dts|mp3|mpa            m:video/avi
17:39:36 TRACE Format "mpegts" failed to match supported line f:mkv         		v:h264|h265|mp4|mpeg2|vp8|vp9     a:aac-lc|he-aac|ac3|dts|mp3|mpa|vorbis     m:video/x-matroska
17:39:36 TRACE Format "mpegts" failed to match supported line f:mov         		v:h264|h265|mp4                   a:aac-lc|he-aac                            m:video/quicktime
17:39:36 TRACE Format "mpegts" failed to match supported line f:mpegps      		v:mpeg1|mpeg2                     a:ac3|lpcm|mpa                             m:video/mpeg
17:39:36 TRACE Audio codec "und" failed to match support line f:mpegts      		v:h264|mpeg2                      a:aac-lc|he-aac|ac3|dts|eac3               m:video/mpeg
Though the audio codec doesn't look strange to me at all according to ffprobe:

Code: Select all

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'FILENAME.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 0
    compatible_brands: mp41avc1
    creation_time   : 2018-06-03T17:34:33.000000Z
    playback_requirements: QuickTime 6.0 or greater
    playback_requirements-eng: QuickTime 6.0 or greater
    encoder         : vlc 3.0.3 stream output
    encoder-eng     : vlc 3.0.3 stream output
  Duration: 00:29:27.85, start: 0.000000, bitrate: 1238 kb/s
    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, f
p, 131 kb/s (default)
    Metadata:
      creation_time   : 2018-06-03T17:34:33.000000Z
      handler_name    : SoundHandler
    Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x72
[SAR 1:1 DAR 16:9], 1100 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2018-06-03T17:34:33.000000Z
      handler_name    : VideoHandler
[STREAM]
index=0
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_time_base=1/44100
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=44100
channels=2
channel_layout=stereo
bits_per_sample=0
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/44100
start_pts=1685
start_time=0.038209
duration_ts=77962053
duration=1767.847007
bit_rate=131368
max_bit_rate=466494
bits_per_raw_sample=N/A
nb_frames=76134
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:creation_time=2018-06-03T17:34:33.000000Z
TAG:language=eng
TAG:handler_name=SoundHandler
[/STREAM]
[STREAM]
index=1
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_time_base=1/50
codec_tag_string=avc1
codec_tag=0x31637661
width=1280
height=720
coded_width=1280
coded_height=720
has_b_frames=2
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=31
color_range=unknown
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
field_order=unknown
timecode=N/A
refs=1
is_avc=true
nal_length_size=4
id=N/A
r_frame_rate=25/1
avg_frame_rate=25/1
time_base=1/90000
start_pts=0
start_time=0.000000
duration_ts=159080400
duration=1767.560000
bit_rate=1100431
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=44189
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:creation_time=2018-06-03T17:34:33.000000Z
TAG:language=eng
TAG:handler_name=VideoHandler
[/STREAM]
[FORMAT]
filename=FILENAME.mp4
nb_streams=2
nb_programs=0
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=0.000000
duration=1767.847022
size=273692340
bit_rate=1238534
probe_score=100
TAG:major_brand=isom
TAG:minor_version=0
TAG:compatible_brands=mp41avc1
TAG:creation_time=2018-06-03T17:34:33.000000Z
TAG:playback_requirements=QuickTime 6.0 or greater
TAG:playback_requirements-eng=QuickTime 6.0 or greater
TAG:encoder=vlc 3.0.3 stream output
TAG:encoder-eng=vlc 3.0.3 stream output
[/FORMAT]
Even MediaInfo v18.12 seems to recognize the audio codec properly (though it's interpretation of the format and video codec is somewhat maverick):

Code: Select all

General
ID                                       : 1 (0x1)
Complete name                            : FILENAME.mp4
Format                                   : MPEG-TS
File size                                : 772 MiB
Duration                                 : 59 min 32 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 814 kb/s
FileExtension_Invalid                    : ts m2t m2s m4t m4s tmf ts tp trp ty

Video
ID                                       : 256 (0x100)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings                          : CABAC / 3 Ref Frames
Format settings, CABAC                   : Yes
Format settings, RefFrames               : 3 frames
Codec ID                                 : 27
Duration                                 : 59 min 32 s
Nominal bit rate                         : 1 800 kb/s
Width                                    : 960 pixels
Height                                   : 540 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.139
Writing library                          : x264 core 146
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=8 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / paff=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=50 / keyint_min=5 / scenecut=0 / intra_refresh=0 / rc_lookahead=40 / rc=cbr / mbtree=1 / bitrate=1800 / ratetol=0.1 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=1800 / vbv_bufsize=1800 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00

Audio
ID                                       : 257 (0x101)
Menu ID                                  : 1 (0x1)
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Format version                           : Version 4
Muxing mode                              : ADTS
Codec ID                                 : 15-2
Duration                                 : 59 min 32 s
Bit rate mode                            : Variable
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Delay relative to video                  : -40 ms
Accordingly, the log output from UMS when the database (media library) is disabled and logging level is TRACE:

Code: Select all

08:33:37 TRACE MediaInfo parsing results for "FILENAME.mp4":
  Format: "MPEG-TS"             Duration: 0:59:32.480         Overall Bitrate Mode: VBR     Overall Bitrate: 1813703
  Cover: No                     FPS: 25.000
  - Video track ID: 256
    Format: "AVC"                 Profile: "[email protected]"          CodecID: "27"                 Duration: 0:59:32.520
    Bitrate Nominal: 1800000      Width: 960                    Height: 540                   Chroma: 4:2:0
    PAR: 1.000                    DAR: 16:9                     Scan Type: Progressive        FPS: 25.000
    RefFrames: 3                  Bit Depth: 8                  Delay: 141.000                Delay Source: Container
  - Audio track ID: 257
    Format: "AAC"                 Version: "Version 4"          CodecID: "15-2"               Duration: 0:59:32.416
    BitRate Mode: VBR             Channel(s): 2                 Samplerate: 48000             Delay: 100.667
    Delay Source: Container
08:33:37 TRACE Parsing results for file "FILENAME.mp4": Container: MPEGTS, Size: 809933328, Video Bitrate: 1813703, Video Tracks: 1, Video Codec: h264, Duration: 0:59:32.480, Video Resolution: 960 x 540, Display Aspect Ratio: 16:9, Scan Type: Progressive, Frame Rate: 25.000, AVC Level: 3.1, Audio Tracks: 1 [Audio Codec: und, Bitrate: 0, Channels: 2, Sample Frequency: 48000 Hz], Mime Type: video/mp4
08:33:37 TRACE Adding new child "FILENAME.mp4" with class "RealFile"
08:33:37 TRACE This video does not have subtitles
08:33:37 TRACE Getting player for resource "FILENAME.mp4"
08:33:37 TRACE Returning compatible player "FFmpeg Video"
08:33:37 TRACE Audio codec "und" failed to match support line f:mp4|m4v|mpegts    v:h264|mp4|avc                    a:aac-lc|he-aac|aac|ac3|dts|eac3|mp4a      m:video/mp4
Hence, there seems to be a bug in leveraging the parsing result as it was obviously identified as AAC by MediaInfo.

Best regards,
fuggi
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Error when trying to play movie on Samsung SmartTV UE75KS8005

Post by Nadahar »

I'm no longer a part of the UMS team, so I expect one of those that are to look into the details. That said, AAC isn't really a "codec" in the traditional sense, you should rather think of it as a "family of codecs" (https://en.wikipedia.org/wiki/Advanced_Audio_Coding). AAC is a complete mess of many different actual implementations, some that are common and some that are hardly supported at all - and quite a few that's somewhere in between. To make it even worse, AAC was first partially defined in the MPEG-2 standard, but then redefined and vastly expanded in the MPEG-4 standard.

It suffices to say that merely recognizing something as AAC isn't enough to know how to handle it. That said, this is still a UMS bug, it shouldn't end up being "unknown".
User avatar
valib
Developer
Posts: 699
Joined: Fri Feb 08, 2013 3:11 am

Re: Error when trying to play movie on Samsung SmartTV UE75KS8005

Post by valib »

I tried to fix it in the https://github.com/UniversalMediaServer ... /pull/1755 and it will be released in the next UMS version
fuggi
Posts: 8
Joined: Sun Feb 10, 2019 5:10 am

Re: Error when trying to play movie on Samsung SmartTV UE75KS8005

Post by fuggi »

valib wrote: Mon Feb 11, 2019 11:15 am I tried to fix it in the https://github.com/UniversalMediaServer ... /pull/1755 and it will be released in the next UMS version
Hi valib,
thank you very much for fixing this issue! Meanwhile I have set up my renderer configuration in a way ignoring the audio codec at all since my LG TV renders all of the codecs I encountered in my video files like a charm. Still, I'm looking forward to the new release and finalize the configurations.

Best regards,
fuggi
Post Reply