Crop not applying to HEVC in CLI

Discussion of the HandBrake command line interface (CLI)
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
jasonsansone
Posts: 7
Joined: Wed Oct 02, 2019 12:54 pm

Crop not applying to HEVC in CLI

Post by jasonsansone » Wed Oct 02, 2019 1:35 pm

I am attempting to reencode UHD BluRay remux files. The original source material is in an mkv container with h265 Main 10 video format. The issue I am having is that I want to crop the video (all UHD BluRay is 3840x2160 regardless of the viewable format) to remove the wasted black bars. HandbrakeCLI detects the proper crop, but then doesn't apply it. The GUI will detect and apply the crop. I am using Windows 10 1903 with HandbrakeCLI. I tested both 1.2.2 and some nightlies. The objective is to retain the general codec format of the original video track, crop off the unused space, and reduce size while maintaining (what I might view as) a visually lossless reduction in file size.

My cli command is handbrakecli --format "av_mp4" --no-markers --optimize --align-av --previews 25:0 --encoder "x265_10bit" --width "3840" --crop --non-anamorphic --modulus "2" --no-hqdn3d --no-nlmeans --no-deblock --encoder-preset "medium" --encoder-profile "main10" --encoder-level "5.1" --quality "20" --rate "30" --pfr --color-matrix "2020" --start-at "duration:1800" --stop-at "duration:60" --first-audio --audio-lang-list eng --aencoder "av_aac" --ab "640" --mixdown "5point1" --normalize-mix "0" -I testfilein -o testfileout. I am only using duration settings for testing purposes so I don't have to wait 8 hours every time I tweak a setting.

What am I doing wrong in the cli?

Code: Select all

Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
[08:17:43] hb_init: starting libhb thread
[08:17:43] thread 62ac0a0 started ("libhb")
HandBrake 1.2.2 (2019022300) - MinGW x86_64 - https://handbrake.fr
40 CPUs detected
Opening P:\To Sort\To Encode\4K Movie Monitor Folder - Local\test.mkv...
[08:17:43] CPU: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
[08:17:43]  - Intel microarchitecture Ivy Bridge
[08:17:43]  - logical processor count: 40
[08:17:43] Intel Quick Sync Video support: no
[08:17:43] hb_scan: path=P:\To Sort\To Encode\4K Movie Monitor Folder - Local\test.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image P:\To Sort\To Encode\4K Movie Monitor Folder - Local\test.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
[08:17:43] 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
[08:17:43] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'P:\To Sort\To Encode\4K Movie Monitor Folder - Local\test.mkv':
  Metadata:
    title           : Test
    encoder         : libmakemkv v1.14.5 (1.3.5/1.4.7) win(x64-release)
    creation_time   : 2019-09-28T12:57:45.000000Z
  Duration: 01:47:34.87, start: 0.000000, bitrate: 67115 kb/s
    Chapter #0:0: start 0.000000, end 688.646292
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 688.646292, end 859.817292
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 859.817292, end 961.627333
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 961.627333, end 1136.343542
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1136.343542, end 1462.377583
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1462.377583, end 1695.819125
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1695.819125, end 2112.902458
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 2112.902458, end 2407.321583
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 2407.321583, end 2803.383917
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 2803.383917, end 3533.905375
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 3533.905375, end 3901.856292
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 3901.856292, end 4224.303417
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 4224.303417, end 4416.745667
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 4416.745667, end 4934.638042
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 4934.638042, end 5393.137750
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 5393.137750, end 5716.627583
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 5716.627583, end 5851.887708
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 5851.887708, end 6031.900875
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 6031.900875, end 6454.865083
    Metadata:
      title           : Chapter 19
    Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc
    Metadata:
      BPS-eng         : 62863333
      DURATION-eng    : 01:47:34.865083333
      NUMBER_OF_FRAMES-eng: 154762
      NUMBER_OF_BYTES-eng: 50721791179
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-09-28 12:57:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 7.1, s32p (24 bit) (default)
    Metadata:
      title           : Surround 7.1
      BPS-eng         : 4213533
      DURATION-eng    : 01:47:34.858666666
      NUMBER_OF_FRAMES-eng: 605143
      NUMBER_OF_BYTES-eng: 3399720396
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-09-28 12:57:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080 (default)
    Metadata:
      BPS-eng         : 37181
      DURATION-eng    : 01:40:34.048854166
      NUMBER_OF_FRAMES-eng: 2614
      NUMBER_OF_BYTES-eng: 28044512
      SOURCE_ID-eng   : 0012A0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-09-28 12:57:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 640x360 [SAR 72:72 DAR 16:9], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
[08:17:43] scan: decoding previews for title 1
[08:17:43] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (7.1 ch)

Scanning title 1 of 1, preview 1, 4.00 %
Scanning title 1 of 1, preview 1, 4.00 %
Scanning title 1 of 1, preview 1, 4.00 %
Scanning title 1 of 1, preview 2, 8.00 %
Scanning title 1 of 1, preview 2, 8.00 %
Scanning title 1 of 1, preview 2, 8.00 %
Scanning title 1 of 1, preview 2, 8.00 %
Scanning title 1 of 1, preview 3, 12.00 %
Scanning title 1 of 1, preview 3, 12.00 %
Scanning title 1 of 1, preview 3, 12.00 %
Scanning title 1 of 1, preview 3, 12.00 %
Scanning title 1 of 1, preview 4, 16.00 %
Scanning title 1 of 1, preview 4, 16.00 %
Scanning title 1 of 1, preview 4, 16.00 %
Scanning title 1 of 1, preview 5, 20.00 %
Scanning title 1 of 1, preview 5, 20.00 %
Scanning title 1 of 1, preview 5, 20.00 %
Scanning title 1 of 1, preview 6, 24.00 %
Scanning title 1 of 1, preview 6, 24.00 %
Scanning title 1 of 1, preview 6, 24.00 %
Scanning title 1 of 1, preview 6, 24.00 %
Scanning title 1 of 1, preview 7, 28.00 %
Scanning title 1 of 1, preview 7, 28.00 %
Scanning title 1 of 1, preview 7, 28.00 %
Scanning title 1 of 1, preview 8, 32.00 %
Scanning title 1 of 1, preview 8, 32.00 %
Scanning title 1 of 1, preview 8, 32.00 %
Scanning title 1 of 1, preview 9, 36.00 %
Scanning title 1 of 1, preview 9, 36.00 %
Scanning title 1 of 1, preview 9, 36.00 %
Scanning title 1 of 1, preview 9, 36.00 %
Scanning title 1 of 1, preview 10, 40.00 %
Scanning title 1 of 1, preview 10, 40.00 %
Scanning title 1 of 1, preview 10, 40.00 %
Scanning title 1 of 1, preview 10, 40.00 %
Scanning title 1 of 1, preview 11, 44.00 %
Scanning title 1 of 1, preview 11, 44.00 %
Scanning title 1 of 1, preview 11, 44.00 %
Scanning title 1 of 1, preview 12, 48.00 %
Scanning title 1 of 1, preview 12, 48.00 %
Scanning title 1 of 1, preview 12, 48.00 %
Scanning title 1 of 1, preview 13, 52.00 %
Scanning title 1 of 1, preview 13, 52.00 %
Scanning title 1 of 1, preview 13, 52.00 %
Scanning title 1 of 1, preview 13, 52.00 %
Scanning title 1 of 1, preview 14, 56.00 %
Scanning title 1 of 1, preview 14, 56.00 %
Scanning title 1 of 1, preview 14, 56.00 %
Scanning title 1 of 1, preview 15, 60.00 %
Scanning title 1 of 1, preview 15, 60.00 %
Scanning title 1 of 1, preview 15, 60.00 %
Scanning title 1 of 1, preview 16, 64.00 %
Scanning title 1 of 1, preview 16, 64.00 %
Scanning title 1 of 1, preview 16, 64.00 %
Scanning title 1 of 1, preview 16, 64.00 %
Scanning title 1 of 1, preview 17, 68.00 %
Scanning title 1 of 1, preview 17, 68.00 %
Scanning title 1 of 1, preview 17, 68.00 %
Scanning title 1 of 1, preview 18, 72.00 %
Scanning title 1 of 1, preview 18, 72.00 %
Scanning title 1 of 1, preview 18, 72.00 %
Scanning title 1 of 1, preview 19, 76.00 %
Scanning title 1 of 1, preview 19, 76.00 %
Scanning title 1 of 1, preview 19, 76.00 %
Scanning title 1 of 1, preview 20, 80.00 %
Scanning title 1 of 1, preview 20, 80.00 %
Scanning title 1 of 1, preview 20, 80.00 %
Scanning title 1 of 1, preview 20, 80.00 %
Scanning title 1 of 1, preview 21, 84.00 %
Scanning title 1 of 1, preview 21, 84.00 %
Scanning title 1 of 1, preview 21, 84.00 %
Scanning title 1 of 1, preview 22, 88.00 %
Scanning title 1 of 1, preview 22, 88.00 %
Scanning title 1 of 1, preview 22, 88.00 %
Scanning title 1 of 1, preview 22, 88.00 %
Scanning title 1 of 1, preview 23, 92.00 %
Scanning title 1 of 1, preview 23, 92.00 %
Scanning title 1 of 1, preview 23, 92.00 %
Scanning title 1 of 1, preview 24, 96.00 %
Scanning title 1 of 1, preview 24, 96.00 %
Scanning title 1 of 1, preview 24, 96.00 %
Scanning title 1 of 1, preview 25, 100.00 %
Scanning title 1 of 1, preview 25, 100.00 %
Scanning title 1 of 1, preview 25, 100.00 %
Scanning title 1 of 1, preview 25, 100.00 %[08:18:00] scan: 25 previews, 3840x2160, 23.976 fps, autocrop = 262/262/0/0, aspect 16:9, PAR 1:1
[08:18:00] scan: supported video decoders: avcodec qsv
[08:18:00] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: P:\To Sort\To Encode\4K Movie Monitor Folder - Local\test.mkv
  + duration: 01:47:34
  + size: 3840x2160, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 262/262/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:11:29
    + 2: cells 0->0, 0 blocks, duration 00:02:51
    + 3: cells 0->0, 0 blocks, duration 00:01:42
    + 4: cells 0->0, 0 blocks, duration 00:02:55
    + 5: cells 0->0, 0 blocks, duration 00:05:26
    + 6: cells 0->0, 0 blocks, duration 00:03:53
    + 7: cells 0->0, 0 blocks, duration 00:06:57
    + 8: cells 0->0, 0 blocks, duration 00:04:54
    + 9: cells 0->0, 0 blocks, duration 00:06:36
    + 10: cells 0->0, 0 blocks, duration 00:12:11
    + 11: cells 0->0, 0 blocks, duration 00:06:08
    + 12: cells 0->0, 0 blocks, duration 00:05:22
    + 13: cells 0->0, 0 blocks, duration 00:03:12
    + 14: cells 0->0, 0 blocks, duration 00:08:38
    + 15: cells 0->0, 0 blocks, duration 00:07:38
    + 16: cells 0->0, 0 blocks, duration 00:05:23
    + 17: cells 0->0, 0 blocks, duration 00:02:15
    + 18: cells 0->0, 0 blocks, duration 00:03:00
    + 19: cells 0->0, 0 blocks, duration 00:07:03
  + audio tracks:
    + 1, English (DTS-HD MA) (7.1 ch) (iso639-2: eng)
  + subtitle tracks:
    + 1, English [PGS]
[08:18:00] 1 job(s) to process
[08:18:00] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 640,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "5point1",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": true,
        "ChapterList": [
            {
                "Name": "Chapter 1"
            },
            {
                "Name": "Chapter 2"
            },
            {
                "Name": "Chapter 3"
            },
            {
                "Name": "Chapter 4"
            },
            {
                "Name": "Chapter 5"
            },
            {
                "Name": "Chapter 6"
            },
            {
                "Name": "Chapter 7"
            },
            {
                "Name": "Chapter 8"
            },
            {
                "Name": "Chapter 9"
            },
            {
                "Name": "Chapter 10"
            },
            {
                "Name": "Chapter 11"
            },
            {
                "Name": "Chapter 12"
            },
            {
                "Name": "Chapter 13"
            },
            {
                "Name": "Chapter 14"
            },
            {
                "Name": "Chapter 15"
            },
            {
                "Name": "Chapter 16"
            },
            {
                "Name": "Chapter 17"
            },
            {
                "Name": "Chapter 18"
            },
            {
                "Name": "Chapter 19"
            }
        ],
        "ChapterMarkers": false,
        "File": "P:\\To Sort\\To Encode\\4K Movie Monitor Folder - Local\\test.mp4",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": true
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 2160,
                    "width": 3840
                }
            }
        ]
    },
    "Metadata": {
        "Name": "Test"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "P:\\To Sort\\To Encode\\4K Movie Monitor Folder - Local\\test.mkv",
        "Range": {
            "End": 167400000,
            "Start": 162000000,
            "Type": "time"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrix": 9,
        "ColorPrimaries": 9,
        "ColorTransfer": 1,
        "Encoder": "x265_10bit",
        "Level": "5.1",
        "Preset": "medium",
        "Profile": "main10",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 20.0,
        "Turbo": false,
        "TwoPass": false
    }
}
[08:18:00] starting job
[08:18:00] job configuration:
[08:18:00]  * source
[08:18:00]    + P:\To Sort\To Encode\4K Movie Monitor Folder - Local\test.mkv
[08:18:00]    + title 1, start 00:30:0.00 stop 00:31:0.00
[08:18:00]    + container: matroska,webm
[08:18:00]    + data rate: 67115 kbps
[08:18:00]  * destination
[08:18:00]    + P:\To Sort\To Encode\4K Movie Monitor Folder - Local\test.mp4
[08:18:00]    + container: MPEG-4 (libavformat)
[08:18:00]      + optimized for HTTP streaming (fast start)
[08:18:00]      + align initial A/V stream timestamps
[08:18:00]  * video track
[08:18:00]    + decoder: hevc
[08:18:00]    + filters
[08:18:00]      + Framerate Shaper (mode=2:rate=27000000/900000)
[08:18:00]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[08:18:00]      + Crop and Scale (width=3840:height=2160:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[08:18:00]        + source: 3840 * 2160, crop (0/0/0/0): 3840 * 2160, scale: 3840 * 2160
[08:18:00]    + Output geometry
[08:18:00]      + storage dimensions: 3840 x 2160
[08:18:00]      + pixel aspect ratio: 1 : 1
[08:18:00]      + display dimensions: 3840 x 2160
[08:18:00]    + encoder: H.265 10-bit (libx265)
[08:18:00]      + preset:  medium
[08:18:00]      + profile: main10
[08:18:00]      + quality: 20.00 (RF)
[08:18:00]      + color profile: 9-1-9
[08:18:00]  * audio track 1
[08:18:00]    + decoder: English (DTS-HD MA) (7.1 ch) (track 1, id 0x1)
[08:18:00]      + samplerate: 48000 Hz
[08:18:00]    + mixdown: 5.1 Channels
[08:18:00]    + dither: triangular
[08:18:00]    + encoder: AAC (libavcodec)
[08:18:00]      + bitrate: 640 kbps, samplerate: 48000 Hz
[08:18:00] sync: expecting 1462 video frames
x265 [info]: HEVC encoder version 2.9
x265 [info]: build info [Windows][GCC 8.2.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [info]: Main 10 profile, Level-5 (Main tier)
x265 [info]: Thread pool 0 using 20 threads on numa nodes 0
x265 [info]: Thread pool 1 using 20 threads on numa nodes 1
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        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-20.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 rskip signhide tmvp strong-intra-smoothing
x265 [info]: tools: lslices=8 deblock sao
[08:18:01] sync: first pts audio 0x1 is 0
[08:18:02] sync: first pts video is 0
[08:23:02] sync: reached audio 0x1 pts 5400000, exiting early
[08:23:07] sync: reached video pts 5401297, exiting early
[08:23:20] work: average encoding speed for job is 4.697254 fps
[08:23:20] vfr: 1438 frames output, 0 dropped and 0 duped for CFR/PFR
[08:23:20] vfr: lost time: 0 (0 frames)
[08:23:20] vfr: gained time: 0 (0 frames) (0 not accounted for)
[08:23:21] dca-decoder done: 7765 frames, 0 decoder errors
[08:23:21] hevc-decoder done: 1952 frames, 0 decoder errors
[08:23:21] sync: got 1438 frames, 1462 expected
[08:23:21] sync: framerate min 12.573 fps, max 23.981 fps, avg 23.961 fps
x265 [info]: frame I:     24, Avg QP:18.31  kb/s: 33244.76
x265 [info]: frame P:    455, Avg QP:21.26  kb/s: 21288.13
x265 [info]: frame B:    959, Avg QP:23.79  kb/s: 10939.25
x265 [info]: Weighted P-Frames: Y:1.1% UV:0.9%
x265 [info]: consecutive B-frames: 28.4% 12.9% 11.5% 24.4% 22.8% 

encoded 1438 frames in 320.38s (4.49 fps), 14586.03 kb/s, Avg QP:22.90
[08:23:21] mux: track 0, 1438 frames, 109358309 bytes, 14576.66 kbps, fifo 256
[08:23:21] mux: track 1, 2813 frames, 4811080 bytes, 641.28 kbps, fifo 1024
[08:23:21] libhb: work result = 0

Encode done!
HandBrake has exited.


User avatar
Rodeo
HandBrake Team
Posts: 12195
Joined: Tue Mar 03, 2009 8:55 pm

Re: Crop not applying to HEVC in CLI

Post by Rodeo » Wed Oct 02, 2019 7:31 pm

Code: Select all

       --crop   <top:bottom:left:right>
                           Set picture cropping in pixels
                           (default: automatically remove black bars)
       --loose-crop        Always crop to a multiple of the modulus
       --no-loose-crop     Disable preset 'loose-crop'
The documentation is somewhat unclear or possibly misleading, but auto-crop is on by default. By specifying --crop without arguments, you're basically telling HandBrake to encode with a crop of 0:0:0:0, if I am not mistaken. If you remove --crop from your arguments, it should work as intended.

jasonsansone
Posts: 7
Joined: Wed Oct 02, 2019 12:54 pm

Re: Crop not applying to HEVC in CLI

Post by jasonsansone » Wed Oct 02, 2019 8:20 pm

You are a genius and clearly more literate than I. I won't disclose how long I spent working on this issue before resorting to forum support...

However, you are also correct that I read the CLI guide to mean that in the absence of the "--crop" flag there would be no crop applied, that when parameters are defined it is a specific crop, and the default crop when only the flag is used without any trailing parameters is an automatic crop. On the outside chance others interpret the guide the same as I did, a clarification may be necessary... or it may just be me.

Regardless, thank you for your assistance and to all the developers for this excellent program I have used for a decade. I did make it this far without needing help, so that's something.

Code: Select all

--crop   <top:bottom:left:right>
                           Set picture cropping in pixels
                           (default: automatically remove black bars)

Post Reply