I don't want to use my CPU

Discussion of the HandBrake command line interface (CLI)
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
brellyn
Posts: 14
Joined: Tue Sep 13, 2016 9:58 pm

I don't want to use my CPU

Post by brellyn »

Please detail your question or problem in as much detail as possible:

HandbrakeCLI notes my GPU but uses my CPU to encode. I believe my GPU would be much faster but it appears to be unsupported? Am I missing a driver or something?

Tell us about your environment. What version of HandBrake? What operating system are you running. etc.

HandBrake 0.10.5 (2016021100) - MinGW x86_64 - https://handbrake.fr
Windows 10
[08:14:44] CPU: Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
[08:14:44] - logical processor count: 8
[08:14:44] OpenCL device #1: NVIDIA Corporation GeForce GTX 970
[08:14:44] - OpenCL version: 1.2 CUDA
[08:14:44] - driver version: 376.54
[08:14:44] - device type: GPU
[08:14:44] - supported: no

If there was any exception or error displayed, please copy it and paste it here:

[08:14:44] - device type: GPU
[08:14:44] - supported: no

Please include the scan or encode log:

Code: Select all

 Paste a log of the scan or encode between these code brackets, or use a pastebin website and provide us with the URL it gives you. 
 Logs are required for all support requests.
 
 [08:14:44] hb_init: starting libhb thread
HandBrake 0.10.5 (2016021100) - MinGW x86_64 - https://handbrake.fr
8 CPUs detected
Opening inputfile.dat...
[08:14:44] CPU: Intel(R) Core(TM) i7 CPU         950  @ 3.07GHz
[08:14:44]  - logical processor count: 8
[08:14:44] OpenCL device #1: NVIDIA Corporation GeForce GTX 970
[08:14:44]  - OpenCL version: 1.2 CUDA
[08:14:44]  - driver version: 376.54
[08:14:44]  - device type:    GPU
[08:14:44]  - supported:      no
[08:14:44] Intel Quick Sync Video support: no
[08:14:44] hb_scan: path=inputfile.dat, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening inputfile.dat/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening inputfile.dat/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(inputfile.dat) failed
[08:14:44] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.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
[08:14:44] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'inputfile.dat':
  Metadata:
    title           : output
  Duration: 01:26:45.62, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 450.324875
    Metadata:
      title           : Chapter 01
    Chapter #0.1: start 450.324875, end 1068.192125
    Metadata:
      title           : Chapter 02
    Chapter #0.2: start 1068.192125, end 1206.038167
    Metadata:
      title           : Chapter 03
    Chapter #0.3: start 1206.038167, end 1687.727708
    Metadata:
      title           : Chapter 04
    Chapter #0.4: start 1687.727708, end 2212.585375
    Metadata:
      title           : Chapter 05
    Chapter #0.5: start 2212.585375, end 2708.539167
    Metadata:
      title           : Chapter 06
    Chapter #0.6: start 2708.539167, end 2862.401208
    Metadata:
      title           : Chapter 07
    Chapter #0.7: start 2862.401208, end 3273.645375
    Metadata:
      title           : Chapter 08
    Chapter #0.8: start 3273.645375, end 3561.641417
    Metadata:
      title           : Chapter 09
    Chapter #0.9: start 3561.641417, end 4193.314125
    Metadata:
      title           : Chapter 10
    Chapter #0.10: start 4193.314125, end 4699.486458
    Metadata:
      title           : Chapter 11
    Chapter #0.11: start 4699.486458, end 5205.620000
    Metadata:
      title           : Chapter 12
    Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 34868011
      DURATION-eng    : 01:26:45.617083333
      NUMBER_OF_FRAMES-eng: 124810
      NUMBER_OF_BYTES-eng: 22688689209
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-03-22 02:30:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0.1(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s (default)
    Metadata:
      title           : Mono
      BPS-eng         : 1152000
      DURATION-eng    : 01:26:45.620000000
      NUMBER_OF_FRAMES-eng: 156169
      NUMBER_OF_BYTES-eng: 749609280
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-03-22 02:30:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0.2(eng): Audio: ac3, 48000 Hz, mono, fltp, 192 kb/s
    Metadata:
      title           : Mono
      BPS-eng         : 192000
      DURATION-eng    : 01:26:45.632000000
      NUMBER_OF_FRAMES-eng: 162676
      NUMBER_OF_BYTES-eng: 124935168
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-03-22 02:30:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0.3(eng): Subtitle: pgssub
    Metadata:
      BPS-eng         : 61184
      DURATION-eng    : 01:24:38.385812500
      NUMBER_OF_FRAMES-eng: 2195
      NUMBER_OF_BYTES-eng: 38839822
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-03-22 02:30:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[08:14:44] scan: decoding previews for title 1
[08:14:44] scan: audio 0x1: pcm_s24le, rate=48000Hz, bitrate=1152000 English (pcm_s24le) (1.0 ch)
[08:14:44] scan: audio 0x2: ac3, rate=48000Hz, bitrate=192000 English (AC3) (1.0 ch)

Scanning title 1 of 1, preview 2, 20.00 %
Scanning title 1 of 1, preview 2, 20.00 %
Scanning title 1 of 1, preview 4, 40.00 %
Scanning title 1 of 1, preview 4, 40.00 %
Scanning title 1 of 1, preview 5, 50.00 %
Scanning title 1 of 1, preview 6, 60.00 %
Scanning title 1 of 1, preview 7, 70.00 %
Scanning title 1 of 1, preview 8, 80.00 %
Scanning title 1 of 1, preview 8, 80.00 %
Scanning title 1 of 1, preview 9, 90.00 %
Scanning title 1 of 1, preview 10, 100.00 %[08:14:46] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/238/240, aspect 16:9, PAR 1:1
[08:14:46] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: inputfile.dat
  + duration: 01:26:45
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 0/0/238/240
  + support opencl: no
  + support hwd: yes
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:07:30
    + 2: cells 0->0, 0 blocks, duration 00:10:18
    + 3: cells 0->0, 0 blocks, duration 00:02:18
    + 4: cells 0->0, 0 blocks, duration 00:08:02
    + 5: cells 0->0, 0 blocks, duration 00:08:45
    + 6: cells 0->0, 0 blocks, duration 00:08:16
    + 7: cells 0->0, 0 blocks, duration 00:02:34
    + 8: cells 0->0, 0 blocks, duration 00:06:51
    + 9: cells 0->0, 0 blocks, duration 00:04:48
    + 10: cells 0->0, 0 blocks, duration 00:10:32
    + 11: cells 0->0, 0 blocks, duration 00:08:26
    + 12: cells 0->0, 0 blocks, duration 00:08:26
  + audio tracks:
    + 1, English (pcm_s24le) (1.0 ch) (iso639-2: eng)
    + 2, English (AC3) (1.0 ch) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English (iso639-2: eng) (Bitmap)(PGS)
+ Using preset: Normal
Warning: Could not find subtitle track '2', skipped
Warning: Could not find subtitle track '3', skipped
Warning: Could not find subtitle track '4', skipped
[08:14:47] 1 job(s) to process
[08:14:47] starting job
[08:14:47] work: sanitizing track 1 mixdown Dolby Pro Logic II to Mono
[08:14:47] sync: expecting 124810 video frames
[08:14:47] job configuration:
[08:14:47]  * source
[08:14:47]    + inputfile.dat
[08:14:47]    + title 1, chapter(s) 1 to 12
[08:14:47]    + container: matroska,webm
[08:14:47]  * destination
[08:14:47]    + output.mkv
[08:14:47]    + container: Matroska (libavformat)
[08:14:47]      + chapter markers
[08:14:47]  * video track
[08:14:47]    + decoder: h264
[08:14:47]    + filters
[08:14:47]      + Framerate Shaper (0:27000000:1126125)
[08:14:47]        + frame rate: same as source (around 23.976 fps)
[08:14:47]      + Crop and Scale (1920:1080:0:0:0:0)
[08:14:47]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[08:14:47]    + loose anamorphic
[08:14:47]      + storage dimensions: 1920 * 1080, mod 2
[08:14:47]      + pixel aspect ratio: 1 / 1
[08:14:47]      + display dimensions: 1920 * 1080
[08:14:47]    + encoder: H.264 (libx264)
[08:14:47]      + preset:  veryfast
[08:14:47]      + profile: main
[08:14:47]      + level:   4.0
[08:14:47]      + quality: 20.00 (RF)
[08:14:47]  * subtitle track 1, English (track 3, id 0x3) Picture [PGS] -> Passthrough
[08:14:47]  * audio track 1
[08:14:47]    + decoder: English (pcm_s24le) (1.0 ch) (track 1, id 0x1)
[08:14:47]      + bitrate: 1152 kbps, samplerate: 48000 Hz
[08:14:47]    + mixdown: Mono
[08:14:47]    + encoder: AAC (libavcodec)
[08:14:47]      + bitrate: 160 kbps, samplerate: 48000 Hz
[08:14:47] reader: first SCR 0 id 0x0 DTS 0
[08:14:47] encx264: min-keyint: 24, keyint: 240
[08:14:47] encx264: encoding at constant RF 20.000000
[08:14:47] encx264: unparsed options: level=4.0:ref=1:8x8dct=0:weightp=1:subme=2:mixed-refs=0:trellis=0:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=10
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
x264 [info]: profile Main, level 4.0
[08:19:15] h264: "Chapter 2" (2) at frame 10805 time 40529250
[08:25:53] h264: "Chapter 3" (3) at frame 25621 time 96144840
[08:27:18] h264: "Chapter 4" (4) at frame 28926 time 108550980
[08:32:17] h264: "Chapter 5" (5) at frame 40473 time 151895520
[08:37:38] h264: "Chapter 6" (6) at frame 53060 time 199143990
[08:42:56] h264: "Chapter 7" (7) at frame 64951 time 243779760
[08:44:30] h264: "Chapter 8" (8) at frame 68640 time 257627340
[08:48:38] h264: "Chapter 9" (9) at frame 78500 time 294639390
[08:51:12] h264: "Chapter 10" (10) at frame 85404 time 320555250
[08:56:48] h264: "Chapter 11" (11) at frame 100550 time 377409510
[09:01:09] h264: "Chapter 12" (12) at frame 112686 time 422965080
[09:05:47] reader: done. 1 scr changes
[09:05:49] work: average encoding speed for job is 40.758053 fps
[09:05:49] sync: got 124810 frames, 124810 expected
[09:05:49] render: lost time: 0 (0 frames)
[09:05:49] render: gained time: 0 (0 frames) (0 not accounted for)
[09:05:49] h264-decoder done: 124810 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:1494  Avg QP:15.62  size:117070
x264 [info]: frame P:107735 Avg QP:21.58  size: 52940
x264 [info]: frame B:15581 Avg QP:22.63  size: 34761
x264 [info]: consecutive B-frames: 75.3% 23.9%  0.3%  0.4%
x264 [info]: mb I  I16..4: 55.0%  0.0% 45.0%
x264 [info]: mb P  I16..4: 28.8%  0.0%  3.9%  P16..4: 22.0% 11.6%  5.3%  0.0%  0.0%    skip:28.4%
x264 [info]: mb B  I16..4:  9.5%  0.0%  1.0%  B16..8: 20.3%  8.7%  1.0%  direct:19.8%  skip:39.8%  L0:33.0% L1:38.8% BI:28.3%
x264 [info]: coded y,uvDC,uvAC intra: 75.0% 0.0% 0.0% inter: 31.0% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 26% 14% 49% 11%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20%  8% 29%  8%  8%  9%  5%  8%  5%
x264 [info]: i8c dc,h,v,p: 100%  0%  0%  0%
x264 [info]: Weighted P-Frames: Y:20.0% UV:0.0%
x264 [info]: kb/s:9866.34
[09:05:49] pcm_s24le-decoder done: 0 frames, 0 decoder errors, 0 drops
[09:05:49] mux: track 0, 124810 frames, 6419992091 bytes, 9866.33 kbps, fifo 1024
[09:05:49] mux: track 1, 244012 frames, 102942954 bytes, 158.20 kbps, fifo 2048
[09:05:49] mux: track 2, 2195 frames, 38839822 bytes, 59.69 kbps, fifo 32
[09:05:49] libhb: work result = 0

Encode done!
HandBrake has exited.
 
 
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: I don't want to use my CPU

Post by Ritsuka »

Nope, GPUs are horrible at video encoding.
brellyn
Posts: 14
Joined: Tue Sep 13, 2016 9:58 pm

Re: I don't want to use my CPU

Post by brellyn »

Odd that you should say that. Sony Vegas 14 encodes my videos using Cuda roughly 600% faster than my CPU
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: I don't want to use my CPU

Post by mduell »

Then you should use that.

Oh, it's crap? Funny coincidence...
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: I don't want to use my CPU

Post by s55 »

CUDA is terrible. It's fast but it sacrifices quality and filesize. Even NVIDIA has moved on from it and now have dedicated hardware on their GPU's which is orders of magnitude better.

We already support Intel QuickSync (which your CPU doesn't support sadly) which would run circles around the CUDA encoder.
At some point in the future, we may also get NVENC (which your GPU should support) which also runs circles around CUDA.
brellyn
Posts: 14
Joined: Tue Sep 13, 2016 9:58 pm

Re: I don't want to use my CPU

Post by brellyn »

hmm. nVidia has been around for over 23 years and is arguably the fastest video card on the planet from a company generating almost 7 billion dollars in revenue last year and is completely unsupported as an encoding platform?

If I'm ever able to save up the money to move off of the LGA1366 platform to something more contemporary, I'll make sure that it's one that supports Quick Sync.

Thanks for the info.
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: I don't want to use my CPU

Post by s55 »

The size of the company is irrelevant. Think of it more along these lines:

Is there developer interest? -> For Nvidia NVEnc , No. Most of us don't have Nvidia hardware. Even if we did, our typical use cases prefer slower but higher quality encodes which the hardware encoders are not as suited to.

Is the product/feature idea any good? -> NVEnc is comparable to QuickSync. There are pros/cons to both but that's another discussion. Thus, if someone wants to contribute a GPL compatible patch, we'd likely accept that if it's well written. Note: CUDA != NVEnc . NVEnc superseeds it so we'd not accept patches for a legacy technology.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: I don't want to use my CPU

Post by mduell »

brellyn wrote: Fri Apr 07, 2017 8:53 pmhmm. nVidia has been around for over 23 years and is arguably the fastest video card on the planet from a company generating almost 7 billion dollars in revenue last year and is completely unsupported as an encoding platform?
And Intel is 48 years old doing $60B, what's your point?
Deleted User 13735

Re: I don't want to use my CPU

Post by Deleted User 13735 »

. Sony Vegas 14 encodes my videos using Cuda roughly 600% faster than my CPU
I've been monitoring the Vegas Pro forum for15 years and I have never heard a claim such as that. Double-digit gains have been known to happen, .... when paired with a slow CPU.

Also, there is NO SUCH THING AS SONY VEGAS 14, further proof of your alt_facts.
brellyn
Posts: 14
Joined: Tue Sep 13, 2016 9:58 pm

Re: I don't want to use my CPU

Post by brellyn »

musicvid wrote: Sat Apr 08, 2017 2:15 am I've been monitoring the Vegas Pro forum for15 years and I have never heard a claim such as that. Double-digit gains have been known to happen, .... when paired with a slow CPU.
Perhaps you haven't run across my configuration before. When you have three (yes, three) GTX970 cards running in SLI (EVGA X58 SLI Motherboard), great things can happen.
musicvid wrote: Sat Apr 08, 2017 2:15 am Also, there is NO SUCH THING AS SONY VEGAS 14, further proof of your alt_facts.
Here's my Vegas Pro 14 screenshot, btw. https://ibb.co/hXH085
brellyn
Posts: 14
Joined: Tue Sep 13, 2016 9:58 pm

Re: I don't want to use my CPU

Post by brellyn »

s55 wrote: Fri Apr 07, 2017 9:19 pm The size of the company is irrelevant. Think of it more along these lines:

Is there developer interest? -> For Nvidia NVEnc , No. Most of us don't have Nvidia hardware. Even if we did, our typical use cases prefer slower but higher quality encodes which the hardware encoders are not as suited to.

Is the product/feature idea any good? -> NVEnc is comparable to QuickSync. There are pros/cons to both but that's another discussion. Thus, if someone wants to contribute a GPL compatible patch, we'd likely accept that if it's well written. Note: CUDA != NVEnc . NVEnc superseeds it so we'd not accept patches for a legacy technology.
Great info, makes a lot of sense.
Deleted User 13735

Re: I don't want to use my CPU

Post by Deleted User 13735 »

Perhaps you haven't run across my configuration before. When you have three (yes, three) GTX970 cards running in SLI (EVGA X58 SLI Motherboard), great things can happen.
Your nose is growing. Vegas has never leveraged SLI for rendering, only for multiple displays.
Next?
Here's my Vegas Pro 14 screenshot, btw. https://ibb.co/hXH085
You didn't even bother to read the print at the bottom of the screenshot you downloaded?
There should be a minimum age requirement to post here.
Last edited by Deleted User 13735 on Mon Apr 10, 2017 11:07 am, edited 6 times in total.
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: I don't want to use my CPU

Post by Woodstock »

On 24 May 2016, Sony announced that it sold Vegas (and most of its "Creative Software" line) to MAGIX, who would continue supporting and developing the software.
So, you're saying you have version 14 of "The software formerly known as Sony Vegas", from Magix Software GmbH?
Post Reply