Page 1 of 1

How to get Serviio to recognize MKV Aspect-Ratio Flags?

PostPosted: Wed Oct 28, 2015 5:21 pm
by Insiteful
I am trying to get Serviio and my Samsung BD-J7500 or my LG BD-670 to properly display an MKV video file, a 16:9 TV capture that was encoded using AVC at 720x576 pixels, muxed with PCM audio to an MKV container. The video plays correctly on my MAC and PC computers using VLC (displays at 16:9), but when I serve it to my TV using Serviio, it "squeezes" the image to display it at 4:3 (or close to it).

Using MKVmerge, I have confirmed that the video has its MKV "aspect-ratio" header flag set to 16:9. After various tests, I believe that Serviio and/or the renderer are not recognizing the "aspect-ratio" or "display-dimensions" flags in the .mkv file, and always assumes the file should be displayed in it's native 1:1 pixel dimensions. If that is the case, I suppose the image would render in a 720x576 (1.25:1) aspect ratio, which is perhaps what I am seeing.

I tried resetting the MKV header flags using mkvMerge command-line processor, but neither succeeded in changing the aspect ratio when displayed:

mkvmerge -o c:/output.mkv --display-dimensions 0:1024x576 input.mkv
mkvmerge -o c:/output.mkv --aspect-ratio 0:16/9 input.mkv

I have also tried to remux the video into an mp4 container (re-encoding the audio to AAC to conform with mp4 standards), with the same results.

Does serviio recognize the "aspect-ratio" or "display-dimensions" flags in the header of the .mkv files? Is it possible to add a line in the profiles to properly display an MKV video, based upon those settings? What would be the proper syntax for the profile entry?

Thanks for any help or thoughts.

Serviio version: 1.5.2
OS: Mac 10.10.5 & Windows 8.1
Devices: Samsung BD-J7500 bluray & LG BD-670 bluray
Profiles used: Samsung TV/Player (E/F series) & LG TV/player (modified)

Re: How to get Serviio to recognize MKV Aspect-Ratio Flags?

PostPosted: Wed Nov 11, 2015 10:10 pm
by Insiteful
Any Help or Tips would be appreciated.
;)

Re: How to get Serviio to recognize MKV Aspect-Ratio Flags?

PostPosted: Wed Nov 11, 2015 10:16 pm
by DenyAll
Post MediaInfo details for a file that exhibits this behaviour. What happens if you use the Generic Profile?

Re: How to get Serviio to recognize MKV Aspect-Ratio Flags?

PostPosted: Wed Nov 18, 2015 11:47 pm
by Insiteful
Thanks, DenyAll,

There was no change with the Generic profile. Still displays at 4:3

Below is the MediaInfo report. Note that, although the "Display Aspect Ratio" is set at 16:9, the "Original display aspect ratio" is showing: 4:3. Perhaps that could be the problem? Can the Serviio profile (or the file itself) be changed to force 16:9 display?

Thanks again n advance for any help and solutions.

---------------------------------------------------
General
Unique ID : 237942948978369714042910198863298099800 (0xB3022521F3D9ABAFB51DE3A7F380FA58)
Complete name : C:\Users\Windows8.1\Desktop\Output.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 258 MiB
Duration : 4mn 9s
Overall bit rate mode : Variable
Overall bit rate : 8 680 Kbps
Encoded date : UTC 2015-11-18 19:11:37
Writing application : mkvmerge v8.5.2 ('Crosses') 64bit
Writing library : Lavf54.63.104

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Format settings, GOP : M=3, N=30
Codec ID : V_MPEG4/ISO/AVC
Duration : 4mn 9s
Bit rate mode : Variable
Maximum bit rate : 7 000 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 16:9
Original display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 50.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Default : No
Forced : No
DURATION : 00:04:09.220000000
NUMBER_OF_FRAMES : 12461
NUMBER_OF_BYTES : 222598958
_STATISTICS_WRITING_APP : mkvmerge v8.5.2 ('Crosses') 64bit
_STATISTICS_WRITING_DATE_UTC : 2015-11-18 19:11:37
_STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Audio
ID : 2
Format : PCM
Codec ID : A_PCM/INT/LIT
Duration : 4mn 9s
Bit rate mode : Constant
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Default : Yes
Forced : No
DURATION : 00:04:09.408000000
NUMBER_OF_FRAMES : 10392
NUMBER_OF_BYTES : 47886336
_STATISTICS_WRITING_APP : mkvmerge v8.5.2 ('Crosses') 64bit
_STATISTICS_WRITING_DATE_UTC : 2015-11-18 19:11:37
_STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES