Resolution problems with mkv file

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
theliadir
Posts: 2
Joined: Tue Sep 01, 2020 9:36 am

Resolution problems with mkv file

Post by theliadir »

Description of problem or question:
I have an mkv file (1920x1080) that I recorded with OBS Studio which i would like to convert with handbreak to mp4 with the same resolution.
When I convert the file with handbreak the file is slightly cut on the left side.

I'm not sure it this is of importance but, when I go into the dimension settings in handbreak I get:
Source: 1920x1080, PAR: 1/1
Width: 1780 Height 850
Output: Display Size: 1730 x 850, PAR 1x1

when I change the output to 1920 x 1080 in the width and height I get
2198x1080, PAR 1557x1360 in the Display Size in the Output.

How can I keep the resolution of 1920x1080?

Here is the log:

Code: Select all

HandBrake 1.3.1 (2020010400)
OS: Microsoft Windows NT 10.0.18363.0
CPU: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Ram: 32685 MB, 
GPU Information:
  Microsoft Remote Display Adapter - 10.0.18362.693
  NVIDIA GeForce GTX 1660 SUPER - 27.21.14.5167
Screen: 1920x1200
Temp Dir: C:\Users\user\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\user\AppData\Roaming\HandBrake

-------------------------------------------


# Starting Encode ...

[11:32:44] base preset: Fast 1080p30 (Modified)
[11:32:44] hb_init: starting libhb thread
[11:32:44] Starting work at: Tue Sep 01 11:32:44 2020
[11:32:44] 1 job(s) to process
[11:32:44] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "mp3",
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Track1",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Kapitel 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "C:\\local_data\\user\\converted\\2020-08-27 15-28-44-1.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": true
    },
    "Mux": "mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "122",
          "crop-left": "190",
          "crop-right": "0",
          "crop-top": "108",
          "height": "944",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/1080000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 10207,
    "Den": 10200
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "\\\\site.ch\\2020-08-27 15-28-44.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 22.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[11:32:44] CPU: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
[11:32:44]  - Intel microarchitecture Kaby Lake
[11:32:44]  - logical processor count: 8
[11:32:44] Intel Quick Sync Video support: no
[11:32:44] hb_scan: path=\\site.ch\2020-08-27 15-28-44.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image \\site.ch\2020-08-27 15-28-44.mkv
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2585: nav_get_title_list(\\site.ch\2020-08-27 15-28-44.mkv\) failed
[11:32:44] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[11:32:44] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '\\site.ch\2020-08-27 15-28-44.mkv':
  Metadata:
    ENCODER         : Lavf58.29.100
  Duration: 01:56:45.08, start: 0.000000, bitrate: 2663 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(tv, bt470bg/bt709/bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
    Metadata:
      DURATION        : 01:56:45.080000000
    Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata:
      title           : Track1
      DURATION        : 01:56:44.996000000
[11:32:44] scan: decoding previews for title 1
[11:32:44] scan: audio 0x1: aac, rate=44100Hz, bitrate=1 Unknown (AAC LC) (2.0 ch)
[11:32:44] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 108/122/190/0, aspect 16:9, PAR 1:1
[11:32:44] scan: supported video decoders: avcodec qsv
[11:32:44] libhb: scan thread found 1 valid title(s)
[11:32:45] Skipping subtitle scan.  No suitable subtitle tracks.
[11:32:45] Starting Task: Encoding Pass
[11:32:45] work: compression level not specified, track 1 setting compression level 2.00
[11:32:45] work: only 1 chapter, disabling chapter markers
[11:32:45] job configuration:
[11:32:45]  * source
[11:32:45]    + \\site.ch\2020-08-27 15-28-44.mkv
[11:32:45]    + title 1, chapter(s) 1 to 1
[11:32:45]    + container: matroska,webm
[11:32:45]    + data rate: 2663 kbps
[11:32:45]  * destination
[11:32:45]    + C:\local_data\user\2020-08-27 15-28-44-1.mp4
[11:32:45]    + container: MPEG-4 (libavformat)
[11:32:45]      + optimized for HTTP streaming (fast start)
[11:32:45]      + align initial A/V stream timestamps
[11:32:45]  * video track
[11:32:45]    + decoder: h264
[11:32:45]    + filters
[11:32:45]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[11:32:45]      + Decomb (mode=39)
[11:32:45]      + Framerate Shaper (mode=2:rate=27000000/1080000)
[11:32:45]        + frame rate: 25.000 fps -> peak rate limited to 25.000 fps
[11:32:45]      + Crop and Scale (width=1920:height=944:crop-top=108:crop-bottom=122:crop-left=190:crop-right=0)
[11:32:45]        + source: 1920 * 1080, crop (108/122/190/0): 1730 * 850, scale: 1920 * 944
[11:32:45]    + Output geometry
[11:32:45]      + storage dimensions: 1920 x 944
[11:32:45]      + pixel aspect ratio: 10207 : 10200
[11:32:45]      + display dimensions: 1921 x 944
[11:32:45]    + encoder: H.264 (libx264)
[11:32:45]      + preset:  fast
[11:32:45]      + profile: main
[11:32:45]      + level:   4.0
[11:32:45]      + quality: 22.00 (RF)
[11:32:45]      + color profile: 1-1-5
[11:32:45]  * audio track 1
[11:32:45]    + name: Track1
[11:32:45]    + decoder: Unknown (AAC LC) (2.0 ch) (track 1, id 0x1)
[11:32:45]      + samplerate: 44100 Hz
[11:32:45]    + mixdown: Stereo
[11:32:45]    + dither: none
[11:32:45]    + encoder: MP3 (libmp3lame)
[11:32:45]      + bitrate: 160 kbps, samplerate: 44100 Hz
[11:32:45]      + compression level: 2.00
[11:32:45] sync: expecting 175127 video frames
[11:32:45] encx264: encoding at constant RF 22.000000
[11:32:45] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=10207/10200
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[11:32:45] sync: first pts video is 0
[11:32:45] sync: "Kapitel 1" (1) at frame 1 time 0
[11:32:45] sync: first pts audio 0x1 is 0

# Encode Stopped

[11:33:31] work: average encoding speed for job is 104.698074 fps
[11:33:31] comb detect: heavy 0 | light 0 | uncombed 4849 | total 4849
[11:33:31] decomb: deinterlaced 0 | blended 0 | unfiltered 4840 | total 4840
[11:33:31] vfr: 4832 frames output, 0 dropped and 0 duped for CFR/PFR
[11:33:31] vfr: lost time: 0 (0 frames)
[11:33:31] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:33:31] aac-decoder done: 8497 frames, 0 decoder errors
[11:33:31] h264-decoder done: 4917 frames, 0 decoder errors
[11:33:31] sync: got 4879 frames, 175127 expected
[11:33:31] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:20    Avg QP: 9.23  size:108099
x264 [info]: frame P:1206  Avg QP:16.33  size:   176
x264 [info]: frame B:3555  Avg QP:14.78  size:    64
x264 [info]: consecutive B-frames:  0.8%  0.0%  0.1% 99.0%
x264 [info]: mb I  I16..4: 66.5%  0.0% 33.5%
x264 [info]: mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.3%  0.0%  0.0%  0.0%  0.0%    skip:99.6%
x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%  L0:20.9% L1:79.0% BI: 0.1%
x264 [info]: coded y,uvDC,uvAC intra: 30.5% 32.9% 31.6% inter: 0.0% 0.1% 0.0%
x264 [info]: i16 v,h,dc,p: 91%  6%  2%  1%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 37%  9%  4%  6%  4%  9%  4%  8%
x264 [info]: i8c dc,h,v,p: 73% 19%  5%  3%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 83.5% 16.5%
x264 [info]: ref B L0: 77.3% 22.7%
x264 [info]: ref B L1: 91.5%  8.5%
x264 [info]: kb/s:108.88
[11:33:31] mux: track 0, 4781 frames, 2601943 bytes, 106.70 kbps, fifo 8192
[11:33:31] mux: track 1, 7467 frames, 3901127 bytes, 159.98 kbps, fifo 8192
[11:33:31] Finished work at: Tue Sep 01 11:33:31 2020
[11:33:31] libhb: work result = 1

# Encode Completed ...


musicvid
Veteran User
Posts: 3814
Joined: Sat Jun 27, 2009 1:19 am

Re: Resolution problems with mkv file

Post by musicvid »

OK, you have auto cropping turned on.
You can set what ever custom cropping you want, or none at all.
Best.
theliadir
Posts: 2
Joined: Tue Sep 01, 2020 9:36 am

Re: Resolution problems with mkv file

Post by theliadir »

That was it. Thx.
Post Reply