Jump to content

Use Display Size on MKVs


DarkStar1977

Recommended Posts

DarkStar1977

MKVs files allow to define a Display Size, this is very usefull to re-scale some videos to an specified resolution.

The most normal case, strange resolutions like 1920x1078 or 1910x1080.

MKV Container allows to define a Display size inside to make small corrections and convert to full screen those strange display sizes but Emby is ignoring it.

Most of players, as well other Media Servers (let's not say any name ...) support that and re-scale the video to the Display Size defined on Matroska container but Emby don't.

Any possibility this will be implemented ?

Thanks

  • Like 1
Link to comment
Share on other sites

So 'Fit', 'Fill' or Full screen options are not working out for you?.. are you looking for the same options that pertain to aspect ratio as they would a TV?

Link to comment
Share on other sites

DarkStar1977

@Hxemby001 not sure I understand your point.

If I put on full screen a video of 1910x1080 I have 1 line x 5pixels in black on the left and one in the right.

Fit screen is not an option on Apple TV or Native TV applications and TV Apps cannot be re-scaled.

Matroska Container has the hability to define a Display Screen Size to solve this specific cases or to display the video in another specific resolution, of course if the player / streaming software supports it and Emby doesn't.

As an example Plex supports this.

 

Edited by DarkStar1977
Link to comment
Share on other sites

Hi there, can you provide a sample video for testing? thanks.

Link to comment
Share on other sites

DarkStar1977

Of Course, find it attached.

This file has a resolution of 1260x720 but with MKVToolnix I've setup a Display With/Height of 1280x720

1481022741_Capturadepantalla2021-05-07alas12_44_59.thumb.png.42a08e76c2610c89301d0ccbe1fc2a28.png

As a result players like VLC or Plex Displays it on full screen with no black borders.

Adding this file to Emby Results on black borders, so I understand this parameter is ignored.

Hope this helps.

 

sample_1260x720.mkv

Edited by DarkStar1977
Link to comment
Share on other sites

DarkStar1977

Here you have another that maybe it's more enlightning, original resolution is 1880x812 and forced to 1920x1080 with MKVToolnix:

Width                                    : 1 920 pixels
Original width                           : 1 880 pixels

Height                                   : 1 080 pixels
Original height                          : 812 pixels

Display aspect ratio                     : 16:9
Original display aspect ratio            : 2.35:1

Sample_File_2.mkv

Edited by DarkStar1977
Link to comment
Share on other sites

On 5/7/2021 at 6:40 AM, DarkStar1977 said:

Of Course, find it attached.

This file has a resolution of 1260x720 but with MKVToolnix I've setup a Display With/Height of 1280x720

1481022741_Capturadepantalla2021-05-07alas12_44_59.thumb.png.42a08e76c2610c89301d0ccbe1fc2a28.png

As a result players like VLC or Plex Displays it on full screen with no black borders.

Adding this file to Emby Results on black borders, so I understand this parameter is ignored.

Hope this helps.

 

sample_1260x720.mkv 20.72 MB · 0 downloads

Is it direct playing?

Link to comment
Share on other sites

Happy2Play

Doesn't look like ffmpeg is seeing that information.

"streams": [
        {
            "index": 0,
            "codec_name": "hevc",
            "codec_long_name": "H.265 / HEVC (High Efficiency Video Coding)",
            "profile": "Main",
            "codec_type": "video",
            "codec_time_base": "1/25",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "width": 1880,
            "height": 812,
            "coded_width": 1880,
            "coded_height": 816,
            "has_b_frames": 2,
            "sample_aspect_ratio": "1:1",
            "display_aspect_ratio": "470:203",
            "pix_fmt": "yuv420p",
            "level": 120,
            "color_range": "tv",
            "color_space": "bt709",
            "color_transfer": "bt709",
            "color_primaries": "bt709",
            "chroma_location": "left",
            "refs": 1,
            "r_frame_rate": "25/1",
            "avg_frame_rate": "25/1",
            "time_base": "1/1000",
            "start_pts": 6,
            "start_time": "0.006000",
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0
            }
        }

vs MediaInfo

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L4@Main
Codec ID                                 : V_MPEGH/ISO/HEVC
Width                                    : 1 920 pixels
Original width                           : 1 880 pixels
Height                                   : 1 080 pixels
Original height                          : 812 pixels
Display aspect ratio                     : 16:9
Original display aspect ratio            : 2.35:1
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Writing library                          : x265 2.9:[Mac OS X][clang 10.0.0][64 bit] 8bit+10bit+12bit
Encoding settings                        : cpuid=1111039 / frame-threads=3 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1880x812 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=25 / keyint=250 / gop-lookahead=0 / bframes=4 / b-adapt=0 / b-pyramid / bframe-bias=0 / rc-lookahead=15 / lookahead-slices=5 / scenecut=40 / radl=0 / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=3 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=2 / no-early-skip / rskip / fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=24.5 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=1 / transfer=1 / colormatrix=1 / chromaloc=0 / display-window=0 / max-cll=0,0 / min-luma=0 / max-luma=255 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr / no-hdr-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-mv-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

 

Link to comment
Share on other sites

DarkStar1977
On 5/8/2021 at 7:31 PM, Luke said:

Is it direct playing?

I assume yes, I didn't force transcoding

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...