x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8bit.

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
Kanteroid
Posts: 5
Joined: Sun Jun 21, 2020 8:50 am

x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8bit.

Post by Kanteroid »

Description of problem or question:

There is visible banding in dark scenes when using the 8bit x265 encoder at mid-range CQ and encoder preset levels. For example I'm encoding blade runner blu-ray, an 8bit source, at CQ18 using the fast encoder preset. Banding can be quite visible in some scenes.

This is a screenshot of the encoded version using x265 codec, CQ18 Fast preset, same as source frame rate, everything else set on auto or none. Note that I am not using any filters when doing the encode. The banding is most prevalent on the right side of the picture:
Image

Just so you can see it properly here I jacked the brightness up on the screenshots, but I know that how visible it is will obviously vary depending on monitor or tv brightness. On my TV I can see the banding easily in the conditions I usually watch films in and my TV has been calibrated properly.

For reference, this is a screenshot of the source (also with brightness jacked up):
Image

The banding gets slightly better the slower the encoder preset used at CQ18, but is still present even on very slow at CQ18. The only way I've found to eliminate banding entirely (or at least reduce it to the point where it's barely visible) regardless of the encoder preset used is to either have the CQ at a very low level (such as 8), or use the average bitrate option instead and have it jacked up to 10,000 or more. This of course results in a much bigger file size which is not ideal for my circumstances.

The other alternative however is to use the x265 10bit codec. Using the exact same settings (CQ18, Fast encoder preset etc) I used with the 8bit codec, I get no discernible banding.

Here's a screenshot from the 10bit encode (again with the screenshot edited to have increased brightness):
Image

I mean, normally I'd just use the 10bit encoder as a result but the source is of course an 8bit blu-ray, so my post here mostly stems from the fact I don't understand why using the 10bit codec is making any difference, unless something is wrong with the 8bit codec. The only other thing is I also did the same encode with the x265 NVenc codec and the banding exists on that too so I'm not entirely sure what's going on here, or why the 10bit codec handles 8bit sources better than the 8bit codec? I wonder if there's an advanced option the 10bit codec uses by default that would reduce or remove banding if used with the 8bit codec?

Steps to reproduce the problem (If Applicable):

Encode an 8bit video source that has dark scenes I guess, using the 8bit x265 codec at CQ18 and Fast (or whatever) encoder preset. You can leave everything else on default.

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 Pro May Update v2004

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

Code: Select all

HandBrake 1.3.3 (2020062100)
OS: Microsoft Windows NT 10.0.19041.0
CPU: AMD FX-8370 Eight-Core Processor               
Ram: 16276 MB, 
GPU Information:
  NVIDIA GeForce GTX 1080 - 26.21.14.4614
Screen: 1920x1080
Temp Dir: C:\Users\Skirmish\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Skirmish\AppData\Roaming\HandBrake

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


# Starting Encode ...

[12:14:38] base preset: Custom
[12:14:38] hb_init: starting libhb thread
[12:14:38] Starting work at: Sun Jun 21 12:14:38 2020
[12:14:38] 1 job(s) to process
[12:14:38] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "Quality": 10.0,
        "Samplerate": 0,
        "Name": "Surround 5.1",
        "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"
      },
      {
        "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"
      },
      {
        "Name": "Chapter 20"
      },
      {
        "Name": "Chapter 21"
      },
      {
        "Name": "Chapter 22"
      },
      {
        "Name": "Chapter 23"
      },
      {
        "Name": "Chapter 24"
      },
      {
        "Name": "Chapter 25"
      },
      {
        "Name": "Chapter 26"
      },
      {
        "Name": "Chapter 27"
      },
      {
        "Name": "Chapter 28"
      },
      {
        "Name": "Chapter 29"
      },
      {
        "Name": "Chapter 30"
      },
      {
        "Name": "Chapter 31"
      },
      {
        "Name": "Chapter 32"
      },
      {
        "Name": "Chapter 33"
      },
      {
        "Name": "Chapter 34"
      },
      {
        "Name": "Chapter 35"
      },
      {
        "Name": "Chapter 36"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "D:\\bladerunner-8bit.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "time",
      "Start": 108090000,
      "End": 108990000
    },
    "Title": 1,
    "Path": "D:\\Backup\\bladerunner.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x265",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "auto",
    "Quality": 18.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[12:14:38] CPU:
[12:14:38]  - logical processor count: 8
[12:14:38] Intel Quick Sync Video support: no
[12:14:38] hb_scan: path=D:\Backup\bladerunner.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image D:\Backup\bladerunner.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(D:\Backup\bladerunner.mkv\) failed
[12:14:38] 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
[12:14:38] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\Backup\bladerunner.mkv':
  Metadata:
    encoder         : libmakemkv v1.15.1 (1.3.5/1.4.7) win(x64-release)
    creation_time   : 2020-06-21T08:48:01.000000Z
  Duration: 01:57:36.84, start: 0.000000, bitrate: 25296 kb/s
    Chapter #0:0: start 0.000000, end 178.011167
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 178.011167, end 271.938333
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 271.938333, end 446.279167
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 446.279167, end 677.885542
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 677.885542, end 778.569458
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 778.569458, end 1017.891875
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1017.891875, end 1358.482125
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 1358.482125, end 1504.544708
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 1504.544708, end 1677.967958
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 1677.967958, end 1821.277792
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 1821.277792, end 2179.177000
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 2179.177000, end 2489.945792
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 2489.945792, end 2543.749542
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 2543.749542, end 2756.336917
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 2756.336917, end 2924.463208
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 2924.463208, end 3318.565250
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 3318.565250, end 3446.943500
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 3446.943500, end 3584.998083
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 3584.998083, end 3709.414042
    Metadata:
      title           : Chapter 19
    Chapter #0:19: start 3709.414042, end 3797.752292
    Metadata:
      title           : Chapter 20
    Chapter #0:20: start 3797.752292, end 4064.101708
    Metadata:
      title           : Chapter 21
    Chapter #0:21: start 4064.101708, end 4359.521833
    Metadata:
      title           : Chapter 22
    Chapter #0:22: start 4359.521833, end 4573.360458
    Metadata:
      title           : Chapter 23
    Chapter #0:23: start 4573.360458, end 4812.349208
    Metadata:
      title           : Chapter 24
    Chapter #0:24: start 4812.349208, end 4954.532917
    Metadata:
      title           : Chapter 25
    Chapter #0:25: start 4954.532917, end 5227.513958
    Metadata:
      title           : Chapter 26
    Chapter #0:26: start 5227.513958, end 5324.861208
    Metadata:
      title           : Chapter 27
    Chapter #0:27: start 5324.861208, end 5642.219917
    Metadata:
      title           : Chapter 28
    Chapter #0:28: start 5642.219917, end 5814.225083
    Metadata:
      title           : Chapter 29
    Chapter #0:29: start 5814.225083, end 6072.191125
    Metadata:
      title           : Chapter 30
    Chapter #0:30: start 6072.191125, end 6156.942458
    Metadata:
      title           : Chapter 31
    Chapter #0:31: start 6156.942458, end 6271.515250
    Metadata:
      title           : Chapter 32
    Chapter #0:32: start 6271.515250, end 6356.266583
    Metadata:
      title           : Chapter 33
    Chapter #0:33: start 6356.266583, end 6544.162625
    Metadata:
      title           : Chapter 34
    Chapter #0:34: start 6544.162625, end 6741.359625
    Metadata:
      title           : Chapter 35
    Chapter #0:35: start 6741.359625, end 7056.841458
    Metadata:
      title           : Chapter 36
    Stream #0:0(eng): Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 16874579
      DURATION-eng    : 01:57:36.841458333
      NUMBER_OF_FRAMES-eng: 169195
      NUMBER_OF_BYTES-eng: 14885153002
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _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         : 3766432
      DURATION-eng    : 01:57:36.841666666
      NUMBER_OF_FRAMES-eng: 8468210
      NUMBER_OF_BYTES-eng: 3322389136
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _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, 640 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 640000
      DURATION-eng    : 01:57:36.864000000
      NUMBER_OF_FRAMES-eng: 220527
      NUMBER_OF_BYTES-eng: 564549120
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 640000
      DURATION-eng    : 01:57:36.864000000
      NUMBER_OF_FRAMES-eng: 220527
      NUMBER_OF_BYTES-eng: 564549120
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4(fra): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 640000
      DURATION-eng    : 01:57:36.864000000
      NUMBER_OF_FRAMES-eng: 220527
      NUMBER_OF_BYTES-eng: 564549120
      SOURCE_ID-eng   : 001102
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:5(deu): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 640000
      DURATION-eng    : 01:57:36.864000000
      NUMBER_OF_FRAMES-eng: 220527
      NUMBER_OF_BYTES-eng: 564549120
      SOURCE_ID-eng   : 001103
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:6(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 640000
      DURATION-eng    : 01:57:36.864000000
      NUMBER_OF_FRAMES-eng: 220527
      NUMBER_OF_BYTES-eng: 564549120
      SOURCE_ID-eng   : 001104
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:7(spa): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 640000
      DURATION-eng    : 01:57:36.864000000
      NUMBER_OF_FRAMES-eng: 220527
      NUMBER_OF_BYTES-eng: 564549120
      SOURCE_ID-eng   : 001105
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:8(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:57:36.864000000
      NUMBER_OF_FRAMES-eng: 220527
      NUMBER_OF_BYTES-eng: 169364736
      SOURCE_ID-eng   : 001106
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:9(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:57:36.864000000
      NUMBER_OF_FRAMES-eng: 220527
      NUMBER_OF_BYTES-eng: 169364736
      SOURCE_ID-eng   : 001107
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:10(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:57:36.864000000
      NUMBER_OF_FRAMES-eng: 220527
      NUMBER_OF_BYTES-eng: 169364736
      SOURCE_ID-eng   : 001108
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:11(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 16381
      DURATION-eng    : 01:47:42.310020833
      NUMBER_OF_FRAMES-eng: 1598
      NUMBER_OF_BYTES-eng: 13232466
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:12(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 18726
      DURATION-eng    : 01:47:42.351729166
      NUMBER_OF_FRAMES-eng: 1788
      NUMBER_OF_BYTES-eng: 15127155
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:13(fra): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 14153
      DURATION-eng    : 01:55:09.381645833
      NUMBER_OF_FRAMES-eng: 1488
      NUMBER_OF_BYTES-eng: 12224311
      SOURCE_ID-eng   : 001202
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:14(deu): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17667
      DURATION-eng    : 01:55:09.381645833
      NUMBER_OF_FRAMES-eng: 1596
      NUMBER_OF_BYTES-eng: 15259097
      SOURCE_ID-eng   : 001203
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:15(deu): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 19763
      DURATION-eng    : 01:55:09.381645833
      NUMBER_OF_FRAMES-eng: 1790
      NUMBER_OF_BYTES-eng: 17069155
      SOURCE_ID-eng   : 001204
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:16(ita): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 16499
      DURATION-eng    : 01:55:09.381645833
      NUMBER_OF_FRAMES-eng: 1642
      NUMBER_OF_BYTES-eng: 14250403
      SOURCE_ID-eng   : 001205
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:17(ita): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 18915
      DURATION-eng    : 01:55:09.381645833
      NUMBER_OF_FRAMES-eng: 1830
      NUMBER_OF_BYTES-eng: 16337065
      SOURCE_ID-eng   : 001206
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:18(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 14119
      DURATION-eng    : 01:55:09.423354166
      NUMBER_OF_FRAMES-eng: 1632
      NUMBER_OF_BYTES-eng: 12194618
      SOURCE_ID-eng   : 001207
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:19(nld): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 13911
      DURATION-eng    : 01:55:09.423354166
      NUMBER_OF_FRAMES-eng: 1458
      NUMBER_OF_BYTES-eng: 12014975
      SOURCE_ID-eng   : 001208
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:20(dan): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 15862
      DURATION-eng    : 01:55:09.381645833
      NUMBER_OF_FRAMES-eng: 1521
      NUMBER_OF_BYTES-eng: 13699913
      SOURCE_ID-eng   : 001209
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:21(fin): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 16423
      DURATION-eng    : 01:55:09.381645833
      NUMBER_OF_FRAMES-eng: 1652
      NUMBER_OF_BYTES-eng: 14184687
      SOURCE_ID-eng   : 00120A
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:22(nor): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 14485
      DURATION-eng    : 01:55:09.423354166
      NUMBER_OF_FRAMES-eng: 1606
      NUMBER_OF_BYTES-eng: 12510710
      SOURCE_ID-eng   : 00120B
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:23(por): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 15273
      DURATION-eng    : 01:56:31.505354166
      NUMBER_OF_FRAMES-eng: 1638
      NUMBER_OF_BYTES-eng: 13348495
      SOURCE_ID-eng   : 00120C
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:24(swe): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 14514
      DURATION-eng    : 01:55:09.381645833
      NUMBER_OF_FRAMES-eng: 1508
      NUMBER_OF_BYTES-eng: 12535421
      SOURCE_ID-eng   : 00120D
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-06-21 08:48:01
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[12:14:38] scan: decoding previews for title 1
[12:14:38] scan: audio 0x1: truehd, rate=48000Hz, bitrate=1 English (TrueHD) (5.1 ch)
[12:14:38] scan: audio 0x2: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (640 kbps)
[12:14:38] scan: audio 0x3: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (640 kbps)
[12:14:38] scan: audio 0x4: ac3, rate=48000Hz, bitrate=640000 Francais (AC3) (5.1 ch) (640 kbps)
[12:14:38] scan: audio 0x5: ac3, rate=48000Hz, bitrate=640000 Deutsch (AC3) (5.1 ch) (640 kbps)
[12:14:38] scan: audio 0x6: ac3, rate=48000Hz, bitrate=640000 italiano (AC3) (5.1 ch) (640 kbps)
[12:14:38] scan: audio 0x7: ac3, rate=48000Hz, bitrate=640000 español (AC3) (5.1 ch) (640 kbps)
[12:14:38] scan: audio 0x8: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[12:14:38] scan: audio 0x9: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[12:14:38] scan: audio 0xa: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[12:14:39] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 144/136/0/0, aspect 16:9, PAR 1:1
[12:14:39] libhb: scan thread found 1 valid title(s)
[12:14:39] Starting Task: Encoding Pass
[12:14:39] Skipping crop/scale filter
[12:14:39] job configuration:
[12:14:39]  * source
[12:14:39]    + D:\Backup\bladerunner.mkv
[12:14:39]    + title 1, start 00:20:1.00 stop 00:20:11.00
[12:14:39]    + container: matroska,webm
[12:14:39]    + data rate: 25296 kbps
[12:14:39]  * destination
[12:14:39]    + D:\bladerunner-8bit.mp4
[12:14:39]    + container: MPEG-4 (libavformat)
[12:14:39]      + align initial A/V stream timestamps
[12:14:39]      + chapter markers
[12:14:39]  * video track
[12:14:39]    + decoder: vc1
[12:14:39]    + filter
[12:14:39]      + Framerate Shaper (mode=1)
[12:14:39]        + frame rate: 23.976 fps -> constant 23.976 fps
[12:14:39]    + Output geometry
[12:14:39]      + storage dimensions: 1920 x 1080
[12:14:39]      + pixel aspect ratio: 1 : 1
[12:14:39]      + display dimensions: 1920 x 1080
[12:14:39]    + encoder: H.265 (libx265)
[12:14:39]      + preset:  fast
[12:14:39]      + profile: auto
[12:14:39]      + level:   auto
[12:14:39]      + quality: 18.00 (RF)
[12:14:39]      + color profile: 1-1-1
[12:14:39]  * audio track 1
[12:14:39]    + name: Surround 5.1
[12:14:39]    + decoder: English (TrueHD) (5.1 ch) (track 1, id 0x1)
[12:14:39]      + samplerate: 48000 Hz
[12:14:39]    + mixdown: 5.1 Channels
[12:14:39]    + dither: none
[12:14:39]    + encoder: AAC (libavcodec)
[12:14:39]      + quality: 10.00, samplerate: 48000 Hz
[12:14:39] sync: expecting 263 video frames
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Windows][GCC 9.2.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX XOP FMA4 FMA3 BMI1
x265 [info]: Main 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         : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
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  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-18.0 / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 rskip signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing lslices=6 deblock sao
[12:14:39] sync: first pts audio 0x1 is 0
[12:14:40] sync: "Chapter 7" (7) at frame 1 time -5400
[12:14:40] sync: first pts video is 2107
[12:14:48] sync: reached audio 0x1 pts 900000, exiting early
[12:14:51] sync: reached video pts 903007, exiting early
[12:14:53] work: average encoding speed for job is 21.974831 fps
[12:14:53] vfr: 240 frames output, 0 dropped and 0 duped for CFR/PFR
[12:14:53] vfr: lost time: 0 (0 frames)
[12:14:53] vfr: gained time: 0 (0 frames) (0 not accounted for)
[12:14:53] truehd-decoder done: 20398 frames, 0 decoder errors
[12:14:53] vc1-decoder done: 392 frames, 0 decoder errors
[12:14:53] sync: got 242 frames, 263 expected
[12:14:53] sync: framerate min 23.976 fps, max 23.976 fps, avg 24.176 fps
x265 [info]: frame I:      4, Avg QP:18.14  kb/s: 15900.28
x265 [info]: frame P:     48, Avg QP:19.79  kb/s: 7121.22
x265 [info]: frame B:    188, Avg QP:23.12  kb/s: 1939.08
x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x265 [info]: consecutive B-frames: 7.7% 0.0% 1.9% 3.8% 86.5%
encoded 240 frames in 13.94s (17.22 fps), 3208.19 kb/s, Avg QP:22.37
[12:14:53] mux: track 0, 240 frames, 4015213 bytes, 3195.65 kbps, fifo 256
[12:14:53] mux: track 1, 469 frames, 1005471 bytes, 800.24 kbps, fifo 512
[12:14:53] Finished work at: Sun Jun 21 12:14:53 2020
[12:14:53] libhb: work result = 0

# Encode Completed ...
Kanteroid
Posts: 5
Joined: Sun Jun 21, 2020 8:50 am

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by Kanteroid »

Well, that's useful. None of the images are showing up and I can't edit the original post. You'll just have to look at this album on imgur instead:

https://imgur.com/a/QulIeNe
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by rollin_eng »

Basically due to rounding you may/can get improvements at higher bit encoding no matter what the source is.

viewtopic.php?f=6&t=36432&p=171379&hili ... in#p171354
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by JohnAStebbins »

Here's a simplified explanation of what happens during the encode that may shed some light on why 10bit prevents banding better even when the source is 8bit. viewtopic.php?p=171354#p171354
Kanteroid
Posts: 5
Joined: Sun Jun 21, 2020 8:50 am

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by Kanteroid »

I see! So are there any drawbacks to using the 10bit codec as opposed to the regular one for 8bit sources or should I just use the 10bit one from now on?
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by rollin_eng »

Its mostly about support.

10bit 265 is supported pretty well.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by JohnAStebbins »

I use Fire TV devices for most of my playback and they support h.265 10bit very well. They do not support h.264 10bit (which I found out after encoding several videos without first testing :oops:) . So be sure to test a sample on your target player(s) first. In general h.265 10bit is better supported by devices than h.264 10bit.
Kanteroid
Posts: 5
Joined: Sun Jun 21, 2020 8:50 am

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by Kanteroid »

Makes sense. I'll make some samples then and do some tests. Thanks all for the help, much appreciated. :)
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by mduell »

Kanteroid wrote: Sun Jun 21, 2020 2:07 pm I see! So are there any drawbacks to using the 10bit codec as opposed to the regular one for 8bit sources or should I just use the 10bit one from now on?
It's slower to encode and not as widely supported.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by BradleyS »

For devices that do not support H.265, you can try x264's aq-mode 3, which biases to dark scenes: https://en.m.wikibooks.org/wiki/MeGUI/x ... gs#aq-mode

Add aq-mode=3 to the advanced options (x264 only). Helped me in a pinch once or twice. Using a 10-bit H.265 encoder is preferable if your devices support it.
Kanteroid
Posts: 5
Joined: Sun Jun 21, 2020 8:50 am

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by Kanteroid »

I think I should be OK with 265 10bit, all my devices seemed to play the test sample I made without issue so it's all good.
Deleted User 11865

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by Deleted User 11865 »

How come musicvid hasn't yet commented about it all being in our imagination?
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by rollin_eng »

Say his name 3 times in front of a mirror...I dare you.
Deleted User 13735

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by Deleted User 13735 »

Rodeo wrote: Mon Jun 22, 2020 2:35 pm How come musicvid hasn't yet commented about it all being in our imagination?
I haven't repeated the tests I did in 2011-2015, nor did I test x265, but it looks like it's time.
Last edited by Deleted User 13735 on Mon Jun 22, 2020 7:22 pm, edited 1 time in total.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by rollin_eng »

musicvid wrote: Mon Jun 22, 2020 6:28 pm nor did I test x265 10 bit
Probably shouldn’t post on topics about x265 10bit then.
musicvid wrote: Mon Jun 22, 2020 6:28 pm nor did I test x265
Probably shouldn’t post on topics about x265 then.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: x265 codec produced video with banding while 10bit/12bit codec at same settings doesn't, even though the source is 8

Post by BradleyS »

Let's make sure the friendly banter doesn't get too out of hand, folks, lest I subject everyone to sticky posts about community and codes of conduct and such. ;)
Post Reply