Cropping problem

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
buschu
Posts: 3
Joined: Tue Feb 25, 2020 4:18 pm

Cropping problem

Post by buschu »

Description of problem or question:

I have a problem with automatic cropping when I want to change the height or width manually. Then the output parameters are not automatically corrected, as I remember it in earlier versions. So now I always have to calculate and enter the new height or width to get "PAR 1x1" again. Would be nice, if it was automatic again. Maybe it could be implemented as an option. Or did I miss something and Handbrake can still do it automatically?


Steps to reproduce the problem (If Applicable):

Occurs during a TV recording with logo in the black bar: E.g. automatic cropping is 40 on top and 92 at the bottom. I then correct it to 92 on top and have to shrink the heigth by 52 manually. This should be done (optionally) automatically.


HandBrake version (e.g., 1.0.0):

1.3.2


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

Windows 10 2004


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

Code: Select all

HandBrake 1.3.2 (2020050300)
OS: Microsoft Windows NT 10.0.19041.0
CPU: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
Ram: 16328 MB, 
GPU Information:
  Citrix Indirect Display Adapter - 12.40.44.247
  NVIDIA GeForce GT 520 - 23.21.13.9135
Screen: 1920x1080
Temp Dir: C:\Users\Burkhard\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Burkhard\AppData\Roaming\HandBrake

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


# Starting Encode ...

[10:25:29] base preset: Mein Standard
[10:25:29] hb_init: starting libhb thread
[10:25:29] Starting work at: Sat May 30 10:25:29 2020
[10:25:29] 1 job(s) to process
[10:25:29] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 192,
        "DRC": 0.0,
        "Encoder": "ac3",
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "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": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "E:\\Aufnahmen\\Die Letzten beißen die Hunde.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": 12,
        "Settings": {
          "crop-bottom": "88",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "88",
          "height": "544",
          "width": "1280"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "E:\\Aufnahmen\\Die Letzten beißen die Hunde.ts"
  },
  "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": "veryfast",
    "Profile": "main",
    "Quality": 20.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[10:25:29] CPU: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
[10:25:29]  - Intel microarchitecture Ivy Bridge
[10:25:29]  - logical processor count: 4
[10:25:29] Intel Quick Sync Video support: no
[10:25:29] hb_scan: path=E:\Aufnahmen\Die Letzten beißen die Hunde.ts, title_index=1
src/libbluray/disc/disc.c:323: failed opening UDF image E:\Aufnahmen\Die Letzten beißen die Hunde.ts
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(E:\Aufnahmen\Die Letzten beißen die Hunde.ts\) failed
[10:25:29] 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
[10:25:29] dvd: not a dvd - trying as a stream/file instead
[10:25:29] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[10:25:30] Found the following PIDS
[10:25:30]     Video PIDS :
[10:25:30]       0x229 type H.264 (0x1b) (PCR)
[10:25:30]     Audio PIDS :
[10:25:30]       0x22a type MPEG1 (0x3)
[10:25:30]       0x22b type MPEG1 (0x3)
[10:25:30]       0x22c type AC3 (0x81)
[10:25:30]       0x22d type MPEG1 (0x3)
[10:25:30]     Subtitle PIDS :
[10:25:30]     Other PIDS :
[10:25:30]       0x669 type DVB Subtitling (0x0)
[10:25:30] stream id 0x22a (type 0x3 substream 0x0) audio 0x22a
[10:25:30] stream id 0x22b (type 0x3 substream 0x0) audio 0x22b
[10:25:30] stream id 0x22c (type 0x81 substream 0x0) audio 0x22c
[10:25:30] stream id 0x22d (type 0x3 substream 0x0) audio 0x22d
[10:25:32] scan: decoding previews for title 1
[10:25:32] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[10:25:32] scan: audio 0x22b: mp2, rate=48000Hz, bitrate=128000 Unknown (MPEG) (2.0 ch) (128 kbps)
[10:25:32] scan: audio 0x22c: ac3, rate=48000Hz, bitrate=448000 Deutsch (AC3) (2.0 ch) (448 kbps)
[10:25:32] scan: audio 0x22a: mp2, rate=48000Hz, bitrate=128000 Deutsch (MPEG) (2.0 ch) (128 kbps)
[10:25:32] scan: audio 0x22d: mp2, rate=48000Hz, bitrate=128000 Unknown (MPEG) (2.0 ch) (128 kbps)
[10:25:33] stream: 38 good frames, 0 errors (0%)
[10:25:33] scan: 10 previews, 1280x720, 50.000 fps, autocrop = 88/88/0/0, aspect 16:9, PAR 1:1
[10:25:33] scan: supported video decoders: avcodec qsv
[10:25:33] libhb: scan thread found 1 valid title(s)
[10:25:33] Skipping subtitle scan.  No suitable subtitle tracks.
[10:25:33] Starting Task: Encoding Pass
[10:25:33] work: only 1 chapter, disabling chapter markers
[10:25:33] job configuration:
[10:25:33]  * source
[10:25:33]    + E:\Aufnahmen\Die Letzten beißen die Hunde.ts
[10:25:33]    + title 1, chapter(s) 1 to 1
[10:25:33]  * destination
[10:25:33]    + E:\Aufnahmen\Die Letzten beißen die Hunde.mp4
[10:25:33]    + container: MPEG-4 (libavformat)
[10:25:33]      + align initial A/V stream timestamps
[10:25:33]  * video track
[10:25:33]    + decoder: h264
[10:25:33]      + bitrate 200 kbps
[10:25:33]    + filters
[10:25:33]      + 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)
[10:25:33]      + Decomb (mode=39)
[10:25:33]      + Framerate Shaper (mode=1)
[10:25:33]        + frame rate: 50.000 fps -> constant 50.000 fps
[10:25:33]      + Crop and Scale (width=1280:height=544:crop-top=88:crop-bottom=88:crop-left=0:crop-right=0)
[10:25:33]        + source: 1280 * 720, crop (88/88/0/0): 1280 * 544, scale: 1280 * 544
[10:25:33]    + Output geometry
[10:25:33]      + storage dimensions: 1280 x 544
[10:25:33]      + pixel aspect ratio: 1 : 1
[10:25:33]      + display dimensions: 1280 x 544
[10:25:33]    + encoder: H.264 (libx264)
[10:25:33]      + preset:  veryfast
[10:25:33]      + profile: main
[10:25:33]      + level:   4.0
[10:25:33]      + quality: 20.00 (RF)
[10:25:33]      + color profile: 1-1-1
[10:25:33]  * audio track 1
[10:25:33]    + decoder: Deutsch (MPEG) (2.0 ch) (128 kbps) (track 1, id 0x22a)
[10:25:33]      + bitrate: 128 kbps, samplerate: 48000 Hz
[10:25:33]    + mixdown: Stereo
[10:25:33]    + dither: none
[10:25:33]    + encoder: AC3 (libavcodec)
[10:25:33]      + bitrate: 192 kbps, samplerate: 48000 Hz
[10:25:33] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[10:25:33] sync: expecting 334563 video frames
[10:25:33] encx264: min-keyint: 50, keyint: 500
[10:25:33] encx264: encoding at constant RF 20.000000
[10:25:33] encx264: unparsed options: level=4.0:ref=1:8x8dct=0:weightp=1:subme=2:mixed-refs=0:trellis=0:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=10
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[10:25:33] sync: first pts video is 0
[10:25:33] sync: first pts audio 0x22a is 0
[11:10:11] hb_ts_stream_decode - eof
[11:10:11] hb_ts_stream_decode - eof
[11:10:11] reader: done. 3 scr changes
[11:10:11] work: average encoding speed for job is 128.726608 fps
[11:10:11] comb detect: heavy 476 | light 4309 | uncombed 339996 | total 344781
[11:10:11] decomb: deinterlaced 476 | blended 4309 | unfiltered 339996 | total 344781
[11:10:11] vfr: 344784 frames output, 0 dropped and 3 duped for CFR/PFR
[11:10:11] vfr: lost time: 0 (0 frames)
[11:10:11] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:10:11] stream: 344784 good frames, 0 errors (0%)
[11:10:11] mp2-decoder done: 287320 frames, 0 decoder errors
[11:10:11] h264-decoder done: 344783 frames, 0 decoder errors
[11:10:12] sync: got 344781 frames, 334563 expected
[11:10:12] sync: framerate min 25.000 fps, max 50.000 fps, avg 50.000 fps
x264 [info]: frame I:1358  Avg QP:18.34  size: 58474
x264 [info]: frame P:102285 Avg QP:21.35  size: 12037
x264 [info]: frame B:241141 Avg QP:22.69  size:  1759
x264 [info]: consecutive B-frames:  3.1%  9.3%  5.0% 82.6%
x264 [info]: mb I  I16..4: 34.9%  0.0% 65.1%
x264 [info]: mb P  I16..4: 16.5%  0.0%  5.0%  P16..4: 35.2% 12.4%  5.7%  0.0%  0.0%    skip:25.3%
x264 [info]: mb B  I16..4:  1.5%  0.0%  0.3%  B16..8: 10.0%  2.2%  0.2%  direct: 5.7%  skip:80.0%  L0:47.0% L1:42.6% BI:10.4%
x264 [info]: coded y,uvDC,uvAC intra: 44.3% 51.7% 12.3% inter: 7.1% 8.5% 0.1%
x264 [info]: i16 v,h,dc,p: 35% 28% 25% 12%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 27% 18%  5%  7%  6%  7%  5%  5%
x264 [info]: i8c dc,h,v,p: 54% 23% 21%  3%
x264 [info]: Weighted P-Frames: Y:1.7% UV:0.3%
x264 [info]: kb/s:2012.63
[11:10:12] mux: track 0, 344784 frames, 1734753358 bytes, 2012.55 kbps, fifo 4096
[11:10:12] mux: track 1, 215492 frames, 165497856 bytes, 192.00 kbps, fifo 4096
[11:10:12] Finished work at: Sat May 30 11:10:12 2020
[11:10:12] libhb: work result = 0

# Encode Completed ...


mduell
Veteran User
Posts: 8198
Joined: Sat Apr 21, 2007 8:54 pm

Re: Cropping problem

Post by mduell »

Works in the CLI; may be time for you to upgrade away from the GUI.
Post Reply