12 bit vs 10 bit vs 8 bit x265 encoding

Random chit-chat and anything that doesn't belong elsewhere
Post Reply
rollin_eng
Veteran User
Posts: 3605
Joined: Wed May 04, 2011 11:06 pm

12 bit vs 10 bit vs 8 bit x265 encoding

Post by rollin_eng »

In response to:
musicvid wrote: Wed Dec 04, 2019 9:35 pm Yes, one is linked above. Feel free to start a thread in the Tiki Bar with some of your own tests.
Thoughts?

Code: Select all

HandBrake Nightly 20191120092535-820d264-master (2019112001)
OS: Microsoft Windows NT 10.0.18363.0
CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Ram: 32719 MB, 
GPU Information:
  AMD Radeon(TM) R9 270 - 26.20.13031.18002
Screen: 1920x1080
Temp Dir: C:\Users\1\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\1\AppData\Roaming\HandBrake\Nightly

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


# Starting Encode ...

[10:08:16] base preset: Apple 1080p60 Surround (Modified)
[10:08:16] hb_init: starting libhb thread
[10:08:16] Starting work at: Thu Dec 05 10:08:16 2019
[10:08:16] 1 job(s) to process
[10:08:16] json job:
{
  "Audio": {
    "AudioList": [],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "AlignAVStart": false,
    "File": "D:\\X265\\8BIT.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "138",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "138",
          "height": "804",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/450000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "F:\\backup\\SPIDER-MAN_FAR_FROM_HOME"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x265",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "ultrafast",
    "Profile": "auto",
    "Quality": 25.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[10:08:16] CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
[10:08:16]  - Intel microarchitecture Haswell
[10:08:16]  - logical processor count: 8
[10:08:16] Intel Quick Sync Video support: no
[10:08:16] hb_scan: path=F:\backup\SPIDER-MAN_FAR_FROM_HOME, title_index=1
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
[10:08:16] scan: BD has 196 title(s)
[10:08:16] bd: scanning title 1
[10:08:16] bd: playlist 00001.MPLS
[10:08:16] bd: duration is 02:09:23 (7763756 ms)
[10:08:16] bd: video id=0x1011, stream type=H.264, format 1080p
[10:08:16] bd: aspect = 16:9
[10:08:16] bd: audio id=0x711100, lang=English (DTS), 3cc=eng
[10:08:16] bd: audio id=0x1100, lang=English (DTS-HD MA), 3cc=eng
[10:08:16] bd: audio id=0x1101, lang=English (AC3), 3cc=eng
[10:08:16] bd: audio id=0x1102, lang=Francais (AC3), 3cc=fra
[10:08:16] bd: audio id=0x1103, lang=Francais (AC3), 3cc=fra
[10:08:16] bd: audio id=0x1104, lang=español (AC3), 3cc=spa
[10:08:16] bd: subtitle id=0x1200, lang=English [PGS], 3cc=eng
[10:08:16] bd: subtitle id=0x1201, lang=English [PGS], 3cc=eng
[10:08:16] bd: subtitle id=0x1202, lang=Francais [PGS], 3cc=fra
[10:08:16] bd: subtitle id=0x1203, lang=español [PGS], 3cc=spa
[10:08:16] bd: subtitle id=0x1204, lang=Francais [PGS], 3cc=fra
[10:08:16] bd: chap 1, 575032 ms
[10:08:16] bd: chap 2, 391682 ms
[10:08:16] bd: chap 3, 551759 ms
[10:08:16] bd: chap 4, 608024 ms
[10:08:16] bd: chap 5, 390515 ms
[10:08:16] bd: chap 6, 473014 ms
[10:08:16] bd: chap 7, 439480 ms
[10:08:16] bd: chap 8, 461127 ms
[10:08:16] bd: chap 9, 666582 ms
[10:08:16] bd: chap 10, 411869 ms
[10:08:16] bd: chap 11, 396104 ms
[10:08:16] bd: chap 12, 438062 ms
[10:08:16] bd: chap 13, 484108 ms
[10:08:16] bd: chap 14, 450032 ms
[10:08:16] bd: chap 15, 328036 ms
[10:08:16] bd: chap 16, 698322 ms
[10:08:16] bd: title 1 has 16 chapters
[10:08:16] scan: decoding previews for title 1
[10:08:16] scan: title angle(s) 1
[10:08:16] scan: audio 0x711100: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[10:08:16] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (7.1 ch)
[10:08:16] scan: audio 0x1101: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (640 kbps)
[10:08:16] scan: audio 0x1102: ac3, rate=48000Hz, bitrate=640000 Francais (AC3) (5.1 ch) (640 kbps)
[10:08:16] scan: audio 0x1103: ac3, rate=48000Hz, bitrate=640000 Francais (AC3) (5.1 ch) (640 kbps)
[10:08:16] scan: audio 0x1104: ac3, rate=48000Hz, bitrate=640000 español (AC3) (5.1 ch) (640 kbps)
[10:08:17] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1
[10:08:17] scan: supported video decoders: avcodec qsv
[10:08:17] stream: 5 good frames, 0 errors (0%)
[10:08:17] libhb: scan thread found 1 valid title(s)
[10:08:17] Starting Task: Encoding Pass
[10:08:17] job configuration:
[10:08:17]  * source
[10:08:17]    + F:\backup\SPIDER-MAN_FAR_FROM_HOME
[10:08:17]    + title 1, chapter(s) 1 to 1
[10:08:17]  * destination
[10:08:17]    + D:\X265\8BIT.m4v
[10:08:17]    + container: MPEG-4 (libavformat)
[10:08:17]  * video track
[10:08:17]    + decoder: h264
[10:08:17]      + bitrate 200 kbps
[10:08:17]    + filters
[10:08:17]      + Framerate Shaper (mode=2:rate=27000000/450000)
[10:08:17]        + frame rate: 23.976 fps -> peak rate limited to 60.000 fps
[10:08:17]      + Crop and Scale (width=1920:height=804:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[10:08:17]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[10:08:17]    + Output geometry
[10:08:17]      + storage dimensions: 1920 x 804
[10:08:17]      + pixel aspect ratio: 1 : 1
[10:08:17]      + display dimensions: 1920 x 804
[10:08:17]    + encoder: H.265 (libx265)
[10:08:17]      + preset:  ultrafast
[10:08:17]      + profile: auto
[10:08:17]      + level:   auto
[10:08:17]      + quality: 25.00 (RF)
[10:08:17]      + color profile: 1-1-1
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
[10:08:17] sync: expecting 13786 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 FMA3 BMI2 AVX2
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(26 rows)
x265 [info]: Coding QT: max CU size, min CU size : 32 / 16
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : dia / 57 / 0 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 0 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 5 / 3 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 0 / 0
x265 [info]: References / ref-limit  cu / depth  : 1 / off / off
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 0.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-25.0 / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 early-skip rskip tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing lslices=5 deblock
[10:08:17] sync: first pts video is 0
[10:08:17] sync: "Chapter 1" (1) at frame 1 time 0
[10:12:04] reader: end of chapter 1 (media 1) reached at media chapter 2
[10:12:04] reader: done. 1 scr changes
[10:12:05] work: average encoding speed for job is 60.498173 fps
[10:12:05] vfr: 13787 frames output, 0 dropped and 0 duped for CFR/PFR
[10:12:05] vfr: lost time: 0 (0 frames)
[10:12:05] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:12:05] stream: 13788 good frames, 0 errors (0%)
[10:12:05] h264-decoder done: 13787 frames, 0 decoder errors
[10:12:05] sync: got 13787 frames, 13786 expected
[10:12:05] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x265 [info]: frame I:     58, Avg QP:27.52  kb/s: 7753.47
x265 [info]: frame P:   3462, Avg QP:29.35  kb/s: 2415.49
x265 [info]: frame B:  10267, Avg QP:32.33  kb/s: 687.71
x265 [info]: consecutive B-frames: 1.3% 1.4% 1.8% 95.6%
encoded 13787 frames in 228.22s (60.41 fps), 1151.29 kb/s, Avg QP:31.56
[10:12:05] mux: track 0, 13787 frames, 82808881 bytes, 1152.06 kbps, fifo 4096
[10:12:05] Finished work at: Thu Dec 05 10:12:05 2019
[10:12:05] libhb: work result = 0

# Encode Completed ...


Code: Select all

HandBrake Nightly 20191120092535-820d264-master (2019112001)
OS: Microsoft Windows NT 10.0.18363.0
CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Ram: 32719 MB, 
GPU Information:
  AMD Radeon(TM) R9 270 - 26.20.13031.18002
Screen: 1920x1080
Temp Dir: C:\Users\1\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\1\AppData\Roaming\HandBrake\Nightly

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


# Starting Encode ...

[10:14:52] base preset: Apple 1080p60 Surround (Modified)
[10:14:52] hb_init: starting libhb thread
[10:14:52] Starting work at: Thu Dec 05 10:14:52 2019
[10:14:52] 1 job(s) to process
[10:14:52] json job:
{
  "Audio": {
    "AudioList": [],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "AlignAVStart": false,
    "File": "D:\\X265\\10BIT.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "138",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "138",
          "height": "804",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/450000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "F:\\backup\\SPIDER-MAN_FAR_FROM_HOME"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x265_10bit",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "ultrafast",
    "Profile": "auto",
    "Quality": 25.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[10:14:52] CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
[10:14:52]  - Intel microarchitecture Haswell
[10:14:52]  - logical processor count: 8
[10:14:52] Intel Quick Sync Video support: no
[10:14:52] hb_scan: path=F:\backup\SPIDER-MAN_FAR_FROM_HOME, title_index=1
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
[10:14:52] scan: BD has 196 title(s)
[10:14:52] bd: scanning title 1
[10:14:52] bd: playlist 00001.MPLS
[10:14:52] bd: duration is 02:09:23 (7763756 ms)
[10:14:52] bd: video id=0x1011, stream type=H.264, format 1080p
[10:14:52] bd: aspect = 16:9
[10:14:52] bd: audio id=0x711100, lang=English (DTS), 3cc=eng
[10:14:52] bd: audio id=0x1100, lang=English (DTS-HD MA), 3cc=eng
[10:14:52] bd: audio id=0x1101, lang=English (AC3), 3cc=eng
[10:14:52] bd: audio id=0x1102, lang=Francais (AC3), 3cc=fra
[10:14:52] bd: audio id=0x1103, lang=Francais (AC3), 3cc=fra
[10:14:52] bd: audio id=0x1104, lang=español (AC3), 3cc=spa
[10:14:52] bd: subtitle id=0x1200, lang=English [PGS], 3cc=eng
[10:14:52] bd: subtitle id=0x1201, lang=English [PGS], 3cc=eng
[10:14:52] bd: subtitle id=0x1202, lang=Francais [PGS], 3cc=fra
[10:14:52] bd: subtitle id=0x1203, lang=español [PGS], 3cc=spa
[10:14:52] bd: subtitle id=0x1204, lang=Francais [PGS], 3cc=fra
[10:14:52] bd: chap 1, 575032 ms
[10:14:52] bd: chap 2, 391682 ms
[10:14:52] bd: chap 3, 551759 ms
[10:14:52] bd: chap 4, 608024 ms
[10:14:52] bd: chap 5, 390515 ms
[10:14:52] bd: chap 6, 473014 ms
[10:14:52] bd: chap 7, 439480 ms
[10:14:52] bd: chap 8, 461127 ms
[10:14:52] bd: chap 9, 666582 ms
[10:14:52] bd: chap 10, 411869 ms
[10:14:52] bd: chap 11, 396104 ms
[10:14:52] bd: chap 12, 438062 ms
[10:14:52] bd: chap 13, 484108 ms
[10:14:52] bd: chap 14, 450032 ms
[10:14:52] bd: chap 15, 328036 ms
[10:14:52] bd: chap 16, 698322 ms
[10:14:52] bd: title 1 has 16 chapters
[10:14:52] scan: decoding previews for title 1
[10:14:52] scan: title angle(s) 1
[10:14:52] scan: audio 0x711100: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[10:14:52] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (7.1 ch)
[10:14:52] scan: audio 0x1101: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (640 kbps)
[10:14:52] scan: audio 0x1102: ac3, rate=48000Hz, bitrate=640000 Francais (AC3) (5.1 ch) (640 kbps)
[10:14:52] scan: audio 0x1103: ac3, rate=48000Hz, bitrate=640000 Francais (AC3) (5.1 ch) (640 kbps)
[10:14:52] scan: audio 0x1104: ac3, rate=48000Hz, bitrate=640000 español (AC3) (5.1 ch) (640 kbps)
[10:14:53] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1
[10:14:53] scan: supported video decoders: avcodec qsv
[10:14:53] stream: 5 good frames, 0 errors (0%)
[10:14:53] libhb: scan thread found 1 valid title(s)
[10:14:53] Starting Task: Encoding Pass
[10:14:53] job configuration:
[10:14:53]  * source
[10:14:53]    + F:\backup\SPIDER-MAN_FAR_FROM_HOME
[10:14:53]    + title 1, chapter(s) 1 to 1
[10:14:53]  * destination
[10:14:53]    + D:\X265\10BIT.m4v
[10:14:53]    + container: MPEG-4 (libavformat)
[10:14:53]  * video track
[10:14:53]    + decoder: h264
[10:14:53]      + bitrate 200 kbps
[10:14:53]    + filters
[10:14:53]      + Framerate Shaper (mode=2:rate=27000000/450000)
[10:14:53]        + frame rate: 23.976 fps -> peak rate limited to 60.000 fps
[10:14:53]      + Crop and Scale (width=1920:height=804:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[10:14:53]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[10:14:53]    + Output geometry
[10:14:53]      + storage dimensions: 1920 x 804
[10:14:53]      + pixel aspect ratio: 1 : 1
[10:14:53]      + display dimensions: 1920 x 804
[10:14:53]    + encoder: H.265 10-bit (libx265)
[10:14:53]      + preset:  ultrafast
[10:14:53]      + profile: auto
[10:14:53]      + level:   auto
[10:14:53]      + quality: 25.00 (RF)
[10:14:53]      + color profile: 1-1-1
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
[10:14:53] sync: expecting 13786 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(26 rows)
x265 [info]: Coding QT: max CU size, min CU size : 32 / 16
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : dia / 57 / 0 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 0 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 5 / 3 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 0 / 0
x265 [info]: References / ref-limit  cu / depth  : 1 / off / off
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 0.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-25.0 / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 early-skip rskip tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing lslices=5 deblock
[10:14:53] sync: first pts video is 0
[10:14:53] sync: "Chapter 1" (1) at frame 1 time 0
[10:19:10] reader: end of chapter 1 (media 1) reached at media chapter 2
[10:19:10] reader: done. 1 scr changes
[10:19:11] work: average encoding speed for job is 53.541382 fps
[10:19:11] vfr: 13787 frames output, 0 dropped and 0 duped for CFR/PFR
[10:19:11] vfr: lost time: 0 (0 frames)
[10:19:11] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:19:11] stream: 13788 good frames, 0 errors (0%)
[10:19:11] h264-decoder done: 13787 frames, 0 decoder errors
[10:19:11] sync: got 13787 frames, 13786 expected
[10:19:11] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x265 [info]: frame I:     58, Avg QP:27.42  kb/s: 7728.15
x265 [info]: frame P:   3461, Avg QP:29.31  kb/s: 2399.07
x265 [info]: frame B:  10268, Avg QP:32.33  kb/s: 684.98
x265 [info]: consecutive B-frames: 1.2% 1.4% 1.8% 95.6%
encoded 13787 frames in 257.93s (53.45 fps), 1144.90 kb/s, Avg QP:31.55
[10:19:11] mux: track 0, 13787 frames, 82349782 bytes, 1145.67 kbps, fifo 4096
[10:19:11] Finished work at: Thu Dec 05 10:19:11 2019
[10:19:11] libhb: work result = 0

# Encode Completed ...

Code: Select all

HandBrake Nightly 20191120092535-820d264-master (2019112001)
OS: Microsoft Windows NT 10.0.18363.0
CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Ram: 32719 MB, 
GPU Information:
  AMD Radeon(TM) R9 270 - 26.20.13031.18002
Screen: 1920x1080
Temp Dir: C:\Users\1\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\1\AppData\Roaming\HandBrake\Nightly

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


# Starting Encode ...

[10:19:20] base preset: Apple 1080p60 Surround (Modified)
[10:19:20] hb_init: starting libhb thread
[10:19:20] Starting work at: Thu Dec 05 10:19:20 2019
[10:19:20] 1 job(s) to process
[10:19:20] json job:
{
  "Audio": {
    "AudioList": [],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "AlignAVStart": false,
    "File": "D:\\X265\\12BIT.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "138",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "138",
          "height": "804",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/450000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "F:\\backup\\SPIDER-MAN_FAR_FROM_HOME"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x265_12bit",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "ultrafast",
    "Profile": "auto",
    "Quality": 25.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[10:19:20] CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
[10:19:20]  - Intel microarchitecture Haswell
[10:19:20]  - logical processor count: 8
[10:19:20] Intel Quick Sync Video support: no
[10:19:20] hb_scan: path=F:\backup\SPIDER-MAN_FAR_FROM_HOME, title_index=1
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
[10:19:20] scan: BD has 196 title(s)
[10:19:20] bd: scanning title 1
[10:19:20] bd: playlist 00001.MPLS
[10:19:20] bd: duration is 02:09:23 (7763756 ms)
[10:19:20] bd: video id=0x1011, stream type=H.264, format 1080p
[10:19:20] bd: aspect = 16:9
[10:19:20] bd: audio id=0x711100, lang=English (DTS), 3cc=eng
[10:19:20] bd: audio id=0x1100, lang=English (DTS-HD MA), 3cc=eng
[10:19:20] bd: audio id=0x1101, lang=English (AC3), 3cc=eng
[10:19:20] bd: audio id=0x1102, lang=Francais (AC3), 3cc=fra
[10:19:20] bd: audio id=0x1103, lang=Francais (AC3), 3cc=fra
[10:19:20] bd: audio id=0x1104, lang=español (AC3), 3cc=spa
[10:19:20] bd: subtitle id=0x1200, lang=English [PGS], 3cc=eng
[10:19:20] bd: subtitle id=0x1201, lang=English [PGS], 3cc=eng
[10:19:20] bd: subtitle id=0x1202, lang=Francais [PGS], 3cc=fra
[10:19:20] bd: subtitle id=0x1203, lang=español [PGS], 3cc=spa
[10:19:20] bd: subtitle id=0x1204, lang=Francais [PGS], 3cc=fra
[10:19:20] bd: chap 1, 575032 ms
[10:19:20] bd: chap 2, 391682 ms
[10:19:20] bd: chap 3, 551759 ms
[10:19:20] bd: chap 4, 608024 ms
[10:19:20] bd: chap 5, 390515 ms
[10:19:20] bd: chap 6, 473014 ms
[10:19:20] bd: chap 7, 439480 ms
[10:19:20] bd: chap 8, 461127 ms
[10:19:20] bd: chap 9, 666582 ms
[10:19:20] bd: chap 10, 411869 ms
[10:19:20] bd: chap 11, 396104 ms
[10:19:20] bd: chap 12, 438062 ms
[10:19:20] bd: chap 13, 484108 ms
[10:19:20] bd: chap 14, 450032 ms
[10:19:20] bd: chap 15, 328036 ms
[10:19:20] bd: chap 16, 698322 ms
[10:19:20] bd: title 1 has 16 chapters
[10:19:20] scan: decoding previews for title 1
[10:19:20] scan: title angle(s) 1
[10:19:20] scan: audio 0x711100: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[10:19:20] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (7.1 ch)
[10:19:20] scan: audio 0x1101: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (640 kbps)
[10:19:20] scan: audio 0x1102: ac3, rate=48000Hz, bitrate=640000 Francais (AC3) (5.1 ch) (640 kbps)
[10:19:20] scan: audio 0x1103: ac3, rate=48000Hz, bitrate=640000 Francais (AC3) (5.1 ch) (640 kbps)
[10:19:20] scan: audio 0x1104: ac3, rate=48000Hz, bitrate=640000 español (AC3) (5.1 ch) (640 kbps)
[10:19:21] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1
[10:19:21] scan: supported video decoders: avcodec qsv
[10:19:21] stream: 5 good frames, 0 errors (0%)
[10:19:21] libhb: scan thread found 1 valid title(s)
[10:19:21] Starting Task: Encoding Pass
[10:19:21] job configuration:
[10:19:21]  * source
[10:19:21]    + F:\backup\SPIDER-MAN_FAR_FROM_HOME
[10:19:21]    + title 1, chapter(s) 1 to 1
[10:19:21]  * destination
[10:19:21]    + D:\X265\12BIT.m4v
[10:19:21]    + container: MPEG-4 (libavformat)
[10:19:21]  * video track
[10:19:21]    + decoder: h264
[10:19:21]      + bitrate 200 kbps
[10:19:21]    + filters
[10:19:21]      + Framerate Shaper (mode=2:rate=27000000/450000)
[10:19:21]        + frame rate: 23.976 fps -> peak rate limited to 60.000 fps
[10:19:21]      + Crop and Scale (width=1920:height=804:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[10:19:21]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[10:19:21]    + Output geometry
[10:19:21]      + storage dimensions: 1920 x 804
[10:19:21]      + pixel aspect ratio: 1 : 1
[10:19:21]      + display dimensions: 1920 x 804
[10:19:21]    + encoder: H.265 12-bit (libx265)
[10:19:21]      + preset:  ultrafast
[10:19:21]      + profile: auto
[10:19:21]      + level:   auto
[10:19:21]      + quality: 25.00 (RF)
[10:19:21]      + color profile: 1-1-1
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
[10:19:21] sync: expecting 13786 video frames
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Windows][GCC 9.2.0][64 bit] 12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main 12 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(26 rows)
x265 [info]: Coding QT: max CU size, min CU size : 32 / 16
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : dia / 57 / 0 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 0 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 5 / 3 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 0 / 0
x265 [info]: References / ref-limit  cu / depth  : 1 / off / off
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 0.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-25.0 / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 early-skip rskip tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing lslices=5 deblock
[10:19:21] sync: first pts video is 0
[10:19:21] sync: "Chapter 1" (1) at frame 1 time 0
[10:24:00] reader: end of chapter 1 (media 1) reached at media chapter 2
[10:24:00] reader: done. 1 scr changes
[10:24:01] work: average encoding speed for job is 49.264153 fps
[10:24:01] vfr: 13787 frames output, 0 dropped and 0 duped for CFR/PFR
[10:24:01] vfr: lost time: 0 (0 frames)
[10:24:01] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:24:01] stream: 13788 good frames, 0 errors (0%)
[10:24:01] h264-decoder done: 13787 frames, 0 decoder errors
[10:24:01] sync: got 13787 frames, 13786 expected
[10:24:01] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x265 [info]: frame I:     58, Avg QP:27.28  kb/s: 7675.43
x265 [info]: frame P:   3459, Avg QP:29.30  kb/s: 2392.13
x265 [info]: frame B:  10270, Avg QP:32.33  kb/s: 685.64
x265 [info]: consecutive B-frames: 1.2% 1.4% 1.5% 95.8%
encoded 13787 frames in 280.41s (49.17 fps), 1143.19 kb/s, Avg QP:31.55
[10:24:01] mux: track 0, 13787 frames, 82226265 bytes, 1143.95 kbps, fifo 4096
[10:24:01] Finished work at: Thu Dec 05 10:24:01 2019
[10:24:01] libhb: work result = 0

# Encode Completed ...

User avatar
JohnAStebbins
HandBrake Team
Posts: 5583
Joined: Sat Feb 09, 2008 7:21 pm

Re: 12 bit vs 10 bit vs 8 bit x265 encoding

Post by JohnAStebbins »

The ultrafast preset probably isn't the best option for this kind of comparison. It takes a lot of shortcuts that favor speed over quality. And since the 8 vs 10 vs 12 bit argument is really about quality and file size using a preset optimized for speed isn't going to show the differences as clearly.

But even with this suboptimal choice, the size clearly comes down with increasing bit-depth. The question is what happens to quality. You might want to do some comparisons using ABR encoding instead or CRF with a very low bitrate where quality differences would be more visible and post some pics?
rollin_eng
Veteran User
Posts: 3605
Joined: Wed May 04, 2011 11:06 pm

Re: 12 bit vs 10 bit vs 8 bit x265 encoding

Post by rollin_eng »

Sure, I imagine that with some settings and sources you can get different results.

Hopefully musicvid will post some of his actual results rather than a blurry picture.
musicvid
Veteran User
Posts: 3760
Joined: Sat Jun 27, 2009 1:19 am

Re: 12 bit vs 10 bit vs 8 bit x265 encoding

Post by musicvid »

I wouldn't know how to begin testing with CRF in an 8 bit engine. Too many moving targets, like a skeet shoot.

I would (did) start with RGB 4:4:4 CBR intraframe using 8 and 16 bit generated source in a 32 bit float environ, and the Sony encoder..

The original motivation for these tests were runaway internet claims that encoding 8 bit source in a 10 bit wrapper magically improved quality and banding, but with a 100% lack of evidence. Those claims still crop up all the time.

I'm pleased that someone is taking enough interest in this topic to undertake their own tests, with all the associated pitfalls, rather than trusting internet chatter, mine included. I used an older NLE, not Handbrake for my research.

This compositing Difference test using actual graded source was done in 2017, using the same criteria. The dot in the center of the vectorscope indicates no measurable difference.
8-10Diff.png
You do not have the required permissions to view the files attached to this post.
rollin_eng
Veteran User
Posts: 3605
Joined: Wed May 04, 2011 11:06 pm

Re: 12 bit vs 10 bit vs 8 bit x265 encoding

Post by rollin_eng »

musicvid wrote: Fri Dec 06, 2019 6:05 am I wouldn't know how to begin testing with CRF in an 8 bit engine. Too many moving targets, like a skeet shoot.

I would (did) start with RGB 4:4:4 CBR intraframe using 8 and 16 bit generated source in a 32 bit float environ, and the Sony encoder..

The original motivation for these tests were runaway internet claims that encoding 8 bit source in a 10 bit wrapper magically improved quality and banding, but with a 100% lack of evidence. Those claims still crop up all the time.

I'm pleased that someone is taking enough interest in this topic to undertake their own tests, with all the associated pitfalls, rather than trusting internet chatter, mine included. I used an older NLE, not Handbrake for my research.

This compositing Difference test using actual graded source was done in 2017, using the same criteria. The dot in the center of the vectorscope indicates no measurable difference.

8-10Diff.png
Any chance you could post your source and/or settings used.

Obviously we are at the mercy of the encoder and the magic they do but in my test at a given quality, file size is reduced.

Does that mean quality is reduced? I can’t tell any difference, but I’m not pixel peeping either.
musicvid
Veteran User
Posts: 3760
Joined: Sat Jun 27, 2009 1:19 am

Re: 12 bit vs 10 bit vs 8 bit x265 encoding

Post by musicvid »

No, you would have to shoot/generate your own source.

By creating a statistically level playing field, it was shown that encoding 8 bit source in a 10 bit wrapper yielded the same image at the same size as in the native 8 bit wrapper.

I agree with Mr. Stebbins that ABR is probably a better place to start testing in Handbrake, maybe even set [vbv-bufsize=.5vbv-maxrate]; whether that levels the playing field enough to produce identical SSIM/PSNR and compositing difference remains a worthy inquiry.

I'll be happy to throw those results on my scopes and print the results here, time permitting, thus more than satisfying my due diligence. Happy testing and happy holidays!
rollin_eng
Veteran User
Posts: 3605
Joined: Wed May 04, 2011 11:06 pm

Re: 12 bit vs 10 bit vs 8 bit x265 encoding

Post by rollin_eng »

musicvid wrote: Fri Dec 06, 2019 11:59 am No, you would have to shoot/generate your own source.

By creating a statistically level playing field, it was shown that encoding 8 bit source in a 10 bit wrapper yielded the same image at the same size as in the native 8 bit wrapper.

I agree with Mr. Stebbins that ABR is probably a better place to start testing in Handbrake, maybe even set [vbv-bufsize=.5vbv-maxrate]; whether that levels the playing field enough to produce identical SSIM/PSNR and compositing difference remains a worthy inquiry.

I'll be happy to throw those results on my scopes and print the results here, time permitting, thus more than satisfying my due diligence. Happy testing and happy holidays!
I have many sources obviously but I wanted to see if there was something specific to your source that gave you your results.

But hopefully you can still post your settings so we can see what it is you did.

As you can see from my tests above, bandwidth/quality can be improved by using 10 or 12 bit over 8 bit.
musicvid
Veteran User
Posts: 3760
Joined: Sat Jun 27, 2009 1:19 am

Re: 12 bit vs 10 bit vs 8 bit x265 encoding

Post by musicvid »

I would (did) start with RGB 4:4:4 CBR intraframe using 8 and 16 bit generated source in a 32 bit float environ, and the Sony encoder..
Those are my settings.
The question is what happens to quality. You might want to do some comparisons using ABR encoding instead or CRF with a very low bitrate where quality differences would be more visible and post some pics?
As would I, to rule out the remote possibility of the Pygmalion effect, or self-fulfilling prophecy. What looks better may not seem that way to everyone. Your grabs can be easily compared in quantitative testing, thus our shared interest in having them available. Quantitative means actual numbers, nothing fancy. Until then,
rollin_eng
Veteran User
Posts: 3605
Joined: Wed May 04, 2011 11:06 pm

Re: 12 bit vs 10 bit vs 8 bit x265 encoding

Post by rollin_eng »

musicvid wrote: Fri Dec 06, 2019 2:31 pm
I would (did) start with RGB 4:4:4 CBR intraframe using 8 and 16 bit generated source in a 32 bit float environ, and the Sony encoder..
Those are my settings.
The question is what happens to quality. You might want to do some comparisons using ABR encoding instead or CRF with a very low bitrate where quality differences would be more visible and post some pics?
As would I, to rule out the remote possibility of the Pygmalion effect, What looks better may not seem that way to everyone. Your grabs can be easily compared in quantitative testing, thus our shared interest in having them available. Quantitative means actual numbers, nothing fancy. Until then,
What settings did you use for the Sony encoder, what was the CBR, source duration etc. as you said Quantitative means actual numbers. My logs are above with ACTUAL NUMBERS.

I might get round to some low bit rate testing but obviously ALL quality is subjective.

EDIT: If you have no records of these tests, that's ok, just say so, if you do then please post them so I can see the details.
musicvid
Veteran User
Posts: 3760
Joined: Sat Jun 27, 2009 1:19 am

Re: 12 bit vs 10 bit vs 8 bit x265 encoding

Post by musicvid »

Thank you again for inviting me to participate in the discussion. I know I have learned and benefited from your perspective.
May you enjoy a merciful and gracious winter holiday.
rollin_eng
Veteran User
Posts: 3605
Joined: Wed May 04, 2011 11:06 pm

Re: 12 bit vs 10 bit vs 8 bit x265 encoding

Post by rollin_eng »

musicvid wrote: Fri Dec 06, 2019 4:03 pm Thank you again for inviting me to participate in the discussion. I know I have learned and benefited from your perspective.
May you enjoy a merciful and gracious winter holiday.
Hopefully you have learned from the actual numbers above that your previous tests may have been incomplete and/or incorrect.

Now, is a higher bit depth ALWAYS better? I would imagine not, but it would seem that sometimes it is.
rollin_eng
Veteran User
Posts: 3605
Joined: Wed May 04, 2011 11:06 pm

Re: 12 bit vs 10 bit vs 8 bit x265 encoding

Post by rollin_eng »

It has occurred to me that depending on when you did your tests, x265 has gone through many updates which could also effect outcomes.

Probably a good lesson to not get stuck in old schools of thoughts.
mduell
Veteran User
Posts: 7258
Joined: Sat Apr 21, 2007 8:54 pm

Re: 12 bit vs 10 bit vs 8 bit x265 encoding

Post by mduell »

Y'all just like trolling each other.
rollin_eng
Veteran User
Posts: 3605
Joined: Wed May 04, 2011 11:06 pm

Re: 12 bit vs 10 bit vs 8 bit x265 encoding

Post by rollin_eng »

The thought had crossed my mind.
Post Reply