GPU Hardware Encoding

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
ubigdummie
New User
Posts: 1
Joined: Tue Jun 04, 2019 2:26 am

GPU Hardware Encoding

Post by ubigdummie » Tue Jun 04, 2019 2:34 am

Description of problem or question:
Is it possible to make Handbrake use more GPU resources than CPU for encoding? I have a Radeon R9 390 and it is only using 2%. Handbrake is using 40% of my CPU, which is an i7-5960X.



Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):

1.2.2


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

Windows 10 Pro - 1903


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

Code: Select all

HandBrake 1.2.2 (2019022300)
OS: Microsoft Windows NT 10.0.18362.0
CPU: Intel(R) Core(TM) i7-5960X CPU @ 3.00GHz
Ram: 32677 MB, 
GPU Information:
  AMD Radeon (TM) R9 390 Series - 22.19.162.4
Screen: 3440x1440
Temp Dir: C:\Users\dynac\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\dynac\AppData\Roaming\HandBrake

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


# Starting Encode ...

[22:31:21] hb_init: starting libhb thread
[22:31:21] 1 job(s) to process
[22:31:21] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 320,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "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"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "\\\\192.168.5.225\\Storage\\Movies\\Mainstream\\First Kill\\First Kill.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "406",
          "width": "720"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 16
    },
    "Title": 1,
    "Path": "C:\\Video\\First Kill\\First Kill.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": "medium",
    "Profile": "auto",
    "Quality": 16.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[22:31:21] CPU: Intel(R) Core(TM) i7-5960X CPU @ 3.00GHz
[22:31:21]  - Intel microarchitecture Haswell
[22:31:21]  - logical processor count: 16
[22:31:21] Intel Quick Sync Video support: no
[22:31:21] hb_scan: path=C:\Video\First Kill\First Kill.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Video\First Kill\First Kill.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
[22:31:21] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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
[22:31:21] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Video\First Kill\First Kill.mkv':
  Metadata:
    encoder         : libmakemkv v1.14.3 (1.3.5/1.4.7) win(x64-release)
    creation_time   : 2019-06-04T01:34:00.000000Z
  Duration: 01:41:43.43, start: 0.000000, bitrate: 5839 kb/s
    Chapter #0:0: start 0.000000, end 389.305583
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 389.305583, end 764.063300
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 764.063300, end 1091.056633
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 1091.056633, end 1638.303333
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1638.303333, end 1882.680800
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1882.680800, end 2214.345467
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 2214.345467, end 2545.042500
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 2545.042500, end 2880.010467
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 2880.010467, end 3287.117167
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 3287.117167, end 3552.415533
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 3552.415533, end 3999.528867
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 3999.528867, end 4328.957967
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 4328.957967, end 4726.588533
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 4726.588533, end 5055.850800
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 5055.850800, end 5516.143967
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 5516.143967, end 6103.430667
    Metadata:
      title           : Chapter 16
    Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, progressive), 720x480 [SAR 32:27 DAR 16:9], SAR 186:157 DAR 279:157, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Metadata:
      BPS-eng         : 5193496
      DURATION-eng    : 01:41:43.430666666
      NUMBER_OF_FRAMES-eng: 146345
      NUMBER_OF_BYTES-eng: 3962267512
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-04 01:34:00
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 448000
      DURATION-eng    : 01:41:43.392000000
      NUMBER_OF_FRAMES-eng: 190731
      NUMBER_OF_BYTES-eng: 341789952
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-04 01:34:00
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:41:43.392000000
      NUMBER_OF_FRAMES-eng: 190731
      NUMBER_OF_BYTES-eng: 146481408
      SOURCE_ID-eng   : 0181BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-04 01:34:00
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[22:31:21] scan: decoding previews for title 1
[22:31:21] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[22:31:21] scan: audio 0x2: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch)
[22:31:21] scan: 10 previews, 720x480, 23.976 fps, autocrop = 62/58/0/0, aspect 16:9, PAR 32:27
[22:31:21] libhb: scan thread found 1 valid title(s)
[22:31:21] starting job
[22:31:21] job configuration:
[22:31:21]  * source
[22:31:21]    + C:\Video\First Kill\First Kill.mkv
[22:31:21]    + title 1, chapter(s) 1 to 16
[22:31:21]    + container: matroska,webm
[22:31:21]    + data rate: 5839 kbps
[22:31:21]  * destination
[22:31:21]    + \\192.168.5.225\Storage\Movies\Mainstream\First Kill\First Kill.m4v
[22:31:21]    + container: MPEG-4 (libavformat)
[22:31:21]      + align initial A/V stream timestamps
[22:31:21]      + chapter markers
[22:31:21]  * video track
[22:31:21]    + decoder: mpeg2video
[22:31:21]    + filters
[22:31:21]      + Framerate Shaper (mode=1)
[22:31:21]        + frame rate: 23.976 fps -> constant 23.976 fps
[22:31:21]      + Crop and Scale (width=720:height=406:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[22:31:21]        + source: 720 * 480, crop (0/0/0/0): 720 * 480, scale: 720 * 406
[22:31:21]    + Output geometry
[22:31:21]      + storage dimensions: 720 x 406
[22:31:21]      + pixel aspect ratio: 1 : 1
[22:31:21]      + display dimensions: 720 x 406
[22:31:21]    + encoder: H.265 (libx265)
[22:31:21]      + preset:  medium
[22:31:21]      + profile: auto
[22:31:21]      + quality: 16.00 (RF)
[22:31:21]      + color profile: 6-1-6
[22:31:21]  * audio track 1
[22:31:21]    + decoder: English (AC3) (5.1 ch) (track 1, id 0x1)
[22:31:21]      + bitrate: 448 kbps, samplerate: 48000 Hz
[22:31:21]    + mixdown: Stereo
[22:31:21]    + dither: none
[22:31:21]    + encoder: AAC (libavcodec)
[22:31:21]      + bitrate: 320 kbps, samplerate: 48000 Hz
[22:31:21] sync: expecting 146335 video frames
x265 [info]: HEVC encoder version 2.9
x265 [info]: build info [Windows][GCC 8.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-3 (Main tier)
x265 [info]: Thread pool created using 16 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 4 / wpp(7 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
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        : 20 / 4 / 2
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  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-16.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 rskip signhide tmvp strong-intra-smoothing
x265 [info]: tools: deblock sao
[22:31:21] sync: first pts video is 0
[22:31:21] sync: "Chapter 1" (1) at frame 1 time 0
[22:31:21] sync: first pts audio 0x1 is 0

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

Re: GPU Hardware Encoding

Post by Woodstock » Tue Jun 04, 2019 12:20 pm

[22:31:21] CPU: Intel(R) Core(TM) i7-5960X CPU @ 3.00GHz
[22:31:21] - Intel microarchitecture Haswell
[22:31:21] - logical processor count: 16
[22:31:21] Intel Quick Sync Video support: no
Your system does not support using hardware-accelerated encoding in its current configuration. You do not have the driver support for QSV.

User avatar
Rodeo
HandBrake Team
Posts: 12160
Joined: Tue Mar 03, 2009 8:55 pm

Re: GPU Hardware Encoding

Post by Rodeo » Tue Jun 04, 2019 2:17 pm

Woodstock wrote:
Tue Jun 04, 2019 12:20 pm
Your system does not support using hardware-accelerated encoding in its current configuration. You do not have the driver support for QSV.
That processor doesn't have integrated graphics, so no QSV hardware either. But the OP is trying to use AMD VCE.

@ubigdummie: is there no AMD VCE option in the video encoder drop-down?

User avatar
s55
HandBrake Team
Posts: 9522
Joined: Sun Dec 24, 2006 1:05 pm

Re: GPU Hardware Encoding

Post by s55 » Tue Jun 04, 2019 3:48 pm

His AMD GPU is a VCE 2.0 card, so no H.265 acceleration support either.

Your only option, is software. Given your encoding low resolution content, it'll bottleneck that CPU so better scaling isn't really feasible here.

Post Reply