Djdefrag/QualityScaler

Videos cropped to 3/4

Opened this issue · 5 comments

Hey,

I was trying out the scaler with our Trial data and no matter what input aspect ratio i input, the output is always 3/4.
Can i change that and is there an option to set a resolution manually instead of percentage?

Hi my friend, this is a strange behaviour, the app should respect the input image resolution.

Can you send me your testing images so i can try to better understand the error pls?

Hi! I think I have a similar issue with video files - might be wrong. I've run an DVD episode and it turned out in 5:4 aspect ratio, when the original file was 16:9 Don't know if it helps, but I will past the MediaInfo under here for the original file and the file that was created using QualityScaler

Original File MediaInfo:
`General
Unique ID : 299270757752647212675994862681163622279 (0xE125738DDEF37A3189790B4BC738E787)
Complete name : O:\Video\DVD Disc\Mot i Brøstet\Disc 1 - Season 1\B1_t00.mkv
Format : Matroska
Format version : Version 2
File size : 779 MiB
Duration : 24 min 42 s
Overall bit rate mode : Variable
Overall bit rate : 4 407 kb/s
Frame rate : 25.000 FPS
Encoded date : 2024-05-15 23:02:36 UTC
Writing application : MakeMKV v1.17.6 win(x64-release)
Writing library : libmakemkv v1.17.6 (1.3.10/1.5.2) win(x64-release)

Video
ID : 1
ID in the original source medium : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings : CustomMatrix / BVOP
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=15
Format settings, picture structure : Frame
Codec ID : V_MPEG2
Codec ID/Info : MPEG 1 or 2 Video
Duration : 24 min 42 s
Bit rate mode : Variable
Bit rate : 4 204 kb/s
Maximum bit rate : 8 500 kb/s
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 FPS
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.406
Time code of first frame : 00:59:30:15
Time code source : Group of pictures header
GOP, Open/Closed : Open
Stream size : 743 MiB (95%)
Language : English
Default : No
Forced : No
Original source medium : DVD-Video

Audio
ID : 2
ID in the original source medium : 189 (0xBD)128 (0x80)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 24 min 42 s
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 33.9 MiB (4%)
Title : Stereo
Language : Norwegian
Service kind : Complete Main
Default : Yes
Forced : No
Original source medium : DVD-Video
Dialog Normalization : -31 dB
compr : -1.16 dB
mixlevel : 285 dB
roomtyp : 3
ltrtcmixlev : -3.0 dB
ltrtsurmixlev : -3.0 dB
lorocmixlev : -3.0 dB
lorosurmixlev : -3.0 dB
dialnorm_Average : -31 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31 dB

Text
ID : 3
ID in the original source medium : 189 (0xBD)32 (0x20)
Format : VobSub
Codec ID : S_VOBSUB
Codec ID/Info : Picture based subtitle format used on DVDs
Duration : 23 min 55 s
Bit rate : 6 511 b/s
Frame rate : 0.256 FPS
Count of elements : 367
Stream size : 1.11 MiB (0%)
Language : Norwegian
Default : Yes
Forced : No
Original source medium : DVD-Video

Menu
00:00:00.080 : en:Chapter 01
00:24:41.680 : en:Chapter 02

`
Original file.txt

QualityScaler file MediaInfo:
`General
Complete name : O:\Video\DVD Disc\Mot i Brøstet\Disc 1 - Season 1\B1_t00_RealESRGANx4_Resize-67_Interpolation-High.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/mp41)
File size : 2.80 GiB
Duration : 24 min 42 s
Overall bit rate : 16.2 Mb/s
Frame rate : 25.000 FPS
Writing application : Lavf61.1.100

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Format Range@L5@Main
Codec ID : hev1
Codec ID/Info : High Efficiency Video Coding
Duration : 24 min 42 s
Bit rate : 16.1 Mb/s
Width : 1 928 pixels
Height : 1 540 pixels
Display aspect ratio : 5:4
Frame rate mode : Constant
Frame rate : 25.000 FPS
Color space : RGB
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.217
Stream size : 2.78 GiB (99%)
Writing library : x265 3.5+117-b34fb2c77:[Windows][GCC 13.2.0][64 bit] 8bit+10bit+12bit
Encoding settings : cpuid=1111039 / frame-threads=16 / numa-pools=32 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=3 / input-res=1928x1540 / 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-eob / no-eos / no-hrd / info / hash=0 / temporal-layers=0 / open-gop / min-keyint=25 / keyint=250 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=8 / scenecut=40 / no-hist-scenecut / radl=0 / no-splice / 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=3 / limit-refs=1 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=3 / selective-sao=4 / early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=6 / crqpoffs=6 / rc=abr / bitrate=16000 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / 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=0 / overscan=0 / videoformat=5 / range=1 / colorprim=2 / transfer=2 / colormatrix=0 / chromaloc=0 / display-window=0 / 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-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / scenecut-aware-qp=0conformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0 / no-vbv-live-multi-pass / no-mcstf / no-sbrc
Color range : Full
Matrix coefficients : Identity
Codec configuration box : hvcC

Audio
ID : 2
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo / MS Stereo
Codec ID : mp4a-6B
Duration : 24 min 42 s
Source duration : 24 min 42 s
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Sampling rate : 44.1 kHz
Compression mode : Lossy
Stream size : 22.6 MiB (1%)
Source stream size : 22.6 MiB (1%)
Default : Yes
Alternate group : 1

`
QualityScaler file.txt

Settings used for QualityScaler:
Skjermbilde 2024-05-16 161218

Hi my friend,

i see in input video some conflicting information:

Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 16:9

this configuration of height and width represents an aspect ratio of 5/4. Why does it report 16/9?

I am not sure. When I look at the series DVD cover it says "16:9 stretch 4:3" so it might be related to that.

Originally a few years a go I just ran the series through handbrake and it was still 16:9, so I was now thinking I should try to upscale it and see how it looked.
Might there be something within the dvd and when ripped to a file that tells the players etc. to use 16:9? When I look at the file that QualityScaler made it does not look "out of proportion" even though the file is now 5:4 - So I could live with it, but I just thought it was weird.

Just wanted to comment back here after I have learned a bit more.
The source file is "anamorphic" as the source is a DVD with widescreen. Sorry about that.
Can report that I got a pretty good result running the upscaled file through a video editor turning the file to anamorphic widescreen.