H.265 10-Bit (Intel QSV) does not compress

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
tranle
Posts: 40
Joined: Mon Jul 23, 2012 1:08 am

H.265 10-Bit (Intel QSV) does not compress

Post by tranle »

Description of problem or question
I am using the nightly build of Handbrake and when I am using the video codec 'H.265 10-Bit (Intel QSV)' the output file is as large original disk.
In my case it was a BD disk so the output mkv was 40GB. If I use the non 10-bit version 'H.265 (Intel QSV)' then it seems to work fine (e.g. mkv output is around 10GB).

Steps to reproduce the problem (If Applicable)
select video codec 'H.265 10-Bit (Intel QSV)' and encode to mkv

HandBrake version (e.g., 1.0.0)
HandBrake-20171123-653020c_x86_64-Win_GUI.exe

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.3 High Sierra, Windows 10 Creators Update)
Windows 10 preview build 17046

HandBrake Activity Log ***required***
I did multiple encode test and I hope this log is from the bad encode but I did not see 'H.265 10-Bit (Intel QSV)' in it.

Code: Select all

HandBrake Nightly 20171122185522-653020c-master (2017112301) - 64bit
OS: Microsoft Windows NT 10.0.17046.0 - 64bit
CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
Ram: 32593 MB, 
GPU Information:
  Intel(R) UHD Graphics 630 - 23.20.16.4849
  NVIDIA GeForce GTX 1080 Ti - 23.21.13.8813
Screen: 3840x2160
Temp Dir: C:\Users\tranle\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\tranle\AppData\Roaming\HandBrake Team\HandBrake\1.1.0.0

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


# Starting Encode ...

[18:56:38] hb_init: starting libhb thread
[18:56:38] 1 job(s) to process
[18:56:38] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": 1107296256,
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "English (TrueHD)",
        "Track": 1,
        "DitherMethod": 0
      },
      {
        "DRC": 0.0,
        "Encoder": 1073743872,
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Name": "English (5.1 Ch)",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1074003968,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "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": "E:\\Videos\\movies\\VALERIAN-182.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 2097152
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "138",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "138",
          "height": "804",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 17
    },
    "Title": 182,
    "Path": "I:\\media\\VALERIAN"
  },
  "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": 1024,
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "balanced",
    "Profile": "auto",
    "Quality": 18.0,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[18:56:38] CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
[18:56:38]  - Intel microarchitecture Kaby Lake
[18:56:38]  - logical processor count: 12
[18:56:38] Intel Quick Sync Video support: yes
[18:56:38]  - Intel Media SDK hardware: API 1.25 (minimum: 1.3)
[18:56:38]  - H.264 encoder: yes
[18:56:38]     - preferred implementation: hardware (any) via D3D11
[18:56:38]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[18:56:38]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[18:56:38]     - preferred implementation: hardware (any) via D3D11
[18:56:38]     - capabilities (hardware):  bpyramid vsinfo opt1
[18:56:38] hb_scan: path=I:\media\VALERIAN, title_index=182
src/libbluray/bdj/bdj.c:126: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:661: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:126: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:661: BD-J check: Failed to load JVM library
[18:56:39] scan: BD has 264 title(s)
[18:56:39] bd: scanning title 182
[18:56:39] bd: playlist 00667.MPLS
[18:56:39] bd: duration is 02:17:03 (8223256 ms)
[18:56:39] bd: video id=0x1011, stream type=H.264, format 1080p
[18:56:39] bd: aspect = 16:9
[18:56:39] bd: audio id=0x761100, lang=English (AC3), 3cc=eng
[18:56:39] bd: audio id=0x721100, lang=English (TrueHD), 3cc=eng
[18:56:39] bd: audio id=0x1101, lang=español (AC3), 3cc=spa
[18:56:39] bd: audio id=0x1102, lang=English (AC3), 3cc=eng
[18:56:39] bd: audio id=0x1103, lang=English (AC3), 3cc=eng
[18:56:39] bd: subtitle id=0x1201, lang=English [PGS], 3cc=eng
[18:56:39] bd: subtitle id=0x1202, lang=español [PGS], 3cc=spa
[18:56:39] bd: subtitle id=0x1200, lang=English [PGS], 3cc=eng
[18:56:39] bd: chap 1 packet=768, 755713 ms
[18:56:39] bd: chap 2 packet=3156868800, 293876 ms
[18:56:39] bd: chap 3 packet=4408835520, 366199 ms
[18:56:39] bd: chap 4 packet=6151654848, 550049 ms
[18:56:39] bd: chap 5 packet=8724097728, 513304 ms
[18:56:39] bd: chap 6 packet=11076646464, 356522 ms
[18:56:39] bd: chap 7 packet=12776103168, 536744 ms
[18:56:39] bd: chap 8 packet=15010739904, 493284 ms
[18:56:39] bd: chap 9 packet=17154277632, 422213 ms
[18:56:39] bd: chap 10 packet=18838763136, 537161 ms
[18:56:39] bd: chap 11 packet=21037094976, 468634 ms
[18:56:39] bd: chap 12 packet=22845545280, 460209 ms
[18:56:39] bd: chap 13 packet=24854679744, 341132 ms
[18:56:39] bd: chap 14 packet=26077910784, 722805 ms
[18:56:39] bd: chap 15 packet=28909208448, 524732 ms
[18:56:39] bd: chap 16 packet=30974184576, 880421 ms
[18:56:39] bd: chap 17 packet=33784687872, 250 ms
[18:56:39] bd: title 182 has 17 chapters
[18:56:39] scan: decoding previews for title 182
[18:56:39] scan: title angle(s) 1
[18:56:39] scan: audio 0x761100: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (Dolby Digital EX)
[18:56:39] scan: audio 0x1102: ac3, rate=48000Hz, bitrate=224000 English (AC3) (2.0 ch) (Dolby Surround)
[18:56:39] scan: audio 0x1103: ac3, rate=48000Hz, bitrate=224000 English (AC3) (2.0 ch) (Dolby Surround)
[18:56:39] scan: audio 0x1101: ac3, rate=48000Hz, bitrate=640000 español (AC3) (5.1 ch)
[18:56:39] scan: audio 0x721100: truehd, rate=48000Hz, bitrate=200000 English (TrueHD) (7.1 ch)
[18:56:40] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1
[18:56:40] scan: supported video decoders: avcodec qsv
[18:56:40] stream: 8 good frames, 0 errors (0%)
[18:56:40] libhb: scan thread found 1 valid title(s)
[18:56:40] starting job
[18:56:40] job configuration:
[18:56:40]  * source
[18:56:40]    + I:\media\VALERIAN
[18:56:40]    + title 182, chapter(s) 1 to 17
[18:56:40]  * destination
[18:56:40]    + E:\Videos\movies\VALERIAN-182.mkv
[18:56:40]    + container: Matroska (libavformat)
[18:56:40]      + chapter markers
[18:56:40]  * video track
[18:56:40]    + decoder: h264
[18:56:40]      + bitrate 200 kbps
[18:56:40]    + filters
[18:56:40]      + Framerate Shaper (mode=1)
[18:56:40]        + frame rate: 23.976 fps -> constant 23.976 fps
[18:56:40]      + Crop and Scale (width=1920:height=804:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[18:56:40]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[18:56:40]    + Output geometry
[18:56:40]      + storage dimensions: 1920 x 804
[18:56:40]      + pixel aspect ratio: 1 : 1
[18:56:40]      + display dimensions: 1920 x 804
[18:56:40]    + encoder: H.265 10-bit (Intel Media SDK)
[18:56:40]      + preset:  balanced
[18:56:40]      + profile: auto
[18:56:40]      + level:   auto
[18:56:40]      + quality: 18.00 (QP)
[18:56:40]  * subtitle track 1, English [PGS] (track 0, id 0x1201, Picture) -> Passthrough
[18:56:40]  * audio track 1
[18:56:40]    + name: English (TrueHD)
[18:56:40]    + decoder: English (TrueHD) (7.1 ch) (track 2, id 0x721100)
[18:56:40]      + bitrate: 200 kbps, samplerate: 48000 Hz
[18:56:40]    + TrueHD Passthru
[18:56:40]  * audio track 2
[18:56:40]    + name: English (5.1 Ch)
[18:56:40]    + decoder: English (AC3) (5.1 ch) (Dolby Digital EX) (track 1, id 0x761100)
[18:56:40]      + bitrate: 640 kbps, samplerate: 48000 Hz
[18:56:40]    + AC3 Passthru
src/libbluray/bdj/bdj.c:126: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:661: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:126: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:661: BD-J check: Failed to load JVM library
[18:56:40] sync: expecting 197160 video frames
[18:56:40] encqsvInit: using encode-only path
[18:56:40] encqsvInit: H.265/HEVC Main 10 profile @ level (null)
[18:56:40] encqsvInit: TargetUsage 4 AsyncDepth 5
[18:56:40] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 3
[18:56:40] encqsvInit: BFramesMax 3 BRefType pyramid
[18:56:40] encqsvInit: RateControlMethod CQP with QPI 18 QPP 20 QPB 22
[18:56:40] sync: first pts audio 0x721100 is 2910
[18:56:40] sync: first pts audio 0x761100 is 2880
[18:56:40] sync: first pts video is 0
[18:56:40] sync: "Chapter 1" (1) at frame 1 time 0
[18:56:41] qsv_enc_init: using 'hardware (2) via D3D11' implementation, API: 1.25
[18:56:52] sync: first pts subtitle 0x1201 is 4489485
[truehd @ 000001f60f45f860] Lossless check failed - expected 60, calculated 46.
[truehd @ 000001f60f45f860] Lossless check failed - expected 71, calculated 34.
[18:58:41] sync: audio 0x761100 time went backwards 32 ms, dropped 1 frames. PTS 44846051
[truehd @ 000001f60f45f860] Lossless check failed - expected d0, calculated 24.
[18:59:32] sync: audio 0x761100 time went backwards 32 ms, dropped 1 frames. PTS 63468405
[truehd @ 000001f60f45f860] Lossless check failed - expected 02, calculated 5b.
[18:59:45] sync: "Chapter 2" (2) at frame 18120 time 68014196
[truehd @ 000001f60f45f860] Lossless check failed - expected 82, calculated 81.
[18:59:50] sync: audio 0x761100 time went backwards 64 ms, dropped 2 frames. PTS 69782913
[19:00:56] sync: "Chapter 3" (3) at frame 25166 time 94460120
[19:02:26] sync: "Chapter 4" (4) at frame 33946 time 127418045
[19:04:41] sync: "Chapter 5" (5) at frame 47134 time 176922500
[truehd @ 000001f60f45f860] Lossless check failed - expected 0e, calculated 3b.
[19:05:05] sync: audio 0x761100 time went backwards 64 ms, dropped 2 frames. PTS 185886453
[19:06:12] sync: audio 0x761100 time went backwards 64 ms, dropped 2 frames. PTS 210064357
[19:06:48] sync: "Chapter 6" (6) at frame 59441 time 223119901
[19:08:15] sync: "Chapter 7" (7) at frame 67989 time 255206956
[19:10:27] sync: "Chapter 8" (8) at frame 80858 time 303513965
[19:12:29] sync: "Chapter 9" (9) at frame 92685 time 347909566
[19:14:12] sync: "Chapter 10" (10) at frame 102808 time 385908777
[19:16:25] sync: "Chapter 11" (11) at frame 115687 time 434253323
[19:18:20] sync: "Chapter 12" (12) at frame 126923 time 476430458
[19:20:15] sync: "Chapter 13" (13) at frame 137957 time 517849336
[19:21:38] sync: "Chapter 14" (14) at frame 146136 time 548551257
[19:24:38] sync: "Chapter 15" (15) at frame 163466 time 613603745
[19:26:48] sync: "Chapter 16" (16) at frame 176047 time 660829673
[19:30:28] reader: done. 13 scr changes
[19:30:30] work: average encoding speed for job is 97.189774 fps
[19:30:30] vfr: 197160 frames output, 0 dropped and 0 duped for CFR/PFR
[19:30:30] vfr: lost time: 0 (0 frames)
[19:30:30] vfr: gained time: 0 (0 frames) (0 not accounted for)
[19:30:30] stream: 197161 good frames, 0 errors (0%)
[19:30:30] truehd-decoder done: 9867830 frames, 0 decoder errors
[19:30:30] ac3-decoder done: 256984 frames, 0 decoder errors
[19:30:30] h264-decoder done: 197160 frames, 0 decoder errors
[19:30:30] sync: got 197160 frames, 197160 expected
[19:30:30] sync: framerate min 23.981 fps, max 119.205 fps, avg 23.976 fps
[19:30:30] mux: track 0, 197160 frames, 39818530787 bytes, 38737.28 kbps, fifo 512
[19:30:30] mux: track 1, 9867830 frames, 4547999226 bytes, 4424.50 kbps, fifo 32768
[19:30:30] mux: track 2, 256976 frames, 657858560 bytes, 639.99 kbps, fifo 512
[19:30:30] mux: track 3, 3827 frames, 44124953 bytes, 42.93 kbps, fifo 16
[19:30:30] libhb: work result = 0

# Encode Completed ...


Woodstock
Veteran User
Posts: 4623
Joined: Tue Aug 27, 2013 6:39 am

Re: H.265 10-Bit (Intel QSV) does not compress

Post by Woodstock »

It looks like you're using MakeMKV to talk to the Bluray, based on the fact that it's complaining about the inability to load the JRE to decode which playlist is the real one. Are you sure you got the correct one? That title number doesn't match any of the ones discussed over on the MakeMKV forum. Ripping to an MKV file first would allow you to check the mpls filename...

The log does show you used h.265 10-bit and QSV. Was the software encode that got 10GB done in 10-bit or 8-bit?

When contrasting "working like I want" and "not working like I want", having the encode log for the software encode would help.
tranle
Posts: 40
Joined: Mon Jul 23, 2012 1:08 am

Re: H.265 10-Bit (Intel QSV) does not compress

Post by tranle »

No I am not using MakeMKV, the whole BD is copied first to disk using AnyDVD then I use Handbrake to make an mkv.
The only bit non standard is that I only Java9 installed. There is no problem using the handbrake with video codec 'H.265 (Intel QSV)'

The video encoding parameter is slightly different: Level=6.2, Quality=18 from the previous encoding. This is the log using the non-10-bit H.265 Intel QSV encoder

Code: Select all

HandBrake Nightly 20171122185522-653020c-master (2017112301) - 64bit
OS: Microsoft Windows NT 10.0.17046.0 - 64bit
CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
Ram: 32593 MB, 
GPU Information:
  Intel(R) UHD Graphics 630 - 23.20.16.4849
  NVIDIA GeForce GTX 1080 Ti - 23.21.13.8813
Screen: 3840x2160
Temp Dir: C:\Users\tranle\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\tranle\AppData\Roaming\HandBrake Team\HandBrake\1.1.0.0

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


# Starting Encode ...

[19:32:22] hb_init: starting libhb thread
[19:32:22] 1 job(s) to process
[19:32:22] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": 1107296256,
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "English (TrueHD)",
        "Track": 1,
        "DitherMethod": 0
      },
      {
        "DRC": 0.0,
        "Encoder": 1073743872,
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Name": "English (5.1 Ch)",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1074003968,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "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": "E:\\Videos\\movies\\VALERIAN-182.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 2097152
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "138",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "138",
          "height": "804",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 17
    },
    "Title": 182,
    "Path": "I:\\media\\VALERIAN"
  },
  "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": 512,
    "Level": "6.2",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "balanced",
    "Profile": "auto",
    "Quality": 18.0,
    "HWDecode": false,
    "QSV": {
      "Decode": true,
      "AsyncDepth": 0
    }
  }
}
[19:32:22] CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
[19:32:22]  - Intel microarchitecture Kaby Lake
[19:32:22]  - logical processor count: 12
[19:32:22] Intel Quick Sync Video support: yes
[19:32:22]  - Intel Media SDK hardware: API 1.25 (minimum: 1.3)
[19:32:22]  - H.264 encoder: yes
[19:32:22]     - preferred implementation: hardware (any) via D3D11
[19:32:22]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[19:32:22]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[19:32:22]     - preferred implementation: hardware (any) via D3D11
[19:32:22]     - capabilities (hardware):  bpyramid vsinfo opt1
[19:32:22] hb_scan: path=I:\media\VALERIAN, title_index=182
src/libbluray/bdj/bdj.c:126: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:661: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:126: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:661: BD-J check: Failed to load JVM library
[19:32:22] scan: BD has 264 title(s)
[19:32:22] bd: scanning title 182
[19:32:22] bd: playlist 00667.MPLS
[19:32:22] bd: duration is 02:17:03 (8223256 ms)
[19:32:22] bd: video id=0x1011, stream type=H.264, format 1080p
[19:32:22] bd: aspect = 16:9
[19:32:22] bd: audio id=0x761100, lang=English (AC3), 3cc=eng
[19:32:22] bd: audio id=0x721100, lang=English (TrueHD), 3cc=eng
[19:32:22] bd: audio id=0x1101, lang=español (AC3), 3cc=spa
[19:32:22] bd: audio id=0x1102, lang=English (AC3), 3cc=eng
[19:32:22] bd: audio id=0x1103, lang=English (AC3), 3cc=eng
[19:32:22] bd: subtitle id=0x1201, lang=English [PGS], 3cc=eng
[19:32:22] bd: subtitle id=0x1202, lang=español [PGS], 3cc=spa
[19:32:22] bd: subtitle id=0x1200, lang=English [PGS], 3cc=eng
[19:32:22] bd: chap 1 packet=768, 755713 ms
[19:32:22] bd: chap 2 packet=3156868800, 293876 ms
[19:32:22] bd: chap 3 packet=4408835520, 366199 ms
[19:32:22] bd: chap 4 packet=6151654848, 550049 ms
[19:32:22] bd: chap 5 packet=8724097728, 513304 ms
[19:32:22] bd: chap 6 packet=11076646464, 356522 ms
[19:32:22] bd: chap 7 packet=12776103168, 536744 ms
[19:32:22] bd: chap 8 packet=15010739904, 493284 ms
[19:32:22] bd: chap 9 packet=17154277632, 422213 ms
[19:32:22] bd: chap 10 packet=18838763136, 537161 ms
[19:32:22] bd: chap 11 packet=21037094976, 468634 ms
[19:32:22] bd: chap 12 packet=22845545280, 460209 ms
[19:32:22] bd: chap 13 packet=24854679744, 341132 ms
[19:32:22] bd: chap 14 packet=26077910784, 722805 ms
[19:32:22] bd: chap 15 packet=28909208448, 524732 ms
[19:32:22] bd: chap 16 packet=30974184576, 880421 ms
[19:32:22] bd: chap 17 packet=33784687872, 250 ms
[19:32:22] bd: title 182 has 17 chapters
[19:32:22] scan: decoding previews for title 182
[19:32:22] scan: title angle(s) 1
[19:32:22] scan: audio 0x761100: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (Dolby Digital EX)
[19:32:22] scan: audio 0x1102: ac3, rate=48000Hz, bitrate=224000 English (AC3) (2.0 ch) (Dolby Surround)
[19:32:22] scan: audio 0x1103: ac3, rate=48000Hz, bitrate=224000 English (AC3) (2.0 ch) (Dolby Surround)
[19:32:22] scan: audio 0x1101: ac3, rate=48000Hz, bitrate=640000 español (AC3) (5.1 ch)
[19:32:22] scan: audio 0x721100: truehd, rate=48000Hz, bitrate=200000 English (TrueHD) (7.1 ch)
[19:32:24] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1
[19:32:24] scan: supported video decoders: avcodec qsv
[19:32:24] stream: 8 good frames, 0 errors (0%)
[19:32:24] libhb: scan thread found 1 valid title(s)
[19:32:24] starting job
[19:32:24] job configuration:
[19:32:24]  * source
[19:32:24]    + I:\media\VALERIAN
[19:32:24]    + title 182, chapter(s) 1 to 17
[19:32:24]  * destination
[19:32:24]    + E:\Videos\movies\VALERIAN-182.mkv
[19:32:24]    + container: Matroska (libavformat)
[19:32:24]      + chapter markers
[19:32:24]  * video track
[19:32:24]    + decoder: h264_qsv
[19:32:24]      + bitrate 200 kbps
[19:32:24]    + filters
[19:32:24]      + Framerate Shaper (mode=1)
[19:32:24]        + frame rate: 23.976 fps -> constant 23.976 fps
[19:32:24]      + Crop and Scale (width=1920:height=804:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[19:32:24]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[19:32:24]    + Output geometry
[19:32:24]      + storage dimensions: 1920 x 804
[19:32:24]      + pixel aspect ratio: 1 : 1
[19:32:24]      + display dimensions: 1920 x 804
[19:32:24]    + encoder: H.265 (Intel Media SDK)
[19:32:24]      + preset:  balanced
[19:32:24]      + profile: auto
[19:32:24]      + level:   6.2
[19:32:24]      + quality: 18.00 (QP)
[19:32:24]  * subtitle track 1, English [PGS] (track 0, id 0x1201, Picture) -> Passthrough
[19:32:24]  * audio track 1
[19:32:24]    + name: English (TrueHD)
[19:32:24]    + decoder: English (TrueHD) (7.1 ch) (track 2, id 0x721100)
[19:32:24]      + bitrate: 200 kbps, samplerate: 48000 Hz
[19:32:24]    + TrueHD Passthru
[19:32:24]  * audio track 2
[19:32:24]    + name: English (5.1 Ch)
[19:32:24]    + decoder: English (AC3) (5.1 ch) (Dolby Digital EX) (track 1, id 0x761100)
[19:32:24]      + bitrate: 640 kbps, samplerate: 48000 Hz
[19:32:24]    + AC3 Passthru
src/libbluray/bdj/bdj.c:126: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:661: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:126: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:661: BD-J check: Failed to load JVM library
[19:32:24] sync: expecting 197160 video frames
[19:32:24] encqsvInit: using encode-only path
[19:32:24] encqsvInit: H.265/HEVC Main profile @ level 6.2
[19:32:24] encqsvInit: TargetUsage 4 AsyncDepth 5
[19:32:24] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 3
[19:32:24] encqsvInit: BFramesMax 3 BRefType pyramid
[19:32:24] encqsvInit: RateControlMethod CQP with QPI 18 QPP 20 QPB 22
[19:32:24] sync: first pts audio 0x721100 is 2910
[19:32:24] sync: first pts video is 0
[19:32:24] sync: "Chapter 1" (1) at frame 1 time 0
[19:32:24] sync: first pts audio 0x761100 is 2880
[19:32:25] qsv_enc_init: using 'hardware (2) via D3D11' implementation, API: 1.25
[19:32:35] sync: first pts subtitle 0x1201 is 4489485
[truehd @ 000001f60c2633a0] Lossless check failed - expected b8, calculated c1.
[truehd @ 000001f60c2633a0] Lossless check failed - expected 60, calculated 46.
[truehd @ 000001f60c2633a0] Lossless check failed - expected 71, calculated 34.
[19:34:15] sync: audio 0x761100 time went backwards 32 ms, dropped 1 frames. PTS 44846051
[19:35:01] sync: audio 0x761100 time went backwards 32 ms, dropped 1 frames. PTS 63468405
[truehd @ 000001f60c2633a0] Lossless check failed - expected 02, calculated 5b.
[19:35:13] sync: "Chapter 2" (2) at frame 18120 time 68014196
[19:35:17] sync: audio 0x761100 time went backwards 32 ms, dropped 1 frames. PTS 69785793
[19:36:19] sync: "Chapter 3" (3) at frame 25166 time 94463118
[19:37:43] sync: "Chapter 4" (4) at frame 33946 time 127421043
[19:39:47] sync: "Chapter 5" (5) at frame 47134 time 176925498
[truehd @ 000001f60c2633a0] Lossless check failed - expected d5, calculated e7.
[19:40:10] sync: audio 0x761100 time went backwards 64 ms, dropped 2 frames. PTS 185889453
[truehd @ 000001f60c2633a0] Lossless check failed - expected a3, calculated 96.
[19:41:12] sync: audio 0x761100 time went backwards 64 ms, dropped 2 frames. PTS 210067357
[19:41:44] sync: "Chapter 6" (6) at frame 59441 time 223122900
[19:43:05] sync: "Chapter 7" (7) at frame 67989 time 255209955
[19:45:04] sync: "Chapter 8" (8) at frame 80858 time 303516963
[19:46:56] sync: "Chapter 9" (9) at frame 92685 time 347912565
[19:48:28] sync: "Chapter 10" (10) at frame 102808 time 385911776
[19:50:28] sync: "Chapter 11" (11) at frame 115687 time 434256322
[19:52:12] sync: "Chapter 12" (12) at frame 126923 time 476433457
[19:53:56] sync: "Chapter 13" (13) at frame 137957 time 517852335
[19:55:10] sync: "Chapter 14" (14) at frame 146136 time 548554256
[19:57:54] sync: "Chapter 15" (15) at frame 163466 time 613606743
[19:59:52] sync: "Chapter 16" (16) at frame 176047 time 660832672
[20:03:09] reader: done. 13 scr changes
[20:03:10] work: average encoding speed for job is 106.855057 fps
[20:03:10] vfr: 197160 frames output, 0 dropped and 0 duped for CFR/PFR
[20:03:10] vfr: lost time: 0 (0 frames)
[20:03:10] vfr: gained time: 0 (0 frames) (0 not accounted for)
[20:03:10] stream: 197161 good frames, 0 errors (0%)
[20:03:10] truehd-decoder done: 9867830 frames, 0 decoder errors
[20:03:10] ac3-decoder done: 256984 frames, 0 decoder errors
[20:03:10] h264_qsv-decoder done: 197160 frames, 0 decoder errors
[20:03:11] sync: got 197160 frames, 197160 expected
[20:03:11] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
[20:03:11] mux: track 0, 197160 frames, 5264195173 bytes, 5121.25 kbps, fifo 1024
[20:03:11] mux: track 1, 9867830 frames, 4547999226 bytes, 4424.50 kbps, fifo 32768
[20:03:11] mux: track 2, 256976 frames, 657858560 bytes, 639.99 kbps, fifo 1024
[20:03:11] mux: track 3, 3826 frames, 44124923 bytes, 42.93 kbps, fifo 32
[20:03:11] libhb: work result = 0

# Encode Completed ...

User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: H.265 10-Bit (Intel QSV) does not compress

Post by BradleyS »

See Max’s comment here: https://github.com/HandBrake/HandBrake/ ... -346830098

10-bit QSV needs a higher QP for equivalent quality/size. The QP numbers are not equivalent.
tranle
Posts: 40
Joined: Mon Jul 23, 2012 1:08 am

Re: H.265 10-Bit (Intel QSV) does not compress

Post by tranle »

My original complaint was not about comparing 10-bit QSV against non-10-bit QSV.
It was about my original BD drive clone was about 40GB and 10-bit QSV mkv that Handbrake produce is also about 40GB.
Is that to be expected ?
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: H.265 10-Bit (Intel QSV) does not compress

Post by s55 »

Yes because you chose an inappropriate quality value. Nothing stops you re-encoding a file that's orders of magnitude larger than the source if you want.

Adjust the QP to a higher number and re-encode. You'll be able to get much smaller files without much if any perceivable loss in quality. QP18 just isn't a reasonable setting for the 10bit encoder.
tranle
Posts: 40
Joined: Mon Jul 23, 2012 1:08 am

Re: H.265 10-Bit (Intel QSV) does not compress

Post by tranle »

Thanks, I re-did the encode with QP22 and the size went down to 25GB.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: H.265 10-Bit (Intel QSV) does not compress

Post by s55 »

I'm not sure where the sweet spot is for the Intel encoder, but you should still easily be able to get that down. Its 1080p, so I wouldn't expect double digits unless it's noisy or very motion rich source.

So I'd maybe try going further to say 26 to 30
Post Reply