Need better UHD mp4 compatibility for HU series
Apparently the Samsung H-series profile I'm using with Serviio doesn't have good 4k support for MP4 videos (either h264 or HEVC), even though these files play just fine using Windows WMP dlna server. I've tried many changes within the Servio Samsung profile itself, but nothing seems to work. So it appears as though the issue is within Serviio itself. As a side note, I noticed the profile tries to transcode h264 L4.1 and above. The TV supports BP/MP/HP up to L5.1 so no need to transcode this for the TV. However, fixing that still didn't make the mp4 4k videos play under Serviio.
Here are the specifics:
The MP4 file below shows up in server file listing, but has no information, i.e. 0 filesize. Clicking the file results in a "Not currently supported" error. Yes, its a h264 4k video, but the TV supports this as long as bitrate is under 50Mbps. FFmpeg details of file:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Media\Movies\Superman The Motion Picture Anthology (1978-2013)\BATMAN VS SUPERMAN- Dawn Of Justice Trailer (2016).mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2015-04-18 08:21:51
Duration: 00:02:15.53, start: 0.000000, bitrate: 15753 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], 15629 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
Metadata:
creation_time : 2015-04-18 08:21:51
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2015-04-18 08:16:05
handler_name : SoundHandler
When converted to a MKV it plays just fine under Serviio without transcoding. I have transcoding turned off in Serviio. File details:
Input #0, matroska,webm, from 'D:\Media\Movies\Superman The Motion Picture Anthology (1978-2013)\BATMAN VS SUPERMAN- Dawn Of Justice Trailer (2016).mkv':
Metadata:
encoder : libebml v1.3.1 + libmatroska v1.4.2
creation_time : 2015-09-25 02:06:58
Duration: 00:02:15.53, start: 0.000000, bitrate: 15752 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
Metadata:
BPS : 15629668
BPS-eng : 15629668
DURATION : 00:02:15.480000000
DURATION-eng : 00:02:15.480000000
NUMBER_OF_FRAMES: 3387
NUMBER_OF_FRAMES-eng: 3387
NUMBER_OF_BYTES : 264688443
NUMBER_OF_BYTES-eng: 264688443
_STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_DATE_UTC: 2015-09-25 02:06:58
_STATISTICS_WRITING_DATE_UTC-eng: 2015-09-25 02:06:58
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
Metadata:
BPS : 125607
BPS-eng : 125607
DURATION : 00:02:15.526000000
DURATION-eng : 00:02:15.526000000
NUMBER_OF_FRAMES: 5837
NUMBER_OF_FRAMES-eng: 5837
NUMBER_OF_BYTES : 2127886
NUMBER_OF_BYTES-eng: 2127886
_STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_DATE_UTC: 2015-09-25 02:06:58
_STATISTICS_WRITING_DATE_UTC-eng: 2015-09-25 02:06:58
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
I then tried converting the video/audio codecs while still keeping the MP4 container to see what else would or would not play at 4k resolution. I found that MP4 plays just fine under Serviio after converting the audio to AC-3:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Media\Movies\Superman The Motion Picture Anthology (1978-2013)\vidtest\test37.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.25.101
Duration: 00:02:15.42, start: 0.000000, bitrate: 15763 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], 15632 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(unk): Audio: ac3 (ac-3 / 0x332D6361), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
I then tried re-encoding to HEVC 265 with AC-3. No luck, it doesn't play over Serviio. It shows up in the listing but with 0 filesize giving the same "Not currently supported" error. However, it plays perfectly using "cast to" under Windows 10 wmp. The info menu on the TV even shows it using the h265 codec at 4k with AC3 so I know it's not being transcoded by wmp. So this appears to be an issue just with Serviio. BTW, all of these vidoes play just fine when I browse to the Microsoft's WMP DLNA server from the TV, and without transcoding. However the windows built-in server has poor subtitle support and lacks other nice features Serviio provides. Here are the HEVC file details that won't play under Serviio:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Media\Movies\Superman The Motion Picture Anthology (1978-2013)\vidtest\test47.mp4':
Metadata:
major_brand : mp42
minor_version : 512
compatible_brands: isomiso2mp41
creation_time : 2036-02-06 06:28:16
encoder : HandBrake 0.10.2 2015060900
Duration: 00:02:15.52, start: 0.000000, bitrate: 16357 kb/s
Stream #0:0(und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, bt709), 3840x1604 [SAR 1:1 DAR 960:401], 16197 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc (default)
Metadata:
creation_time : 2036-02-06 06:28:16
handler_name : VideoHandler
Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 44100 Hz, stereo, fltp, 160 kb/s (default)
Metadata:
creation_time : 2036-02-06 06:28:16
handler_name : Stereo
Any chance we could get Serviio updated to include the additional mp4 uhd support the HU series includes?