Using GPU to Render

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.
Locked
ZX14-R
Posts: 7
Joined: Wed Mar 04, 2020 10:44 am

Using GPU to Render

Post by ZX14-R »

Hi,

Can will their be a an option to use GPU to render/Transcode Video?

Cheers
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Using GPU to Render

Post by rollin_eng »

Could you please post your HB logs, instructions can be found here:

https://handbrake.fr/docs/en/latest/hel ... y-log.html
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Using GPU to Render

Post by mduell »

Yes, there can be.

Anything more depends on a lot of details we need accurate answers to, and the best way to provide those is the follow the instructions in bold underlined red text on a pink background at the top of the page.
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: Using GPU to Render

Post by Woodstock »

If you run an encode and post the log, we'll know things like whether or not your system has a GPU that includes encoding hardware, AND proper drivers are installed. GPUs, by themselves, aren't very good at encoding job.
ZX14-R
Posts: 7
Joined: Wed Mar 04, 2020 10:44 am

Re: Using GPU to Render

Post by ZX14-R »

Hi,

I found the GPU setting and am very happy with result and increase in transcoding from MKV to MP4 although the default setting tend to increase the MP4 file to about 4 time the file size.

Video card is NVidia GTX1060 Series 6GB DDR4.

Now just to see if can get file size down a tad without losing too much quality?

Assistance appreciated.
ZX14-R
Posts: 7
Joined: Wed Mar 04, 2020 10:44 am

Re: Using GPU to Render

Post by ZX14-R »

HandBrake 1.3.1 (2020010400)
OS: Microsoft Windows NT 10.0.18362.0
CPU: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
Ram: 16317 MB,
GPU Information:
NVIDIA GeForce GTX 1060 6GB - 26.21.14.4219
Screen: 1920x1080
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: Using GPU to Render

Post by Woodstock »

Cannot recommend changes if we don't know what the baseline is. THAT information is in the required activity logs that still haven't appeared.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Using GPU to Render

Post by mduell »

Nope. The hardware encoders are fast, they're not efficient (quality for size).
ZX14-R
Posts: 7
Joined: Wed Mar 04, 2020 10:44 am

Re: Using GPU to Render

Post by ZX14-R »

Not sure what info you want out of the logs?
ZX14-R
Posts: 7
Joined: Wed Mar 04, 2020 10:44 am

Re: Using GPU to Render

Post by ZX14-R »

Just looking for best options when converting MKV to MP4 to retain best quality and file size.

I use Plex to view videos on tv off my low powered media server.

if files are in mkv format they require transcoding. My media server does not have the grunt to keep up :-)

yes changing my media server to a beefed up pc would solve the problem but defeat the purpose of a server.

cheers
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Using GPU to Render

Post by rollin_eng »

ZX14-R wrote: Fri Mar 06, 2020 7:41 am Not sure what info you want out of the logs?
https://handbrake.fr/docs/en/latest/hel ... y-log.html
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: Using GPU to Render

Post by Woodstock »

ZX14-R wrote: Fri Mar 06, 2020 7:41 am Not sure what info you want out of the logs?
You are asking for suggestions on what to change. Right now, we have almost zero information on what you did.

Right now, we're at a similar point to you asking, "How do I get through curves better?" "Let's see what your technique is now." "Why do you need to do that?"
ZX14-R
Posts: 7
Joined: Wed Mar 04, 2020 10:44 am

Re: Using GPU to Render

Post by ZX14-R »

HandBrake 1.3.1 (2020010400)
OS: Microsoft Windows NT 10.0.18362.0
CPU: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
Ram: 16317 MB,
GPU Information:
NVIDIA GeForce GTX 1060 6GB - 26.21.14.4219
Screen: 1920x1080
Temp Dir: C:\Users\Markb\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Markb\AppData\Roaming\HandBrake

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


# Starting Encode ...

[10:25:54] base preset: Fast 1080p30 (Modified)
[10:25:54] hb_init: starting libhb thread
[10:25:54] Starting work at: Sat Mar 07 10:25:54 2020
[10:25:54] 1 job(s) to process
[10:25:54] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 160,
"DRC": 0.0,
"Encoder": "av_aac",
"Gain": 0.0,
"Mixdown": 4,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Name": "Stereo",
"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"
}
],
"ChapterMarkers": true,
"AlignAVStart": true,
"File": "H:\\The Mandalorian Season 1 Complete 720p WEB x264 [i_c]\\The Mandalorian S01e01 Chapter 1-1.mp4",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "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": "0",
"crop-left": "0",
"crop-right": "0",
"crop-top": "0",
"height": "720",
"width": "1280"
}
},
{
"ID": 6,
"Settings": {
"mode": "2",
"rate": "27000000/900000"
}
}
]
},
"PAR": {
"Num": 90,
"Den": 67
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 1
},
"Title": 1,
"Path": "H:\\The Mandalorian Season 1 Complete 720p WEB x264 [i_c]\\The Mandalorian S01E01 Chapter 1.mkv"
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": true,
"Forced": true
},
"SubtitleList": []
},
"Video": {
"Encoder": "nvenc_h265",
"Level": "auto",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "slow",
"Profile": "auto",
"Quality": 22.0,
"QSV": {
"Decode": false,
"AsyncDepth": 0
}
}
}
[10:25:54] CPU: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
[10:25:54] - Intel microarchitecture Kaby Lake
[10:25:54] - logical processor count: 12
[10:25:54] Intel Quick Sync Video support: no
[10:25:54] hb_scan: path=H:\The Mandalorian Season 1 Complete 720p WEB x264 [i_c]\The Mandalorian S01E01 Chapter 1.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image H:\The Mandalorian Season 1 Complete 720p WEB x264 [i_c]\The Mandalorian S01E01 Chapter 1.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(H:\The Mandalorian Season 1 Complete 720p WEB x264 [i_c]\The Mandalorian S01E01 Chapter 1.mkv\) failed
[10:25:54] 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
[10:25:54] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'H:\The Mandalorian Season 1 Complete 720p WEB x264 [i_c]\The Mandalorian S01E01 Chapter 1.mkv':
Metadata:
CREATION_TIME : 2019-11-16T05:40:38Z
ENCODER : Lavf57.7.2
Duration: 00:38:46.25, start: 0.000000, bitrate: 1520 kb/s
Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 1280x720 [SAR 90:67 DAR 160:67], SAR 231:172 DAR 308:129, 23.98 fps, 23.98 tbr, 1k tbn, 180k tbc (default)
Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
Metadata:
title : Stereo
Stream #0:2(eng): Subtitle: ass
Stream #0:3(eng): Subtitle: ass
Stream #0:4(dan): Subtitle: ass
Stream #0:5(dut): Subtitle: ass
Stream #0:6(fin): Subtitle: ass
Stream #0:7(fre): Subtitle: ass
Stream #0:8(ger): Subtitle: ass
Stream #0:9(ita): Subtitle: ass
Stream #0:10(nor): Subtitle: ass
Stream #0:11(pol): Subtitle: ass
Stream #0:12(por): Subtitle: ass
Stream #0:13(por): Subtitle: ass
Stream #0:14(spa): Subtitle: ass
Stream #0:15(spa): Subtitle: ass
Stream #0:16(swe): Subtitle: ass
[10:25:54] scan: decoding previews for title 1
[10:25:54] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 English (AAC LC) (2.0 ch)
[10:25:54] scan: 10 previews, 1280x720, 23.976 fps, autocrop = 0/0/0/0, aspect 2.39:1, PAR 90:67
[10:25:54] scan: supported video decoders: avcodec qsv
[10:25:54] libhb: scan thread found 1 valid title(s)
[10:25:54] Skipping subtitle scan. No suitable subtitle tracks.
[10:25:54] Starting Task: Encoding Pass
[10:25:54] Skipping crop/scale filter
[10:25:54] work: only 1 chapter, disabling chapter markers
[10:25:54] job configuration:
[10:25:54] * source
[10:25:54] + H:\The Mandalorian Season 1 Complete 720p WEB x264 [i_c]\The Mandalorian S01E01 Chapter 1.mkv
[10:25:54] + title 1, chapter(s) 1 to 1
[10:25:54] + container: matroska,webm
[10:25:54] + data rate: 1520 kbps
[10:25:54] * destination
[10:25:54] + H:\The Mandalorian Season 1 Complete 720p WEB x264 [i_c]\The Mandalorian S01e01 Chapter 1-1.mp4
[10:25:54] + container: MPEG-4 (libavformat)
[10:25:54] + align initial A/V stream timestamps
[10:25:54] * video track
[10:25:54] + decoder: h264
[10:25:54] + filters
[10:25:54] + 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)
[10:25:54] + Decomb (mode=39)
[10:25:54] + Framerate Shaper (mode=2:rate=27000000/900000)
[10:25:54] + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[10:25:54] + Output geometry
[10:25:54] + storage dimensions: 1280 x 720
[10:25:54] + pixel aspect ratio: 90 : 67
[10:25:54] + display dimensions: 1719 x 720
[10:25:54] + encoder: H.265 (NVEnc)
[10:25:54] + preset: slow
[10:25:54] + profile: auto
[10:25:54] + level: auto
[10:25:54] + quality: 22.00 (CQ)
[10:25:54] + color profile: 1-1-1
[10:25:54] * audio track 1
[10:25:54] + name: Stereo
[10:25:54] + decoder: English (AAC LC) (2.0 ch) (track 1, id 0x1)
[10:25:54] + samplerate: 48000 Hz
[10:25:54] + mixdown: Stereo
[10:25:54] + dither: none
[10:25:54] + encoder: AAC (libavcodec)
[10:25:54] + bitrate: 160 kbps, samplerate: 48000 Hz
[10:25:54] sync: expecting 55774 video frames
[10:25:54] encavcodecInit: H.265 (Nvidia NVENC)
[10:25:54] encavcodec: encoding at rc=vbr 22.00
[10:25:54] encavcodec: encoding with stored aspect 90/67
[10:25:54] sync: first pts video is 0
[10:25:54] sync: "Chapter 1" (1) at frame 1 time 0
[10:25:54] sync: first pts audio 0x1 is 0
[10:29:15] reader: done. 1 scr changes
[10:29:15] work: average encoding speed for job is 276.882660 fps
[10:29:16] comb detect: heavy 19 | light 93 | uncombed 55661 | total 55773
[10:29:16] decomb: deinterlaced 19 | blended 93 | unfiltered 55661 | total 55773
[10:29:16] vfr: 55773 frames output, 0 dropped and 0 duped for CFR/PFR
[10:29:16] vfr: lost time: 0 (0 frames)
[10:29:16] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:29:16] aac-decoder done: 109042 frames, 0 decoder errors
[10:29:16] h264-decoder done: 55773 frames, 0 decoder errors
[10:29:16] sync: got 55773 frames, 55774 expected
[10:29:16] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[10:29:16] mux: track 0, 55773 frames, 757247731 bytes, 2604.19 kbps, fifo 2048
[10:29:16] mux: track 1, 109042 frames, 46563125 bytes, 160.13 kbps, fifo 4096
[10:29:16] Finished work at: Sat Mar 07 10:29:16 2020
[10:29:16] libhb: work result = 0

# Encode Completed ...
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: Using GPU to Render

Post by Woodstock »

The probable reason for the file GROWING when you encode it is that whoever uploaded your source has already squeezed it quite a bit. The encoder is trying to faithfully encode the existing artifacts, which takes up additional space.
ZX14-R
Posts: 7
Joined: Wed Mar 04, 2020 10:44 am

Re: Using GPU to Render

Post by ZX14-R »

Some sample File sizes MKV - MP4 - Nvidia H265

431775 - 786331KB
286536 - 496845KB
260041 - 448359KB

Cheers
Locked