CPU or GPU transcoding? What quality preset?

Discuss encoding for devices and presets.
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
MrElussive
Posts: 5
Joined: Thu Aug 13, 2020 1:35 pm

CPU or GPU transcoding? What quality preset?

Post by MrElussive »

Description of problem or question:
H.264 (x264) or or H.264 (Intel QSV) or H.264 (Nvidia NVEnc) for transcoding?
I am just a total n00b at this and wondering what's the right way to do this.
I want to rip all my Blu Rays to my Plex server. I did the first rip using MakeMKV last night.
I then launched HandBrake and tried transcoding the first rip using CPU (H.264 (x264)), quality Super HQ 1080p30 Surround preset, and after a while it said 4.5 hours remaining. I lost my patience and canceled it.
That was too much so I tried the same preset but with Video Codec H.264 nVidia NVEnc and it took 30 minutes!
Is there any difference in outcome? What quality preset should I use? I'd like to watch from my iPad all the way up to 65" 4K TV.
I want to set a standard for all my Blu Rays, I have a lot to rip.
Steps to reproduce the problem (If Applicable):
Intel 4690K, nVidia Quadro P400.



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 64-Bit.



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

Code: Select all

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19041.0
CPU: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
Ram: 7884 MB, 
GPU Information:
  Intel(R) HD Graphics 4600 - 20.19.15.4531
  NVIDIA Quadro P400 - 26.21.14.3086
  Microsoft Remote Display Adapter - 10.0.19041.423
Screen: 1440x900
Temp Dir: C:\Users\Amirserver\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Amirserver\AppData\Roaming\HandBrake

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


# Starting Encode ...

[11:31:35] base preset: Super HQ 1080p30 Surround (Modified)
[23:31:35] hb_init: starting libhb thread
[23:31:35] Starting work at: Wed Aug 12 23:31:35 2020
[23:31:35] 1 job(s) to process
[23:31:35] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Surround 5.1",
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "Bitrate": 640,
        "DRC": 0.0,
        "Encoder": "ac3",
        "Gain": 0.0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "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"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "C:\\The Watch\\The Watch T00-1.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "132",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "132",
          "height": "816",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 32
    },
    "Title": 1,
    "Path": "C:\\The Watch\\The Watch_t00.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "nvenc_h264",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "slow",
    "Profile": "auto",
    "Quality": 18.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[23:31:35] CPU: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
[23:31:35]  - Intel microarchitecture Haswell
[23:31:35]  - logical processor count: 4
[23:31:35] Intel Quick Sync Video support: yes
[23:31:35]  - Intel Media SDK hardware: API 1.19 (minimum: 1.3)
[23:31:35]  - H.264 encoder: yes
[23:31:35]     - preferred implementation: hardware (any) via D3D11
[23:31:35]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[23:31:35]  - H.265 encoder: no
[23:31:35] hb_scan: path=C:\The Watch\The Watch_t00.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\The Watch\The Watch_t00.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(C:\The Watch\The Watch_t00.mkv\) failed
[23:31:35] 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
[23:31:35] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\The Watch\The Watch_t00.mkv':
  Metadata:
    title           : The Watch
    encoder         : libmakemkv v1.15.2 (1.3.10/1.5.2) win(x64-release)
    creation_time   : 2020-08-13T01:08:17.000000Z
  Duration: 01:41:57.03, start: 0.000000, bitrate: 35582 kb/s
    Chapter #0:0: start 0.000000, end 257.257000
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 257.257000, end 424.507417
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 424.507417, end 598.806542
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 598.806542, end 743.659583
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 743.659583, end 1081.747333
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1081.747333, end 1208.207000
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1208.207000, end 1330.537542
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 1330.537542, end 1461.001208
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 1461.001208, end 1753.626875
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 1753.626875, end 1938.061125
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 1938.061125, end 1995.910583
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 1995.910583, end 2273.854917
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 2273.854917, end 2365.237875
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 2365.237875, end 2534.532000
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 2534.532000, end 2860.148958
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 2860.148958, end 3095.258833
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 3095.258833, end 3315.020042
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 3315.020042, end 3431.636542
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 3431.636542, end 3587.000083
    Metadata:
      title           : Chapter 19
    Chapter #0:19: start 3587.000083, end 3672.919250
    Metadata:
      title           : Chapter 20
    Chapter #0:20: start 3672.919250, end 3916.662750
    Metadata:
      title           : Chapter 21
    Chapter #0:21: start 3916.662750, end 4008.379375
    Metadata:
      title           : Chapter 22
    Chapter #0:22: start 4008.379375, end 4164.160000
    Metadata:
      title           : Chapter 23
    Chapter #0:23: start 4164.160000, end 4353.557542
    Metadata:
      title           : Chapter 24
    Chapter #0:24: start 4353.557542, end 4466.044917
    Metadata:
      title           : Chapter 25
    Chapter #0:25: start 4466.044917, end 4721.675292
    Metadata:
      title           : Chapter 26
    Chapter #0:26: start 4721.675292, end 4822.025542
    Metadata:
      title           : Chapter 27
    Chapter #0:27: start 4822.025542, end 4925.879292
    Metadata:
      title           : Chapter 28
    Chapter #0:28: start 4925.879292, end 5133.294833
    Metadata:
      title           : Chapter 29
    Chapter #0:29: start 5133.294833, end 5328.573250
    Metadata:
      title           : Chapter 30
    Chapter #0:30: start 5328.573250, end 5736.814417
    Metadata:
      title           : Chapter 31
    Chapter #0:31: start 5736.814417, end 6117.027583
    Metadata:
      title           : Chapter 32
    Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 29815391
      DURATION-eng    : 01:41:57.027583333
      NUMBER_OF_FRAMES-eng: 146662
      NUMBER_OF_BYTES-eng: 22797694545
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-08-13 01:08:17
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 3805503
      DURATION-eng    : 01:41:57.034666666
      NUMBER_OF_FRAMES-eng: 573472
      NUMBER_OF_BYTES-eng: 2909799400
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-08-13 01:08:17
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:41:57.034666666
      NUMBER_OF_FRAMES-eng: 573472
      NUMBER_OF_BYTES-eng: 1153825664
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-08-13 01:08:17
      _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, 448 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 448000
      DURATION-eng    : 01:41:57.056000000
      NUMBER_OF_FRAMES-eng: 191158
      NUMBER_OF_BYTES-eng: 342555136
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-08-13 01:08:17
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[23:31:35] scan: decoding previews for title 1
[23:31:35] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[23:31:35] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[23:31:35] scan: audio 0x3: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (448 kbps)
[23:31:36] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 132/132/0/0, aspect 16:9, PAR 1:1
[23:31:36] scan: supported video decoders: avcodec qsv
[23:31:36] libhb: scan thread found 1 valid title(s)
[23:31:36] Skipping subtitle scan.  No suitable subtitle tracks.
[23:31:36] Starting Task: Encoding Pass
[23:31:36] job configuration:
[23:31:36]  * source
[23:31:36]    + C:\The Watch\The Watch_t00.mkv
[23:31:36]    + title 1, chapter(s) 1 to 32
[23:31:36]    + container: matroska,webm
[23:31:36]    + data rate: 35582 kbps
[23:31:36]  * destination
[23:31:36]    + C:\The Watch\The Watch T00-1.m4v
[23:31:36]    + container: MPEG-4 (libavformat)
[23:31:36]      + align initial A/V stream timestamps
[23:31:36]      + chapter markers
[23:31:36]  * video track
[23:31:36]    + decoder: h264
[23:31:36]    + filters
[23:31:36]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[23:31:36]      + Decomb (mode=39)
[23:31:36]      + Framerate Shaper (mode=2:rate=27000000/900000)
[23:31:36]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[23:31:36]      + Crop and Scale (width=1920:height=816:crop-top=132:crop-bottom=132:crop-left=0:crop-right=0)
[23:31:36]        + source: 1920 * 1080, crop (132/132/0/0): 1920 * 816, scale: 1920 * 816
[23:31:36]    + Output geometry
[23:31:36]      + storage dimensions: 1920 x 816
[23:31:36]      + pixel aspect ratio: 1 : 1
[23:31:36]      + display dimensions: 1920 x 816
[23:31:36]    + encoder: H.264 (NVEnc)
[23:31:36]      + preset:  slow
[23:31:36]      + profile: auto
[23:31:36]      + level:   auto
[23:31:36]      + quality: 18.00 (CQ)
[23:31:36]      + color profile: 1-1-1
[23:31:36]  * audio track 1
[23:31:36]    + name: Surround 5.1
[23:31:36]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[23:31:36]      + samplerate: 48000 Hz
[23:31:36]    + mixdown: Stereo
[23:31:36]    + dither: none
[23:31:36]    + encoder: AAC (libavcodec)
[23:31:36]      + bitrate: 160 kbps, samplerate: 48000 Hz
[23:31:36]  * audio track 2
[23:31:36]    + name: Surround 5.1
[23:31:36]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[23:31:36]      + samplerate: 48000 Hz
[23:31:36]    + mixdown: 5.1 Channels
[23:31:36]    + dither: none
[23:31:36]    + encoder: AC3 (libavcodec)
[23:31:36]      + bitrate: 640 kbps, samplerate: 48000 Hz
[23:31:36] sync: expecting 146661 video frames
[23:31:36] encavcodecInit: H.264 (Nvidia NVENC)
[23:31:36] encavcodec: encoding at rc=vbr 18.00
[23:31:36] encavcodec: encoding with stored aspect 1/1
[23:31:37] sync: first pts video is 0
[23:31:37] sync: "Chapter 1" (1) at frame 1 time 0
[23:31:37] sync: first pts audio 0x1 is 0
[23:31:37] sync: first pts audio 0x1 is 0
[23:32:50] sync: "Chapter 2" (2) at frame 6169 time 23153130
[23:33:38] sync: "Chapter 3" (3) at frame 10181 time 38213175
[23:34:30] sync: "Chapter 4" (4) at frame 14358 time 53892588
[23:35:13] sync: "Chapter 5" (5) at frame 17831 time 66929362
[23:36:49] sync: "Chapter 6" (6) at frame 25940 time 97368521
[23:37:24] sync: "Chapter 7" (7) at frame 28969 time 108738630
[23:37:57] sync: "Chapter 8" (8) at frame 31902 time 119748378
[23:38:35] sync: "Chapter 9" (9) at frame 35033 time 131501370
[23:39:51] sync: "Chapter 10" (10) at frame 42046 time 157826418
[23:40:41] sync: "Chapter 11" (11) at frame 46471 time 174436762
[23:40:56] sync: "Chapter 12" (12) at frame 47855 time 179631952
[23:42:09] sync: "Chapter 13" (13) at frame 54519 time 204646942
[23:42:33] sync: "Chapter 14" (14) at frame 56710 time 212871408
[23:43:20] sync: "Chapter 15" (15) at frame 60769 time 228107880
[23:44:47] sync: "Chapter 16" (16) at frame 68576 time 257413406
[23:45:49] sync: "Chapter 17" (17) at frame 74213 time 278573295
[23:46:47] sync: "Chapter 18" (18) at frame 79484 time 298359311
[23:47:19] sync: "Chapter 19" (19) at frame 82278 time 308847288
[23:48:02] sync: "Chapter 20" (20) at frame 86005 time 322837515
[23:48:25] sync: "Chapter 21" (21) at frame 88066 time 330573993
[23:49:30] sync: "Chapter 22" (22) at frame 93907 time 352499647
[23:49:53] sync: "Chapter 23" (23) at frame 96108 time 360761651
[23:50:35] sync: "Chapter 24" (24) at frame 99841 time 374774400
[23:51:26] sync: "Chapter 25" (25) at frame 104382 time 391820178
[23:51:55] sync: "Chapter 26" (26) at frame 107079 time 401944042
[23:53:03] sync: "Chapter 27" (27) at frame 113210 time 424958283
[23:53:30] sync: "Chapter 28" (28) at frame 115614 time 433982298
[23:53:57] sync: "Chapter 29" (29) at frame 118107 time 443340397
[23:54:51] sync: "Chapter 30" (30) at frame 123077 time 461996535
[23:55:42] sync: "Chapter 31" (31) at frame 127761 time 479579100
[23:57:29] sync: "Chapter 32" (32) at frame 137549 time 516320805
[23:59:27] reader: done. 1 scr changes
[23:59:27] work: average encoding speed for job is 87.769791 fps
[23:59:28] comb detect: heavy 207 | light 1186 | uncombed 145269 | total 146662
[23:59:28] decomb: deinterlaced 207 | blended 1186 | unfiltered 145269 | total 146662
[23:59:28] vfr: 146662 frames output, 0 dropped and 0 duped for CFR/PFR
[23:59:28] vfr: lost time: 0 (0 frames)
[23:59:28] vfr: gained time: 0 (0 frames) (0 not accounted for)
[23:59:28] dca-decoder done: 573472 frames, 0 decoder errors
[23:59:28] dca-decoder done: 573472 frames, 0 decoder errors
[23:59:28] h264-decoder done: 146662 frames, 0 decoder errors
[23:59:28] sync: got 146662 frames, 146661 expected
[23:59:28] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[23:59:28] mux: track 0, 146662 frames, 10967282638 bytes, 14343.19 kbps, fifo 512
[23:59:28] mux: track 1, 286737 frames, 122679012 bytes, 160.44 kbps, fifo 1024
[23:59:28] mux: track 2, 191157 frames, 489361920 bytes, 640.00 kbps, fifo 512
[23:59:28] Finished work at: Wed Aug 12 23:59:28 2020
[23:59:28] libhb: work result = 0

# Encode Completed ...

.
mduell
Veteran User
Posts: 7261
Joined: Sat Apr 21, 2007 8:54 pm

Re: CPU or GPU transcoding? What quality preset?

Post by mduell »

Fast, small, or good: pick 2.

Then we can suggest encoders and settings.
Post Reply