Horizontal cropping not working

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
mjp81
Posts: 18
Joined: Sat Nov 03, 2018 8:25 pm

Horizontal cropping not working

Post by mjp81 »

Description of problem or question:
Recently, cropping seems to only work with the Top & Bottom controls, but not the Left & Right controls. I can dial in Custom values, but the end result still shows any black bars that are on the left and right. The Scaled Size is adjusted to not change the Pixel Aspect, and the resulting video's properties say it has changed (i.e. 628x480, with "6" values for Left and Right) but the frame size of the video is still the original (640x480), uncropped and all.

Steps to reproduce the problem (If Applicable):

N/A

HandBrake version (e.g., 1.0.0):

HandBrake recently updated to 1.4.2

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

Windows 10 64bit

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

Code: Select all

HandBrake 1.4.2 (2021100300)
OS: Microsoft Windows NT 10.0.19042.0
CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
Ram: 7673 MB, 
GPU Information:
  Intel(R) HD Graphics 520 - 27.20.100.8935
Screen: 1920x1080
Temp Dir: C:\Users\Mike Parthum\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\Mike Parthum\AppData\Roaming\HandBrake

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


# Starting Encode ...
[15:28:34] base preset: Fast 1080p30 (Modified)
[15:28:34] hb_init: starting libhb thread
[15:28:34] Starting work at: Mon Jan 03 15:28:34 2022
[15:28:34] 1 job(s) to process
[15:28:34] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 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",
      "copy:mp2"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "AlignAVStart": true,
    "File": "C:\\Users\\Mike Parthum\\Downloads\\HandBrake Conversions\\NOVA - Countdown to the Invisible Universe(1).mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_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": 13,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "6",
          "crop-right": "6",
          "crop-top": "0",
          "height": "480",
          "width": "628"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Users\\Mike Parthum\\Downloads\\NOVA - Countdown to the Invisible Universe.mp4"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 21,
    "QSV": {
      "Decode": false
    }
  }
}
[15:28:34] CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
[15:28:34]  - Intel microarchitecture Skylake
[15:28:34]  - logical processor count: 4
[15:28:34] Intel Quick Sync Video support: yes, gpu list: 0
[15:28:34] Intel Quick Sync Video integrated adapter with index 0
[15:28:34]  - Intel Media SDK hardware: API 1.34 (minimum: 1.3)
[15:28:34]  - Decode support:  h264 hevc (8bit: yes, 10bit: no)
[15:28:34]  - H.264 encoder: yes
[15:28:34]     - preferred implementation: hardware (1) via D3D11
[15:28:34]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[15:28:34]  - H.265 encoder: yes (8bit: yes, 10bit: no)
[15:28:34]     - preferred implementation: hardware (1) via D3D11
[15:28:34]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[15:28:34] hb_scan: path=C:\Users\Mike Parthum\Downloads\NOVA - Countdown to the Invisible Universe.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image C:\Users\Mike Parthum\Downloads\NOVA - Countdown to the Invisible Universe.mp4
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2646: nav_get_title_list(C:\Users\Mike Parthum\Downloads\NOVA - Countdown to the Invisible Universe.mp4\) failed
[15:28:34] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[15:28:34] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Mike Parthum\Downloads\NOVA - Countdown to the Invisible Universe.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.29.100
  Duration: 00:56:10.47, start: 0.000000, bitrate: 13576 kb/s
  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 640x480 [SAR 1:1 DAR 4:3], 13405 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
      title           : Track1
[15:28:34] scan: decoding previews for title 1
[15:28:34] scan: audio 0x1: aac, rate=48000Hz, bitrate=160000 Unknown (AAC LC) (2.0 ch) (160 kbps)
[15:28:35] scan: 10 previews, 640x480, 30.000 fps, autocrop = 0/0/8/4, aspect 4:3, PAR 1:1, color profile: 1-1-1
[15:28:35] scan: supported video decoders: avcodec qsv
[15:28:35] libhb: scan thread found 1 valid title(s)
[15:28:35] Starting Task: Encoding Pass
[15:28:35] work: track 1, dithering not supported by codec
[15:28:35] job configuration:
[15:28:35]  * source
[15:28:35]    + C:\Users\Mike Parthum\Downloads\NOVA - Countdown to the Invisible Universe.mp4
[15:28:35]    + title 1, chapter(s) 1 to 1
[15:28:35]    + container: mov,mp4,m4a,3gp,3g2,mj2
[15:28:35]    + data rate: 13576 kbps
[15:28:35]  * destination
[15:28:35]    + C:\Users\Mike Parthum\Downloads\HandBrake Conversions\NOVA - Countdown to the Invisible Universe(1).mp4
[15:28:35]    + container: MPEG-4 (libavformat)
[15:28:35]      + align initial A/V stream timestamps
[15:28:35]  * video track
[15:28:35]    + decoder: h264 8-bit (yuv420p)
[15:28:35]      + bitrate 13405 kbps
[15:28:35]    + filters
[15:28:35]      + 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)
[15:28:35]      + Decomb (mode=39)
[15:28:35]      + Framerate Shaper (mode=2:rate=27000000/900000)
[15:28:35]        + frame rate: 30.000 fps -> peak rate limited to 30.000 fps
[15:28:35]      + Crop and Scale (width=628:height=480:crop-top=0:crop-bottom=0:crop-left=6:crop-right=6)
[15:28:35]        + source: 640 * 480, crop (0/0/6/6): 628 * 480, scale: 628 * 480
[15:28:35]    + Output geometry
[15:28:35]      + storage dimensions: 628 x 480
[15:28:35]      + pixel aspect ratio: 1 : 1
[15:28:35]      + display dimensions: 628 x 480
[15:28:35]    + encoder: H.264 (libx264)
[15:28:35]      + preset:  fast
[15:28:35]      + profile: main
[15:28:35]      + level:   4.0
[15:28:35]      + quality: 21.00 (RF)
[15:28:35]      + color profile: 1-1-1
[15:28:35]  * audio track 1
[15:28:35]    + name: Track1
[15:28:35]    + decoder: Unknown (AAC LC) (2.0 ch) (160 kbps) (track 1, id 0x1)
[15:28:35]      + bitrate: 160 kbps, samplerate: 48000 Hz
[15:28:35]    + mixdown: Stereo
[15:28:35]    + encoder: AAC (libavcodec)
[15:28:35]      + bitrate: 160 kbps, samplerate: 48000 Hz
[15:28:35] sync: expecting 101114 video frames
[15:28:35] encx264: min-keyint: 30, keyint: 300
[15:28:35] encx264: encoding at constant RF 21.000000
[15:28:35] 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=1/1
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
[15:28:35] sync: first pts video is 0
[15:28:35] sync: Chapter 1 at frame 1 time 0
[15:28:35] sync: first pts audio 0x1 is 0
[15:59:02] reader: done. 1 scr changes
[15:59:03] work: average encoding speed for job is 55.318882 fps
[15:59:03] comb detect: heavy 382 | light 5702 | uncombed 95030 | total 101114
[15:59:03] decomb: deinterlaced 382 | blended 5702 | unfiltered 95030 | total 101114
[15:59:03] vfr: 101114 frames output, 0 dropped and 0 duped for CFR/PFR
[15:59:03] vfr: lost time: 0 (0 frames)
[15:59:03] vfr: gained time: 0 (0 frames) (0 not accounted for)
[15:59:03] aac-decoder done: 157988 frames, 0 decoder errors
[15:59:03] h264-decoder done: 101114 frames, 0 decoder errors
[15:59:03] sync: got 101114 frames, 101114 expected
[15:59:03] sync: framerate min 30.000 fps, max 30.000 fps, avg 30.000 fps
x264 [info]: frame I:787   Avg QP:19.93  size: 24616
x264 [info]: frame P:27113 Avg QP:22.74  size:  8857
x264 [info]: frame B:73214 Avg QP:24.93  size:  3458
x264 [info]: consecutive B-frames:  2.8%  1.4%  1.6% 94.1%
x264 [info]: mb I  I16..4: 38.8%  0.0% 61.2%
x264 [info]: mb P  I16..4:  5.5%  0.0%  3.1%  P16..4: 51.9% 22.5% 13.5%  0.0%  0.0%    skip: 3.4%
x264 [info]: mb B  I16..4:  3.1%  0.0%  0.2%  B16..8: 28.6%  5.2%  0.1%  direct:42.1%  skip:20.5%  L0:47.3% L1:46.1% BI: 6.5%
x264 [info]: coded y,uvDC,uvAC intra: 33.2% 95.4% 73.3% inter: 12.8% 75.6% 22.9%
x264 [info]: i16 v,h,dc,p: 34% 28% 19% 20%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 28% 24%  5%  5%  5%  6%  4%  5%
x264 [info]: i8c dc,h,v,p: 51% 30% 11%  8%
x264 [info]: Weighted P-Frames: Y:22.0% UV:13.9%
x264 [info]: ref P L0: 58.2% 41.8%
x264 [info]: ref B L0: 73.0% 27.0%
x264 [info]: ref B L1: 93.0%  7.0%
x264 [info]: kb/s:1216.79
[15:59:03] mux: track 0, 101114 frames, 512620009 bytes, 1216.72 kbps, fifo 4096
[15:59:03] mux: track 1, 157989 frames, 67602561 bytes, 160.46 kbps, fifo 4096
[15:59:03] Finished work at: Mon Jan 03 15:59:03 2022
[15:59:03] libhb: work result = 0

# Job Completed!
mduell
Veteran User
Posts: 8207
Joined: Sat Apr 21, 2007 8:54 pm

Re: Horizontal cropping not working

Post by mduell »

Post the MediaInfo output for the output file.
mjp81
Posts: 18
Joined: Sat Nov 03, 2018 8:25 pm

Re: Horizontal cropping not working

Post by mjp81 »

How do I get MediaInfo output?
mduell
Veteran User
Posts: 8207
Joined: Sat Apr 21, 2007 8:54 pm

Re: Horizontal cropping not working

Post by mduell »

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

Re: Horizontal cropping not working

Post by Woodstock »

You are aware that players can (and often do) add their own letterbox to the playback to fit the window?
Post Reply