Chroma Smoothing diminishing returns

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
DKqwerty
Posts: 16
Joined: Wed May 29, 2019 5:02 pm

Chroma Smoothing diminishing returns

Post by DKqwerty »

Description of problem or question:

I'm having confusing results with "Chroma Smooth": efficacy seems to peak at "Medium" strength, with higher settings yielding diminishing returns.

None
Image

Medium + Very Wide
Image

Very Strong + Very Wide
Image

(Link to images if inline images don't work.)

As can be seen, most of the non-mesh chroma rainbowing (on the spoon handle, on the woman's left shoulder, and even around the hooded man's left ear) is essentially eliminated, but then is reintroduced as the strength increases from none to Very Strong.

Is there a reason for this? Because my assumption was that increasing strengths would result in eventual deterioration of the source rather than yielding diminishing results.

I also have additional questions regarding this filter, but am not sure if it's appropriate to cram them in here or to make new topics.


Steps to reproduce the problem (If Applicable):

Encode video with occasional areas of chroma rainbowing with Chroma Smoothing filter over increasing strengths and observe the results.


HandBrake version (e.g., 1.0.0):

1.4.1 (2021081500)


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

Windows 10 Pro (ver. 2004, build 19041.1165)


HandBrake Activity Log

Code: Select all

HandBrake 1.4.1 (2021081500)
OS: Microsoft Windows NT 10.0.19041.0
CPU: Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz
Ram: 32637 MB, 
GPU Information:
  NVIDIA GeForce RTX 3070 Laptop GPU - 27.21.14.6275
  Intel(R) UHD Graphics - 30.0.100.9836
Screen: 3840x2160
Temp Dir: C:\Users\David\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\David\AppData\Roaming\HandBrake

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


# Starting Encode ...
[04:10:50] base preset: ST:VOY (Modified)
Remote Process started with Process ID: 15300 using port: 8037. Max Allowed Instances: 1
Worker: Starting HandBrake Engine ...
Worker: Starting Web Server on port 8037 ...
Worker: Disconnected worker monitoring enabled!
[04:10:51] Compile-time hardening features are enabled
[04:10:51] hb_init: starting libhb thread
[04:10:51] Starting work at: Thu Sep 16 04:10:51 2021
[04:10:51] 1 job(s) to process
[04:10:51] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0,
        "Encoder": "copy:ac3",
        "Gain": 0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 6,
        "NormalizeMixLevel": false,
        "Quality": 6,
        "Samplerate": 48000,
        "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": [
      {
        "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"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "X:\\VOY_PILOT_TEST-CS-06-05.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 2,
        "Settings": {
          "skip-bottom": "0",
          "skip-left": "0",
          "skip-right": "0",
          "skip-top": "0"
        }
      },
      {
        "ID": 4,
        "Settings": {
          "mode": "15"
        }
      },
      {
        "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": "6",
          "crop-left": "8",
          "crop-right": "8",
          "crop-top": "4",
          "height": "470",
          "width": "704"
        }
      },
      {
        "ID": 10,
        "Settings": {
          "cb-size": 11,
          "cb-strength": 2.3999999999999999
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 8,
    "Den": 9
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "time",
      "Start": 271800000,
      "End": 275400000
    },
    "Title": 1,
    "Path": "X:\\Media\\Star Trek\\VOY\\S1D1\\VIDEO_TS"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      }
    ]
  },
  "Video": {
    "Encoder": "x264",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "rc-lookahead=60:bframes=5:ref=4:merange=64",
    "Preset": "veryslow",
    "Profile": "high",
    "Quality": 21,
    "QSV": {
      "Decode": false
    }
  }
}
[04:10:51] CPU: Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz
[04:10:51]  - Intel microarchitecture Comet Lake
[04:10:51]  - logical processor count: 16
[04:10:51] Intel Quick Sync Video support: yes, gpu list: 1
[04:10:51] Intel Quick Sync Video integrated adapter with index 1
[04:10:51]  - Intel Media SDK hardware: API 1.35 (minimum: 1.3)
[04:10:51]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes)
[04:10:51]  - H.264 encoder: yes
[04:10:51]     - preferred implementation: hardware (2) via D3D11
[04:10:51]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[04:10:51]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[04:10:51]     - preferred implementation: hardware (2) via D3D11
[04:10:51]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[04:10:51] hb_scan: path=X:\Media\Star Trek\VOY\S1D1\VIDEO_TS, title_index=1
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(X:\Media\Star Trek\VOY\S1D1\VIDEO_TS\) failed
[04:10:51] bd: not a bd - trying as a stream/file instead
libdvdread: Could not open X:\Media\Star Trek\VOY\S1D1\VIDEO_TS with libdvdcss.
libdvdread: Can't open X:\Media\Star Trek\VOY\S1D1\VIDEO_TS for reading
libdvdread: Device X:\Media\Star Trek\VOY\S1D1\VIDEO_TS inaccessible, CSS authentication not available.
lilibdvdnav: Unable to open device file X:\Media\Star Trek\VOY\S1D1\VIDEO_TS.
bdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00c00000. Regions: 01 02 03 04 05 06
libdvdread: Could not open X:\Media\Star Trek\VOY\S1D1\VIDEO_TS with libdvdcss.
libdvdread: Can't open X:\Media\Star Trek\VOY\S1D1\VIDEO_TS for reading
libdvdread: Device X:\Media\Star Trek\VOY\S1D1\VIDEO_TS inaccessible, CSS authentication not available.
[04:10:51] scan: DVD has 1 title(s)
[04:10:51] scan: scanning title 1
[04:10:51] scan: duration is 01:31:51 (5511033 ms)
[04:10:51] pgc_id: 1, pgn: 1: pgc: 00000237f7789f80
[04:10:51] scan: checking audio 1
[04:10:51] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=1
[04:10:51] scan: title 1 has 17 chapters
[04:10:51] scan: chap 1, 295167 ms
[04:10:51] scan: chap 2, 188133 ms
[04:10:51] scan: chap 3, 457067 ms
[04:10:51] scan: chap 4, 262200 ms
[04:10:51] scan: chap 5, 325767 ms
[04:10:51] scan: chap 6, 349200 ms
[04:10:51] scan: chap 7, 398600 ms
[04:10:51] scan: chap 8, 289166 ms
[04:10:51] scan: chap 9, 255501 ms
[04:10:51] scan: chap 10, 277300 ms
[04:10:51] scan: chap 11, 399533 ms
[04:10:51] scan: chap 12, 366834 ms
[04:10:51] scan: chap 13, 212666 ms
[04:10:51] scan: chap 14, 381166 ms
[04:10:51] scan: chap 15, 448833 ms
[04:10:51] scan: chap 16, 262233 ms
[04:10:51] scan: chap 17, 341666 ms
[04:10:51] scan: aspect = 4:3
[04:10:51] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00c00000. Regions: 01 02 03 04 05 06
[04:10:51] scan: title angle(s) 1
[04:10:51] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (448 kbps)
[04:10:51] scan: 10 previews, 720x480, 23.976 fps, autocrop = 0/0/6/6, aspect 4:3, PAR 8:9, color profile: 6-6-6
[04:10:51] libhb: scan thread found 1 valid title(s)
[04:10:51] Starting Task: Encoding Pass
[04:10:51] MTFrame thread started for segment 14
[04:10:51] MTFrame thread started for segment 0
[04:10:51] MTFrame thread started for segment 2
[04:10:51] MTFrame thread started for segment 1
[04:10:51] MTFrame thread started for segment 4
[04:10:51] MTFrame thread started for segment 3
[04:10:51] MTFrame thread started for segment 5
[04:10:51] MTFrame thread started for segment 6
[04:10:51] MTFrame thread started for segment 7
[04:10:51] MTFrame thread started for segment 8
[04:10:51] MTFrame thread started for segment 9
[04:10:51] MTFrame thread started for segment 10
[04:10:51] MTFrame thread started for segment 11
[04:10:51] MTFrame thread started for segment 12
[04:10:51] MTFrame thread started for segment 13
[04:10:51] MTFrame thread started for segment 15
[04:10:51] work: track 2, dithering not supported by codec
[04:10:51] job configuration:
[04:10:51]  * source
[04:10:51]    + X:\Media\Star Trek\VOY\S1D1\VIDEO_TS
[04:10:51]    + title 1, start 00:50:20.00 stop 00:51:0.00
[04:10:51]  * destination
[04:10:51]    + X:\VOY_PILOT_TEST-CS-06-05.mkv
[04:10:51]    + container: Matroska (libavformat)
[04:10:51]      + chapter markers
[04:10:51]  * video track
[04:10:51]    + decoder: mpeg2video 8-bit
[04:10:51]      + bitrate 200 kbps
[04:10:51]    + filters
[04:10:51]      + Detelecine (pullup) (skip-left=0:skip-right=0:skip-top=0:skip-bottom=0)
[04:10: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)
[04:10:51]      + Decomb (mode=47)
[04:10:51]      + Framerate Shaper (mode=0)
[04:10:51]        + frame rate: same as source (around 23.976 fps)
[04:10:51]      + Crop and Scale (width=704:height=470:crop-top=4:crop-bottom=6:crop-left=8:crop-right=8)
[04:10:51]        + source: 720 * 480, crop (4/6/8/8): 704 * 470, scale: 704 * 470
[04:10:51]      + Chroma Smooth (cb-strength=2.4:cb-size=11)
[04:10:51]    + Output geometry
[04:10:51]      + storage dimensions: 704 x 470
[04:10:51]      + pixel aspect ratio: 8 : 9
[04:10:51]      + display dimensions: 625 x 470
[04:10:51]    + encoder: H.264 (libx264)
[04:10:51]      + preset:  veryslow
[04:10:51]      + options: rc-lookahead=60:bframes=5:ref=4:merange=64
[04:10:51]      + profile: high
[04:10:51]      + level:   auto
[04:10:51]      + quality: 21.00 (RF)
[04:10:51]      + color profile: 6-6-6
[04:10:51]  * subtitle track 1, English, Closed Caption [CC608] (track 0, id 0xfe000000, Text) -> Passthrough
[04:10:51]  * audio track 1
[04:10:51]    + decoder: English (AC3) (5.1 ch) (448 kbps) (track 1, id 0x80bd)
[04:10:51]      + bitrate: 448 kbps, samplerate: 48000 Hz
[04:10:51]    + AC3 Passthru
[04:10:51]  * audio track 2
[04:10:51]    + decoder: English (AC3) (5.1 ch) (448 kbps) (track 1, id 0x80bd)
[04:10:51]      + bitrate: 448 kbps, samplerate: 48000 Hz
[04:10:51]    + mixdown: Dolby Pro Logic II
[04:10:51]    + encoder: AAC (libavcodec)
[04:10:51]      + quality: 6.00, samplerate: 48000 Hz
libdvdread: Could not open X:\Media\Star Trek\VOY\S1D1\VIDEO_TS with libdvdcss.
libdvdread: Can't open X:\Media\Star Trek\VOY\S1D1\VIDEO_TS for reading
libdvdread: Device X:\Media\Star Trek\VOY\S1D1\VIDEO_TS inaccessible, CSS authentication not available.
libdvdnlibdvdnav: Unable to open device file X:\Media\Star Trek\VOY\S1D1\VIDEO_TS.
av: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00c00000. Regions: 01 02 03 04 05 06
libdvdread: Could not open X:\Media\Star Trek\VOY\S1D1\VIDEO_TS with libdvdcss.
libdvdread: Can't open X:\Media\Star Trek\VOY\S1D1\VIDEO_TS for reading
libdvdread: Device X:\Media\Star Trek\VOY\S1D1\VIDEO_TS inaccessible, CSS authentication not available.
libdvdnav: DVD disk reports itself with Region mask 0x00c00000. Regions: 01 02 03 04 05 06
[04:10:51] sync: expecting 983 video frames
[04:10:51] encx264: min-keyint: 24, keyint: 240
[04:10:51] encx264: encoding at constant RF 21.000000
[04:10:51] encx264: unparsed options: rc-lookahead=60:bframes=5:ref=4:merange=64:b-adapt=2:direct=auto:analyse=all:me=umh:subme=10:trellis=2
x264 [info]: using SAR=8/9
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 3.0, 4:2:0, 8-bit
[04:11:10] sync: first pts audio 0x80bd is 0
[04:11:10] sync: first pts audio 0x80bd is 0
[04:11:10] sync: first pts video is 578
[04:11:10] sync: first pts subtitle 0xfe000000 is 151680
[04:11:10] sync: subtitle 0xfe000000 has no duration, PTS 466995
[04:11:12] sync: subtitle 0xfe000000 has no duration, PTS 1109637
[04:11:16] sync: subtitle 0xfe000000 has no duration, PTS 1875402
[04:11:23] sync: reached audio 0x80bd pts 3600000, exiting early
[04:11:23] sync: reached audio 0x80bd pts 3600000, exiting early
[04:11:23] sync: reached video pts 3600424, exiting early
[04:11:26] work: average encoding speed for job is 74.052910 fps
[04:11:26] comb detect: heavy 53 | light 298 | uncombed 608 | total 959
[04:11:26] decomb: deinterlaced 53 | blended 298 | unfiltered 608 | total 959
[04:11:26] vfr: lost time: 0 (0 frames)
[04:11:26] vfr: gained time: 0 (0 frames) (0 not accounted for)
[04:11:27] ac3-decoder done: 109845 frames, 0 decoder errors
[04:11:27] ac3-decoder done: 109845 frames, 0 decoder errors
[04:11:27] mpeg2video-decoder done: 86101 frames, 0 decoder errors
[04:11:27] sync: got 959 frames, 983 expected
[04:11:27] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[aac @ 00000237f6ce1ec0] Ignoring attempt to flush encoder that doesn't support it
[aac @ 00000237f6ce1ec0] Qavg: 708.000
x264 [info]: frame I:6     Avg QP:20.43  size: 33968
x264 [info]: frame P:204   Avg QP:22.49  size: 11364
x264 [info]: frame B:749   Avg QP:27.14  size:  2424
x264 [info]: consecutive B-frames:  1.7%  0.8%  8.4% 20.4% 13.6% 55.1%
x264 [info]: mb I  I16..4:  8.4% 74.1% 17.5%
x264 [info]: mb P  I16..4:  1.0%  8.9%  1.2%  P16..4: 49.2% 16.6% 14.3%  0.3%  0.1%    skip: 8.3%
x264 [info]: mb B  I16..4:  0.1%  0.8%  0.1%  B16..8: 39.9%  6.2%  1.4%  direct: 2.8%  skip:48.7%  L0:43.2% L1:47.2% BI: 9.6%
x264 [info]: 8x8 transform intra:79.3% inter:72.0%
x264 [info]: direct mvs  spatial:98.9% temporal:1.1%
x264 [info]: coded y,uvDC,uvAC intra: 77.7% 63.6% 27.0% inter: 13.0% 16.5% 4.5%
x264 [info]: i16 v,h,dc,p: 28% 10%  4% 58%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22%  7%  3%  8% 11% 15% 11% 14% 10%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 11%  2%  8% 12% 14% 14% 11% 12%
x264 [info]: i8c dc,h,v,p: 28% 21% 21% 30%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 57.2% 13.3% 22.1%  7.2%  0.2%
x264 [info]: ref B L0: 90.3%  8.1%  1.6%
x264 [info]: ref B L1: 95.8%  4.2%
x264 [info]: kb/s:867.56
[04:11:27] mux: track 0, 959 frames, 4337355 bytes, 866.60 kbps, fifo 1024
[04:11:27] mux: track 1, 1250 frames, 2240000 bytes, 447.55 kbps, fifo 2048
[04:11:27] mux: track 2, 1876 frames, 1947364 bytes, 389.08 kbps, fifo 2048
[04:11:27] mux: track 3, 11 frames, 1231 bytes, 0.25 kbps, fifo 16
[04:11:27] Finished work at: Thu Sep 16 04:11:27 2021
[04:11:27] libhb: work result = 0

# Job Completed!
Post Reply