Automatic Animorphic Settings Cropping 2px

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
NikkoToska
Posts: 1
Joined: Sat Sep 19, 2020 9:08 am

Automatic Animorphic Settings Cropping 2px

Post by NikkoToska »

Description of problem or question:
While transcoding an anime series (Soul Eater) from my Blu-rays, I noticed that the automatic settings would sometimes crop 2px from the bottom and right, taking a 1920x1080 input and making it 1918x1078 as an output. I'm going to go back and transcode everything again, but I was wondering why it did that and what the best settings would be to preserve the original aspect ratio. I tried changing the settings to loose, but then it said that it was a 1922x1080 source. It thinks the PAR is 1233x1232, could that be right? Should it really be cropping?



Steps to reproduce the problem (If Applicable):
Just select the file and leave cropping on automatic.



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



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



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

Code: Select all

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19042.0
CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Ram: 16319 MB, 
GPU Information:
  NVIDIA GeForce RTX 2070 SUPER - 27.21.14.5206
Screen: 3840x2160
Temp Dir: C:\Users\phoen\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\phoen\AppData\Roaming\HandBrake

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


# Starting Encode ...

[03:11:40] base preset: H.265 MVK CQ20 Slow Animation
[03:11:40] hb_init: starting libhb thread
[03:11:40] Starting work at: Tue Sep 15 03:11:40 2020
[03:11:40] 1 job(s) to process
[03:11:40] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": "copy:truehd",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Stereo",
        "Track": 2,
        "DitherMethod": 0
      },
      {
        "DRC": 0.0,
        "Encoder": "copy:ac3",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Stereo",
        "Track": 3,
        "DitherMethod": 0
      },
      {
        "DRC": 0.0,
        "Encoder": "copy:truehd",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Surround 5.1",
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "DRC": 0.0,
        "Encoder": "copy:ac3",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Surround 5.1",
        "Track": 1,
        "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"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "F:\\MakeMKV\\Handbrake Transcodes\\Soul Eater Part 1 And Part 2 Disc 2 T00-1.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mkv"
  },
  "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": "2",
          "crop-left": "0",
          "crop-right": "2",
          "crop-top": "0",
          "height": "1078",
          "width": "1918"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 6
    },
    "Title": 1,
    "Path": "F:\\MakeMKV\\Soul Eater Part 1 and Part 2 Disc 2\\Soul Eater Part 1 and Part 2 Disc 2_t00.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 2,
        "Offset": 0,
        "Track": 1
      }
    ]
  },
  "Video": {
    "Encoder": "x265_10bit",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "slow",
    "Profile": "auto",
    "Quality": 20.0,
    "Tune": "animation",
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[03:11:40] CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
[03:11:40]  - Intel microarchitecture Skylake
[03:11:40]  - logical processor count: 8
[03:11:40] Intel Quick Sync Video support: no
[03:11:40] hb_scan: path=F:\MakeMKV\Soul Eater Part 1 and Part 2 Disc 2\Soul Eater Part 1 and Part 2 Disc 2_t00.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image F:\MakeMKV\Soul Eater Part 1 and Part 2 Disc 2\Soul Eater Part 1 and Part 2 Disc 2_t00.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(F:\MakeMKV\Soul Eater Part 1 and Part 2 Disc 2\Soul Eater Part 1 and Part 2 Disc 2_t00.mkv\) failed
[03:11:40] 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
[03:11:40] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'F:\MakeMKV\Soul Eater Part 1 and Part 2 Disc 2\Soul Eater Part 1 and Part 2 Disc 2_t00.mkv':
  Metadata:
    title           : Soul Eater Part 1 and Part 2 Disc 2
    encoder         : libmakemkv v1.15.1 (1.3.5/1.4.7) win(x64-release)
    creation_time   : 2020-09-12T05:21:12.000000Z
  Duration: 00:23:36.96, start: 0.000000, bitrate: 23713 kb/s
    Chapter #0:0: start 0.000000, end 40.040000
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 40.040000, end 130.004875
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 130.004875, end 727.017958
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 727.017958, end 1296.003042
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1296.003042, end 1386.009625
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1386.009625, end 1416.957208
    Metadata:
      title           : Chapter 06
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 19739377
      DURATION-eng    : 00:23:36.957208333
      NUMBER_OF_FRAMES-eng: 33973
      NUMBER_OF_BYTES-eng: 3496231221
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-12 05:21:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: truehd, 48000 Hz, 5.1(side), s32 (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 2438258
      DURATION-eng    : 00:23:36.957500000
      NUMBER_OF_FRAMES-eng: 1700349
      NUMBER_OF_BYTES-eng: 431863396
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-12 05:21:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 448000
      DURATION-eng    : 00:23:36.960000000
      NUMBER_OF_FRAMES-eng: 44280
      NUMBER_OF_BYTES-eng: 79349760
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-12 05:21:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(jpn): Audio: truehd, 48000 Hz, stereo, s32 (24 bit)
    Metadata:
      title           : Stereo
      BPS-eng         : 832147
      DURATION-eng    : 00:23:36.957500000
      NUMBER_OF_FRAMES-eng: 1700349
      NUMBER_OF_BYTES-eng: 147389648
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-12 05:21:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4(jpn): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 00:23:36.960000000
      NUMBER_OF_FRAMES-eng: 44280
      NUMBER_OF_BYTES-eng: 34007040
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-12 05:21:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      BPS-eng         : 36816
      DURATION-eng    : 00:23:33.391145833
      NUMBER_OF_FRAMES-eng: 706
      NUMBER_OF_BYTES-eng: 6504457
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-12 05:21:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:6(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 3125
      DURATION-eng    : 00:22:01.841354166
      NUMBER_OF_FRAMES-eng: 84
      NUMBER_OF_BYTES-eng: 516431
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-12 05:21:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[03:11:40] scan: decoding previews for title 1
[03:11:40] scan: audio 0x1: truehd, rate=48000Hz, bitrate=1 English (TrueHD) (5.1 ch)
[03:11:40] scan: audio 0x2: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (448 kbps)
[03:11:40] scan: audio 0x3: truehd, rate=48000Hz, bitrate=1 ??? (TrueHD) (2.0 ch)
[03:11:40] scan: audio 0x4: ac3, rate=48000Hz, bitrate=192000 ??? (AC3) (2.0 ch) (192 kbps)
[03:11:41] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/2/0/2, aspect 16:9, PAR 1:1
[03:11:41] scan: supported video decoders: avcodec qsv
[03:11:41] libhb: scan thread found 1 valid title(s)
[03:11:41] Starting Task: Encoding Pass
[03:11:41] Skipping vfr filter
[03:11:41] job configuration:
[03:11:41]  * source
[03:11:41]    + F:\MakeMKV\Soul Eater Part 1 and Part 2 Disc 2\Soul Eater Part 1 and Part 2 Disc 2_t00.mkv
[03:11:41]    + title 1, chapter(s) 1 to 6
[03:11:41]    + container: matroska,webm
[03:11:41]    + data rate: 23713 kbps
[03:11:41]  * destination
[03:11:41]    + F:\MakeMKV\Handbrake Transcodes\Soul Eater Part 1 And Part 2 Disc 2 T00-1.mkv
[03:11:41]    + container: Matroska (libavformat)
[03:11:41]      + chapter markers
[03:11:41]  * video track
[03:11:41]    + decoder: h264
[03:11:41]    + filters
[03:11:41]      + 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)
[03:11:41]      + Decomb (mode=39)
[03:11:41]      + Crop and Scale (width=1918:height=1078:crop-top=0:crop-bottom=2:crop-left=0:crop-right=2)
[03:11:41]        + source: 1920 * 1080, crop (0/2/0/2): 1918 * 1078, scale: 1918 * 1078
[03:11:41]    + Output geometry
[03:11:41]      + storage dimensions: 1918 x 1078
[03:11:41]      + pixel aspect ratio: 1 : 1
[03:11:41]      + display dimensions: 1918 x 1078
[03:11:41]    + encoder: H.265 10-bit (libx265)
[03:11:41]      + preset:  slow
[03:11:41]      + tune:    animation
[03:11:41]      + profile: auto
[03:11:41]      + level:   auto
[03:11:41]      + quality: 20.00 (RF)
[03:11:41]      + color profile: 1-1-1
[03:11:41]  * subtitle track 1, English [PGS] (track 0, id 0x5, Picture) -> Passthrough
[03:11:41]  * subtitle track 2, English [PGS] (track 1, id 0x6, Picture) -> Passthrough
[03:11:41]  * audio track 1
[03:11:41]    + name: Stereo
[03:11:41]    + decoder: ??? (TrueHD) (2.0 ch) (track 3, id 0x3)
[03:11:41]      + samplerate: 48000 Hz
[03:11:41]    + TrueHD Passthru
[03:11:41]  * audio track 2
[03:11:41]    + name: Stereo
[03:11:41]    + decoder: ??? (AC3) (2.0 ch) (192 kbps) (track 4, id 0x4)
[03:11:41]      + bitrate: 192 kbps, samplerate: 48000 Hz
[03:11:41]    + AC3 Passthru
[03:11:41]  * audio track 3
[03:11:41]    + name: Surround 5.1
[03:11:41]    + decoder: English (TrueHD) (5.1 ch) (track 1, id 0x1)
[03:11:41]      + samplerate: 48000 Hz
[03:11:41]    + TrueHD Passthru
[03:11:41]  * audio track 4
[03:11:41]    + name: Surround 5.1
[03:11:41]    + decoder: English (AC3) (5.1 ch) (448 kbps) (track 2, id 0x2)
[03:11:41]      + bitrate: 448 kbps, samplerate: 48000 Hz
[03:11:41]    + AC3 Passthru
[03:11:41] sync: expecting 33972 video frames
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Windows][GCC 9.2.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main 10 profile, Level-4 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(17 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         : star / 57 / 3 / 3
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 25 / 6 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 4 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 0.4 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-20.0 / 0.60
x265 [info]: tools: rect limit-modes rd=4 psy-rd=0.40 rdoq=2 psy-rdoq=1.00
x265 [info]: tools: rskip signhide tmvp strong-intra-smoothing lslices=4
x265 [info]: tools: deblock(tC=1:B=1) sao
[03:11:41] sync: first pts audio 0x3 is 0
[03:11:41] sync: first pts audio 0x1 is 0
[03:11:41] sync: first pts audio 0x4 is 0
[03:11:41] sync: first pts audio 0x2 is 0
[03:11:41] sync: first pts video is 0
[03:11:41] sync: "Chapter 1" (1) at frame 1 time 0
[03:11:41] sync: first pts subtitle 0x5 is 180180
[03:13:15] sync: "Chapter 2" (2) at frame 961 time 3603600
[03:14:28] sync: first pts subtitle 0x6 is 5071320
[03:22:05] sync: "Chapter 3" (3) at frame 3118 time 11700438
[03:43:47] sync: "Chapter 4" (4) at frame 17432 time 65431616
[04:16:12] sync: "Chapter 5" (5) at frame 31077 time 116651535
[04:24:03] sync: "Chapter 6" (6) at frame 33232 time 124740866
[04:25:37] reader: done. 1 scr changes
[04:26:00] work: average encoding speed for job is 7.637256 fps
[04:26:00] comb detect: heavy 4 | light 26 | uncombed 33943 | total 33973
[04:26:00] decomb: deinterlaced 4 | blended 26 | unfiltered 33943 | total 33973
[04:26:00] truehd-decoder done: 1700349 frames, 0 decoder errors
[04:26:00] ac3-decoder done: 44280 frames, 0 decoder errors
[04:26:00] truehd-decoder done: 1700349 frames, 0 decoder errors
[04:26:00] ac3-decoder done: 44280 frames, 0 decoder errors
[04:26:00] h264-decoder done: 33973 frames, 0 decoder errors
[04:26:00] sync: got 33973 frames, 33972 expected
[04:26:00] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x265 [info]: frame I:    431, Avg QP:18.28  kb/s: 12368.44
x265 [info]: frame P:   8429, Avg QP:22.29  kb/s: 2968.13
x265 [info]: frame B:  25113, Avg QP:26.93  kb/s: 431.86
x265 [info]: Weighted P-Frames: Y:1.2% UV:0.6%
x265 [info]: consecutive B-frames: 21.8% 13.0% 8.7% 15.2% 8.7% 22.7% 9.8%
encoded 33973 frames in 4458.97s (7.62 fps), 1212.57 kb/s, Avg QP:25.67
[04:26:00] mux: track 0, 33973 frames, 214905584 bytes, 1213.30 kbps, fifo 512
[04:26:00] mux: track 1, 1700349 frames, 147389648 bytes, 832.12 kbps, fifo 32768
[04:26:00] mux: track 2, 44280 frames, 34007040 bytes, 191.99 kbps, fifo 1024
[04:26:00] mux: track 3, 1700349 frames, 431863396 bytes, 2438.19 kbps, fifo 32768
[04:26:00] mux: track 4, 44280 frames, 79349760 bytes, 447.99 kbps, fifo 1024
[04:26:00] mux: track 5, 706 frames, 6504457 bytes, 36.72 kbps, fifo 32
[04:26:00] mux: track 6, 84 frames, 516431 bytes, 2.92 kbps, fifo 16
[04:26:00] Finished work at: Tue Sep 15 04:26:00 2020
[04:26:00] libhb: work result = 0

# Encode Completed ...


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

Re: Automatic Animorphic Settings Cropping 2px

Post by musicvid »

You can turn auto crop off.
Shibblet
Regular User
Posts: 54
Joined: Sun Sep 06, 2009 12:17 am

Re: Automatic Animorphic Settings Cropping 2px

Post by Shibblet »

You get better compression if you crop to 8 (per side) or 16 pixels. Make sure your resolution is evenly divisible by 16.

i.e.
1920 / 16 = 120 (good)
1912 / 16 = 119.5 (bad)
1904 / 16 = 119 (good)
Rorchach91
Posts: 17
Joined: Fri Aug 14, 2020 4:13 am

Re: Automatic Animorphic Settings Cropping 2px

Post by Rorchach91 »

In the Dimensions tab, there is a "Cropping", choose the "Custom" instead of "Automatic".
I used to have similar issue and I bought a [Removed Dubious Product Reference] VideoConverter to resolve the "Auto cropping problem" until I found this option is turned on default.
mduell
Veteran User
Posts: 7220
Joined: Sat Apr 21, 2007 8:54 pm

Re: Automatic Animorphic Settings Cropping 2px

Post by mduell »

Shibblet wrote: Mon Sep 21, 2020 9:25 pm You get better compression if you crop to 8 (per side) or 16 pixels. Make sure your resolution is evenly divisible by 16.

i.e.
1920 / 16 = 120 (good)
1912 / 16 = 119.5 (bad)
1904 / 16 = 119 (good)
This is not true (in any meaningful way) with x264/x265.
Shibblet
Regular User
Posts: 54
Joined: Sun Sep 06, 2009 12:17 am

Re: Automatic Animorphic Settings Cropping 2px

Post by Shibblet »

mduell wrote: Tue Sep 22, 2020 5:53 pm This is not true (in any meaningful way) with x264/x265.
I cannot speak for x265, but x264's Macroblock for High-Profile is 8x8, and the YCbCr value is 16x16. When you have these divided evenly, x264 doesn't have macroblocks that are half sized, and can accommodate for better compression throughout the block.

In either case, 2 pixels has the same issue.

If you mean "file size" when you say "in any meaningful way," it does help in all cases. A smaller video resolution (even 1904x1064), along with 16x16 macroblocks, will ultimately lead to a smaller file size. It doesn't have to be a lot, but it does work.
musicvid
Veteran User
Posts: 3717
Joined: Sat Jun 27, 2009 1:19 am

Re: Automatic Animorphic Settings Cropping 2px

Post by musicvid »

@mduell is correct.
It has nothing to do with Macroblock, Handbrake knows how to handle that!
Learn the difference between macroblock and Modulus, and you will give better advice in the future. x264/265 have handled Mod 2 since they were introduced, do your homework.
Shibblet
Regular User
Posts: 54
Joined: Sun Sep 06, 2009 12:17 am

Re: Automatic Animorphic Settings Cropping 2px

Post by Shibblet »

musicvid wrote: Tue Sep 22, 2020 8:24 pm @mduell is correct.
It has nothing to do with Macroblock, Handbrake knows how to handle that!
Learn the difference between macroblock and Modulus, and you will give better advice in the future. x264/265 have handled Mod 2 since they were introduced, do your homework.
Let me get this straight... You're telling me that a lower resolution, and having macroblocks at 16x16 (i.e. making sure the resolution is evenly divisible by 16) will not result in a smaller file?

If that's the case, please explain why a 1916x1080 video is actually larger than the 1920x1080 when using the EXACT same settings?
Granted, it's not that much larger. But the file size is a bit bigger than the other.
mduell
Veteran User
Posts: 7220
Joined: Sat Apr 21, 2007 8:54 pm

Re: Automatic Animorphic Settings Cropping 2px

Post by mduell »

Vagaries of how constant rate factor encoding works.

Adding big black bars will reduce the file size too. Doesn't mean it's a good idea.
Shibblet
Regular User
Posts: 54
Joined: Sun Sep 06, 2009 12:17 am

Re: Automatic Animorphic Settings Cropping 2px

Post by Shibblet »

mduell wrote: Tue Sep 22, 2020 8:59 pm Vagaries of how constant rate factor encoding works.
Well, that's a rather "vague" answer. ;-)
mduell wrote: Tue Sep 22, 2020 8:59 pm Adding big black bars will reduce the file size too. Doesn't mean it's a good idea.
Yeah, I've played around with that as well.

I get a smaller file when I crop off the black bars (usually 1920x800) Sometimes there are little black non-used pixel areas that are in the TV overscan area out on the sides of the video which do not need to be encoded. So, sometimes you get 1918x1080, or 1920x1078. Things like that.

So, when I notice the resolution is off a bit, I crop it to the closest even division of 16, and I get a smaller file.

I have done tests on this as well, like comparing 1918x1080 vs 1920x1080, and getting smaller files.
So, if this can only be chalked up to "vagaries" it does seem to work very well in that format.
mduell
Veteran User
Posts: 7220
Joined: Sat Apr 21, 2007 8:54 pm

Re: Automatic Animorphic Settings Cropping 2px

Post by mduell »

Encode both ways at a ABR target (2 pass), tune for SSIM or PSNR, and check the results.
musicvid
Veteran User
Posts: 3717
Joined: Sat Jun 27, 2009 1:19 am

Re: Automatic Animorphic Settings Cropping 2px

Post by musicvid »

Let me get this straight... You're telling me that a lower resolution, and having macroblocks at 16x16 (i.e. making sure the resolution is evenly divisible by 16) will not result in a smaller file?
Ah, the old "straw man" fallacy. No, I did not say anything like that, and I'll thank you not to put words in my mouth.

AVI, the oldest codec in existence, requires only that the dimensions be divisible by 4.
x264/x265 only requires both dimensions be divisible by 2 to avoid edge interpolation or decimation. Your 16x16 encoding theories are...well, imaginative.
As far as the rest of your inquiry, using CRF, if you can avoid sweating the little stuff, it will work for you. We make movies, not pixels.
Shibblet
Regular User
Posts: 54
Joined: Sun Sep 06, 2009 12:17 am

Re: Automatic Animorphic Settings Cropping 2px

Post by Shibblet »

Let me get this straight... You're telling me that a lower resolution, and having macroblocks at 16x16 (i.e. making sure the resolution is evenly divisible by 16) will not result in a smaller file?
musicvid wrote: Tue Sep 22, 2020 11:49 pmAh, the old "straw man" fallacy. No, I did not say anything like that, and I'll thank you not to put words in my mouth.
I didn't put words into your mouth. Those were my words. And you threw out the "straw man" fallacy in an attempt to deflect my statement. So I will ask it again. I have made some slight modifications to the question to make it more appropriate to the conversation.

Will a lower resolution and/or having macroblocks at 16x16 (i.e. making sure the resolution is evenly divisible by 16) result in a smaller file?

My answer is: In some situations, a lower resolution will result in a larger file file, but in ALL cases, having the resolution evenly divisible by 16 results in a smaller file.
musicvid
Veteran User
Posts: 3717
Joined: Sat Jun 27, 2009 1:19 am

Re: Automatic Animorphic Settings Cropping 2px

Post by musicvid »

Oh come on, silly.
Shibblet
Regular User
Posts: 54
Joined: Sun Sep 06, 2009 12:17 am

Re: Automatic Animorphic Settings Cropping 2px

Post by Shibblet »

musicvid wrote: Thu Sep 24, 2020 3:56 am Oh come on, silly.
Right?

So then, what was wrong with my original statement?
Post Reply