Dimensions Do not Match Source File

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
Dugdale
Posts: 2
Joined: Fri Oct 12, 2018 6:03 pm

Dimensions Do not Match Source File

Post by Dugdale »

Description of problem or question:
When I add a 4K 3840x2160 source file and then I click on the Dimensions Tab, the Size for the Width and Height boxes change to 3718 x 2160. I can unclick on 'Keep Aspect Ratio' and correct this, but when I save this as a custom preset, and then recall it, the dimension revery back to 3718 x 2160.



Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):
1.1.2



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 10 Creators Update


HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake 1.1.2 (2018090500) - 64bit
OS: Microsoft Windows NT 10.0.17134.0 - 64bit
CPU: Intel(R) Core(TM) i9-7960X CPU @ 2.80GHz
Ram: 65203 MB, 
GPU Information:
  NVIDIA GeForce GTX 1080 Ti - 24.21.13.9882
Screen: 3440x1440
Temp Dir: C:\Users\ddd52\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\ddd52\AppData\Roaming\HandBrake

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


# Starting Encode ...

[12:11:49] hb_init: starting libhb thread
[12:11:49] 1 job(s) to process
[12:11:49] json job:
{
  "Audio": {
    "AudioList": [],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "AlignAVStart": false,
    "File": "X:\\V2 Handbrake h265 8bit 26M 4k Qty24 Faster xfps xCpeak.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "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": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "122",
          "crop-right": "0",
          "crop-top": "0",
          "height": "2160",
          "width": "3718"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "X:\\V1 Uncompressed.mov"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 4096,
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "faster",
    "Profile": "auto",
    "Quality": 24.0,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[12:11:49] CPU: Intel(R) Core(TM) i9-7960X CPU @ 2.80GHz
[12:11:49]  - logical processor count: 32
[12:11:49] Intel Quick Sync Video support: no
[12:11:49] hb_scan: path=X:\V1 Uncompressed.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image X:\V1 Uncompressed.mov
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
[12:11:49] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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
[12:11:49] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'X:\V1 Uncompressed.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf57.25.100
  Duration: 00:01:00.06, start: 0.000000, bitrate: -2147483 kb/s
    Stream #0:0(eng): Video: v210 [v210 / 0x30313276]
      yuv422p10le, bt709/bt709/bt709
      3840x2160, -52476 kb/s, PAR 1:1 DAR 16:9
      24k tbn (default)
    Metadata:
      handler_name    : Core Media Data Handler
    Stream #0:1(eng): Audio: pcm_s16le [lpcm / 0x6D63706C]
      48000 Hz, 2 channels, s16, 1536 kb/s (default)
    Metadata:
      handler_name    : Core Media Data Handler
    Stream #0:2(eng): Data: tmcd / 0x64636D74
    Metadata:
      handler_name    : Core Media Data Handler
[12:11:49] scan: decoding previews for title 1
[12:11:49] scan: audio 0x1: pcm_s16le, rate=48000Hz, bitrate=1536000 English (pcm_s16le) (2.0 ch)
[12:11:50] scan: 10 previews, 3840x2160, 23.976 fps, autocrop = 0/0/122/0, aspect 16:9, PAR 1:1
[12:11:51] libhb: scan thread found 1 valid title(s)
[12:11:51] starting job
[12:11:51] decomb filter thread started for segment 0
[12:11:51] decomb filter thread started for segment 1
[12:11:51] decomb filter thread started for segment 2
[12:11:51] decomb filter thread started for segment 10
[12:11:51] decomb filter thread started for segment 4
[12:11:51] decomb filter thread started for segment 15
[12:11:51] decomb filter thread started for segment 17
[12:11:51] decomb filter thread started for segment 19
[12:11:51] decomb filter thread started for segment 8
[12:11:51] decomb filter thread started for segment 9
[12:11:51] decomb filter thread started for segment 3
[12:11:51] decomb filter thread started for segment 11
[12:11:51] decomb filter thread started for segment 12
[12:11:51] decomb filter thread started for segment 13
[12:11:51] decomb check thread started for segment 2
[12:11:51] decomb filter thread started for segment 5
[12:11:51] decomb filter thread started for segment 16
[12:11:51] decomb filter thread started for segment 6
[12:11:51] decomb filter thread started for segment 18
[12:11:51] decomb filter thread started for segment 7
[12:11:51] decomb check thread started for segment 14
[12:11:51] decomb check thread started for segment 16
[12:11:51] decomb filter thread started for segment 22
[12:11:51] decomb filter thread started for segment 23
[12:11:51] decomb filter thread started for segment 24
[12:11:51] decomb filter thread started for segment 25
[12:11:51] decomb filter thread started for segment 26
[12:11:51] decomb check thread started for segment 26
[12:11:51] decomb filter thread started for segment 28
[12:11:51] decomb filter thread started for segment 29
[12:11:51] decomb filter thread started for segment 30
[12:11:51] decomb filter thread started for segment 31
[12:11:51] decomb check thread started for segment 0
[12:11:51] decomb check thread started for segment 1
[12:11:51] decomb filter thread started for segment 14
[12:11:51] decomb check thread started for segment 3
[12:11:51] mask filter thread started for segment 9
[12:11:51] decomb check thread started for segment 5
[12:11:51] mask filter thread started for segment 14
[12:11:51] decomb check thread started for segment 7
[12:11:51] decomb check thread started for segment 8
[12:11:51] decomb check thread started for segment 9
[12:11:51] decomb check thread started for segment 10
[12:11:51] mask filter thread started for segment 25
[12:11:51] decomb check thread started for segment 12
[12:11:51] mask filter thread started for segment 29
[12:11:51] decomb filter thread started for segment 20
[12:11:51] decomb check thread started for segment 15
[12:11:51] decomb filter thread started for segment 21
[12:11:51] mask erode thread started for segment 3
[12:11:51] decomb check thread started for segment 18
[12:11:51] mask erode thread started for segment 7
[12:11:51] mask erode thread started for segment 9
[12:11:51] decomb check thread started for segment 21
[12:11:51] mask erode thread started for segment 12
[12:11:51] decomb check thread started for segment 23
[12:11:51] decomb check thread started for segment 24
[12:11:51] decomb check thread started for segment 25
[12:11:51] decomb filter thread started for segment 27
[12:11:51] mask erode thread started for segment 22
[12:11:51] mask erode thread started for segment 24
[12:11:51] decomb check thread started for segment 29
[12:11:51] decomb check thread started for segment 30
[12:11:51] decomb check thread started for segment 31
[12:11:51] mask filter thread started for segment 0
[12:11:51] mask filter thread started for segment 1
[12:11:51] mask filter thread started for segment 2
[12:11:51] mask filter thread started for segment 3
[12:11:51] mask filter thread started for segment 4
[12:11:51] mask filter thread started for segment 5
[12:11:51] mask dilate thread started for segment 10
[12:11:51] mask filter thread started for segment 7
[12:11:51] mask filter thread started for segment 8
[12:11:51] mask dilate thread started for segment 17
[12:11:51] mask dilate thread started for segment 18
[12:11:51] mask dilate thread started for segment 20
[12:11:51] mask filter thread started for segment 12
[12:11:51] mask filter thread started for segment 13
[12:11:51] decomb check thread started for segment 6
[12:11:51] mask dilate thread started for segment 26
[12:11:51] mask filter thread started for segment 16
[12:11:51] yadif thread started for segment 0
[12:11:51] mask filter thread started for segment 18
[12:11:51] mask filter thread started for segment 19
[12:11:51] mask filter thread started for segment 20
[12:11:51] mask filter thread started for segment 21
[12:11:51] yadif thread started for segment 24
[12:11:51] mask filter thread started for segment 23
[12:11:51] job configuration:
[12:11:51]  * source
[12:11:51]    + X:\V1 Uncompressed.mov
[12:11:51] mask filter thread started for segment 24
[12:11:51]    + title 1, chapter(s) 1 to 1
[12:11:51]    + container: mov,mp4,m4a,3gp,3g2,mj2
[12:11:51]    + data rate: -2147483 kbps
[12:11:51]  * destination
[12:11:51]    + X:\V2 Handbrake h265 8bit 26M 4k Qty24 Faster xfps xCpeak.mp4
[12:11:51]    + container: MPEG-4 (libavformat)
[12:11:51]  * video track
[12:11:51]    + decoder: v210
[12:11:51]      + bitrate -52476 kbps
[12:11:51]    + filters
[12:11:51]      + 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)
[12:11:51] decomb check thread started for segment 11
[12:11:51]      + Decomb (mode=39)
[12:11:51]      + Framerate Shaper (mode=0)
[12:11:51]        + frame rate: same as source (around 23.976 fps)
[12:11:51]      + Crop and Scale (width=3718:height=2160:crop-top=0:crop-bottom=0:crop-left=122:crop-right=0)
[12:11:51]        + source: 3840 * 2160, crop (0/0/122/0): 3718 * 2160, scale: 3718 * 2160
[12:11:51]    + Output geometry
[12:11:51]      + storage dimensions: 3718 x 2160
[12:11:51]      + pixel aspect ratio: 1 : 1
[12:11:51]      + display dimensions: 3718 x 2160
[12:11:51]    + encoder: H.265 (libx265)
[12:11:51]      + preset:  faster
[12:11:51]      + profile: auto
[12:11:51]      + quality: 24.00 (RF)
[12:11:51] mask filter thread started for segment 26
[12:11:51] mask filter thread started for segment 27
[12:11:51] mask filter thread started for segment 28
[12:11:51] decomb check thread started for segment 13
[12:11:51] mask filter thread started for segment 30
[12:11:51] mask filter thread started for segment 31
[12:11:51] mask erode thread started for segment 0
[12:11:51] mask erode thread started for segment 1
[12:11:51] mask erode thread started for segment 2
[12:11:51] decomb check thread started for segment 17
[12:11:51] mask erode thread started for segment 4
[12:11:51] mask erode thread started for segment 5
[12:11:51] mask erode thread started for segment 6
[12:11:51] decomb check thread started for segment 19
[12:11:51] mask erode thread started for segment 8
[12:11:51] decomb check thread started for segment 20
[12:11:51] mask erode thread started for segment 10
[12:11:51] mask erode thread started for segment 11
[12:11:51] decomb check thread started for segment 22
[12:11:51] mask erode thread started for segment 13
[12:11:51] mask erode thread started for segment 14
[12:11:51] mask erode thread started for segment 15
[12:11:51] mask erode thread started for segment 16
[12:11:51] mask erode thread started for segment 17
[12:11:51] mask erode thread started for segment 18
[12:11:51] mask erode thread started for segment 19
[12:11:51] mask erode thread started for segment 20
[12:11:51] mask erode thread started for segment 21
[12:11:51] decomb check thread started for segment 27
[12:11:51] mask erode thread started for segment 23
[12:11:51] decomb check thread started for segment 28
[12:11:51] mask erode thread started for segment 25
[12:11:51] mask erode thread started for segment 26
[12:11:51] mask erode thread started for segment 27
[12:11:51] mask erode thread started for segment 28
[12:11:51] mask erode thread started for segment 29
[12:11:51] mask erode thread started for segment 30
[12:11:51] mask erode thread started for segment 31
[12:11:51] mask dilate thread started for segment 0
[12:11:51] mask dilate thread started for segment 1
[12:11:51] mask dilate thread started for segment 2
[12:11:51] mask dilate thread started for segment 3
[12:11:51] mask dilate thread started for segment 4
[12:11:51] mask dilate thread started for segment 5
[12:11:51] mask dilate thread started for segment 6
[12:11:51] mask dilate thread started for segment 7
[12:11:51] mask dilate thread started for segment 8
[12:11:51] mask dilate thread started for segment 9
[12:11:51] mask filter thread started for segment 6
[12:11:51] mask dilate thread started for segment 11
[12:11:51] mask dilate thread started for segment 12
[12:11:51] mask dilate thread started for segment 13
[12:11:51] mask dilate thread started for segment 14
[12:11:51] mask dilate thread started for segment 15
[12:11:51] mask dilate thread started for segment 16
[12:11:51] decomb check thread started for segment 4
[12:11:51] mask filter thread started for segment 10
[12:11:51] mask dilate thread started for segment 19
[12:11:51] mask filter thread started for segment 11
[12:11:51] mask dilate thread started for segment 21
[12:11:51] mask dilate thread started for segment 22
[12:11:51] mask dilate thread started for segment 23
[12:11:51] mask dilate thread started for segment 24
[12:11:51] mask dilate thread started for segment 25
[12:11:51] mask filter thread started for segment 15
[12:11:51] mask dilate thread started for segment 27
[12:11:51] mask dilate thread started for segment 28
[12:11:51] mask dilate thread started for segment 29
[12:11:51] mask dilate thread started for segment 30
[12:11:51] mask dilate thread started for segment 31
[12:11:51] mask filter thread started for segment 17
[12:11:51] yadif thread started for segment 1
[12:11:51] yadif thread started for segment 2
[12:11:51] yadif thread started for segment 3
[12:11:51] yadif thread started for segment 4
[12:11:51] yadif thread started for segment 5
[12:11:51] yadif thread started for segment 6
[12:11:51] yadif thread started for segment 8
[12:11:51] yadif thread started for segment 7
[12:11:51] yadif thread started for segment 9
[12:11:51] yadif thread started for segment 10
[12:11:51] yadif thread started for segment 11
[12:11:51] yadif thread started for segment 13
[12:11:51] yadif thread started for segment 12
[12:11:51] yadif thread started for segment 14
[12:11:51] yadif thread started for segment 15
[12:11:51] yadif thread started for segment 18
[12:11:51] yadif thread started for segment 17
[12:11:51] yadif thread started for segment 16
[12:11:51] yadif thread started for segment 19
[12:11:51] yadif thread started for segment 21
[12:11:51] yadif thread started for segment 20
[12:11:51] yadif thread started for segment 22
[12:11:51] yadif thread started for segment 23
[12:11:51] mask filter thread started for segment 22
[12:11:51] yadif thread started for segment 25
[12:11:51] yadif thread started for segment 26
[12:11:51] yadif thread started for segment 29
[12:11:51] yadif thread started for segment 27
[12:11:51] yadif thread started for segment 28
[12:11:51] yadif thread started for segment 30
[12:11:51] yadif thread started for segment 31
[12:11:51] sync: expecting 1440 video frames
x265 [info]: HEVC encoder version 2.6
x265 [info]: build info [Windows][GCC 7.3.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main profile, Level-5 (Main tier)
x265 [info]: Thread pool created using 32 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 6 / wpp(34 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 2 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-24.0 / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 early-skip rskip signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing lslices=8 deblock sao
[12:11:51] sync: first pts video is 0
[12:11:51] sync: Chapter 1 at frame 1 time 0
[12:12:52] reader: done. 1 scr changes
[12:12:53] work: average encoding speed for job is 23.241259 fps
[12:12:53] comb detect: heavy 499 | light 175 | uncombed 766 | total 1440
[12:12:53] decomb: deinterlaced 499 | blended 175 | unfiltered 766 | total 1440
[12:12:53] vfr: lost time: 0 (0 frames)
[12:12:53] vfr: gained time: 0 (0 frames) (0 not accounted for)
[12:12:53] v210-decoder done: 1440 frames, 0 decoder errors
[12:12:53] sync: got 1440 frames, 1440 expected
[12:12:53] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
x265 [info]: frame I:     19, Avg QP:22.81  kb/s: 43132.90
x265 [info]: frame P:    292, Avg QP:26.62  kb/s: 30806.36
x265 [info]: frame B:   1129, Avg QP:29.98  kb/s: 15801.76
x265 [info]: Weighted P-Frames: Y:5.5% UV:4.5%
x265 [info]: consecutive B-frames: 8.0% 0.3% 1.3% 1.3% 89.1%
encoded 1440 frames in 62.66s (22.98 fps), 19204.98 kb/s, Avg QP:29.21
[12:12:54] mux: track 0, 1440 frames, 144187129 bytes, 19205.74 kbps, fifo 512
[12:12:54] libhb: work result = 0

# Encode Completed ...

Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: Dimensions Do not Match Source File

Post by Woodstock »

Handbrake detected a block of 122 black pixels along the left side of your video, and set the cropping to take that off. If you want to keep it, you need to remove the cropping settings. Set autocrop to NO and all cropping numbers to zero.

Dimensions in presets are MAXIMUM sizes. Handbrake will not expand cropped video to those sizes. If the video is only 3718 pixels wide, it won't be expanded to 3940.
Dugdale
Posts: 2
Joined: Fri Oct 12, 2018 6:03 pm

Re: Dimensions Do not Match Source File

Post by Dugdale »

Ah, now that you say that I think I know what is happening, in my test source file I am using a gradient (first test clip) on the left side is a bunch of black that Handbrake is picking up on. When I use a non test file it works fine.

Thanks!
Post Reply