Videotoolbox option not available

HandBrake for Mac 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
stbender
Posts: 9
Joined: Thu Mar 07, 2019 6:50 pm

Videotoolbox option not available

Post by stbender »

Description of problem or question:
Hi,
I installed the current nighty build on bot my MacBook Pro and my Mac Pro.
I open a mkv movie file.
I switch to the preset "H.265 MKV 1080p30"
Then I want to select the VideoToolbox encoder option.
On the MBP is is available and it works.
On the MacPro the option is not available from the "Encoder" menu.

Here are the details of the Macs:
MacBook Pro 15" late 2016
2,9 Ghz i7, 16 GB RAM
GPU:
Radeon Pro 460 4096 MB
Intel HD Graphics 530 1536 MB

MacPro late 2013
3,7 Ghz Quad Core Xeon
32 GB RAM
GPU: AMD FirePro D500, 3GB

Can you please tell me why I cannot use the VideoToolbox encoding option on my MacPro?

Thank you!

HandBrake version (e.g., 1.0.0):
Version 20190303180224-a62bd12-master

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
macOS 10.4.3 on bothe Macs
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Videotoolbox option not available

Post by Ritsuka »

Because there is no QuickSync on Xeon cpus, and I don't remember if there is a hardware encoder on the D500, but clearly it's not supported by Apple. With such Mac you will have much better quality and speed by using a software encoder like x264 and x265.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Videotoolbox option not available

Post by mduell »

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.

@Ritsuka, videotoolbox is useful for more than just QSV on Macs.
stbender
Posts: 9
Joined: Thu Mar 07, 2019 6:50 pm

Re: Videotoolbox option not available

Post by stbender »

mduell wrote: Thu Mar 07, 2019 7:37 pm 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.
Sorry, but as there's no "activity" problem I did not post an activity log. My question addresses the availabilty of a feature on certain system configurations.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Videotoolbox option not available

Post by JohnAStebbins »

stbender wrote: Thu Mar 07, 2019 10:03 pm
mduell wrote: Thu Mar 07, 2019 7:37 pm 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.
Sorry, but as there's no "activity" problem I did not post an activity log. My question addresses the availabilty of a feature on certain system configurations.
In this case, you supplied enough information that someone was able to answer your question (specifically CPU type). Most people don't. The log tells us CPU type and other things, like whether an error occurred at start-up. If your problem had been some sort of error, we would still be scratching our heads over this due to insufficient information from the missing log. This information is in the log even if you haven't performed an encode yet.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Videotoolbox option not available

Post by mduell »

stbender wrote: Thu Mar 07, 2019 10:03 pm
mduell wrote: Thu Mar 07, 2019 7:37 pm 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.
Sorry, but as there's no "activity" problem I did not post an activity log. My question addresses the availabilty of a feature on certain system configurations.
Users are not known of their ability to report on what version of HB they have, where they got it from, what hardware they're on, what settings they selected, or various aspects of their source video accurately. Since the availability of some features depends on those, an activity log is a great idea.
stbender
Posts: 9
Joined: Thu Mar 07, 2019 6:50 pm

Re: Videotoolbox option not available

Post by stbender »

I fully understand.
If any further encoding questions rise I will of course post the log. In this case I saw in the log that there is no additional information about the system, other than I described manually.
Thank you you for the answers!
stbender
Posts: 9
Joined: Thu Mar 07, 2019 6:50 pm

Re: Videotoolbox option not available

Post by stbender »

Ritsuka wrote: Thu Mar 07, 2019 7:30 pm Because there is no QuickSync on Xeon cpus, and I don't remember if there is a hardware encoder on the D500, but clearly it's not supported by Apple. With such Mac you will have much better quality and speed by using a software encoder like x264 and x265.
Hello,
I have an additional question: You say on such a MacPro I such get better speed and quality using software enoding.
However, If I use comparable settings for the x265 encoder (just without VideoToolBox) the MacPro needs 6-7h to encode (appr. 6FPS), whereas the MBP encodes with VideoToolBox in appr. 1h (35-40FPS).
So maybe there is a hint how to speed up software x265 encoding?
Thank you!
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Videotoolbox option not available

Post by mduell »

Pick a faster encoder preset.

And post your encoding logs from both so we can point out any other differences.
stbender
Posts: 9
Joined: Thu Mar 07, 2019 6:50 pm

Re: Videotoolbox option not available

Post by stbender »

ok, here are some testing results using a smaller and less complex source file:

Encode on MacBook Pro using VideoToolbox, CBR 2500 kbps:
appr. 44 fps

Code: Select all

HandBrake Activity Log for Session: 2019-03-08T18:15:06Z
Handbrake Version: 20190303180224-a62bd12-master (2019030401)
big_buck_bunny_720p_surround_VTB.mkv
Preset: H.265 MKV 720p30 (Modifiziert)
[19:15:06] macgui: QueueCore prevented sleep
[19:15:06] macgui: QueueCore scanning specifically for title: 1
[19:15:06] CPU: Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz
[19:15:06]  - Intel microarchitecture Skylake
[19:15:06]  - logical processor count: 8
[19:15:06] hb_scan: path=/Users/bender/Downloads/big_buck_bunny_720p_surround.avi, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/bender/Downloads/big_buck_bunny_720p_surround.avi
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[19:15:06] 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
[19:15:06] dvd: not a dvd - trying as a stream/file instead
Input #0, avi, from '/Users/bender/Downloads/big_buck_bunny_720p_surround.avi':
  Metadata:
    encoder         : AVI-Mux GUI 1.17.7, Aug  8 2006  20:59:17
    JUNK            : 
  Duration: 00:09:56.46, start: 0.000000, bitrate: 4456 kb/s
    Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 4001 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s
    Metadata:
      title           : BBB-Master
[19:15:06] scan: decoding previews for title 1
[19:15:06] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 Unknown (AC3) (5.1 ch) (448 kbps)
[19:15:07] scan: 10 previews, 1280x720, 24.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[19:15:07] libhb: scan thread found 1 valid title(s)
[19:15:07] macgui: QueueCore scan done
[19:15:07] 1 job(s) to process
[19:15:07] starting job
[19:15:07] macgui: QueueCore started encoding big_buck_bunny_720p_surround_VTB.mkv
[19:15:07] macgui: QueueCore with preset H.265 MKV 720p30 (Modifiziert)
[19:15:07] decomb filter thread started for segment 0
[19:15:07] decomb filter thread started for segment 1
[19:15:07] decomb filter thread started for segment 2
[19:15:07] decomb filter thread started for segment 3
[19:15:07] decomb filter thread started for segment 4
[19:15:07] decomb filter thread started for segment 5
[19:15:07] decomb filter thread started for segment 6
[19:15:07] decomb filter thread started for segment 7
[19:15:07] decomb check thread started for segment 0
[19:15:07] decomb check thread started for segment 1
[19:15:07] decomb check thread started for segment 2
[19:15:07] decomb check thread started for segment 3
[19:15:07] decomb check thread started for segment 4
[19:15:07] decomb check thread started for segment 5
[19:15:07] decomb check thread started for segment 6
[19:15:07] decomb check thread started for segment 7
[19:15:07] mask filter thread started for segment 0
[19:15:07] mask filter thread started for segment 1
[19:15:07] mask filter thread started for segment 2
[19:15:07] mask filter thread started for segment 3
[19:15:07] mask filter thread started for segment 4
[19:15:07] mask filter thread started for segment 5
[19:15:07] mask filter thread started for segment 6
[19:15:07] mask filter thread started for segment 7
[19:15:07] mask erode thread started for segment 0
[19:15:07] mask erode thread started for segment 1
[19:15:07] mask erode thread started for segment 2
[19:15:07] mask erode thread started for segment 3
[19:15:07] mask erode thread started for segment 4
[19:15:07] mask erode thread started for segment 5
[19:15:07] mask erode thread started for segment 6
[19:15:07] mask erode thread started for segment 7
[19:15:07] mask dilate thread started for segment 0
[19:15:07] mask dilate thread started for segment 1
[19:15:07] mask dilate thread started for segment 2
[19:15:07] mask dilate thread started for segment 3
[19:15:07] mask dilate thread started for segment 5
[19:15:07] mask dilate thread started for segment 4
[19:15:07] mask dilate thread started for segment 6
[19:15:07] mask dilate thread started for segment 7
[19:15:07] yadif thread started for segment 0
[19:15:07] yadif thread started for segment 1
[19:15:07] yadif thread started for segment 2
[19:15:07] yadif thread started for segment 4
[19:15:07] yadif thread started for segment 3
[19:15:07] yadif thread started for segment 5
[19:15:07] yadif thread started for segment 6
[19:15:07] yadif thread started for segment 7
[19:15:07] work: only 1 chapter, disabling chapter markers
[19:15:07] job configuration:
[19:15:07]  * source
[19:15:07]    + /Users/bender/Downloads/big_buck_bunny_720p_surround.avi
[19:15:07]    + title 1, chapter(s) 1 to 1
[19:15:07]    + container: avi
[19:15:07]    + data rate: 4456 kbps
[19:15:07]  * destination
[19:15:07]    + /Users/bender/Movies/big_buck_bunny_720p_surround_VTB.mkv
[19:15:07]    + container: Matroska (libavformat)
[19:15:07]  * video track
[19:15:07]    + decoder: mpeg4
[19:15:07]      + bitrate 4001 kbps
[19:15:07]    + filters
[19:15:07]      + 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)
[19:15:07]      + Decomb (mode=39)
[19:15:07]      + Framerate Shaper (mode=2:rate=27000000/900000)
[19:15:07]        + frame rate: 24.000 fps -> peak rate limited to 30.000 fps
[19:15:07]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[19:15:07]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720
[19:15:07]    + Output geometry
[19:15:07]      + storage dimensions: 1280 x 720
[19:15:07]      + pixel aspect ratio: 1 : 1
[19:15:07]      + display dimensions: 1280 x 720
[19:15:07]    + encoder: H.265 (libavcodec)
[19:15:07]      + preset:  default
[19:15:07]      + profile: main
[19:15:07]      + bitrate: 2500 kbps, pass: 0
[19:15:07]      + color profile: 1-1-1
[19:15:07]  * audio track 1
[19:15:07]    + decoder: Unknown (AC3) (5.1 ch) (448 kbps) (track 1, id 0x1)
[19:15:07]      + bitrate: 448 kbps, samplerate: 48000 Hz
[19:15:07]    + mixdown: 5.1 Channels
[19:15:07]    + dither: triangular
[19:15:07]    + encoder: AAC (Apple AudioToolbox)
[19:15:07]      + bitrate: 160 kbps, samplerate: 48000 Hz
[19:15:07] sync: expecting 14314 video frames
[19:15:07] encavcodecInit: H.265 (VideoToolbox)
[19:15:07] encavcodec: encoding with stored aspect 1/1
[19:15:07] sync: first pts video is 0
[19:15:07] sync: "Kapitel 1" (1) at frame 1 time 0
[19:15:07] sync: first pts audio 0x1 is 0
[19:20:28] reader: done. 1 scr changes
[19:20:31] work: average encoding speed for job is 44.379517 fps
[19:20:31] comb detect: heavy 9 | light 183 | uncombed 14123 | total 14315
[19:20:31] decomb: deinterlaced 9 | blended 183 | unfiltered 14123 | total 14315
[19:20:31] vfr: 14315 frames output, 0 dropped and 0 duped for CFR/PFR
[19:20:31] vfr: lost time: 0 (0 frames)
[19:20:31] vfr: gained time: 0 (0 frames) (0 not accounted for)
[19:20:31] ac3-decoder done: 18640 frames, 0 decoder errors
[19:20:31] mpeg4-decoder done: 14315 frames, 0 decoder errors
[19:20:31] sync: got 14315 frames, 14314 expected
[19:20:31] sync: framerate min 24.000 fps, max 24.006 fps, avg 24.000 fps
[19:20:31] mux: track 0, 14315 frames, 190259534 bytes, 2551.50 kbps, fifo 2048
[19:20:31] mux: track 1, 27963 frames, 12281755 bytes, 164.71 kbps, fifo 4096
[19:20:31] libhb: work result = 0
Encode on MacPro using x265, CBR 2500 kbps:
appr. 16 fps

Code: Select all

HandBrake Activity Log for Session: 2019-03-08T17:04:08Z
Handbrake Version: 20190303180224-a62bd12-master (2019030401)
big_buck_bunny_720p_surround_constant_quality.mkv
Preset: H.265 MKV 720p30 (Modifiziert)
[18:04:08] macgui: QueueCore work done
[18:04:08] macgui: QueueCore scanning specifically for title: 1
[18:04:08] CPU: Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz
[18:04:08]  - Intel microarchitecture Ivy Bridge
[18:04:08]  - logical processor count: 8
[18:04:08] hb_scan: path=/Users/arzt/Downloads/big_buck_bunny_720p_surround.avi, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/arzt/Downloads/big_buck_bunny_720p_surround.avi
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[18:04:08] 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
[18:04:08] dvd: not a dvd - trying as a stream/file instead
Input #0, avi, from '/Users/arzt/Downloads/big_buck_bunny_720p_surround.avi':
  Metadata:
    encoder         : AVI-Mux GUI 1.17.7, Aug  8 2006  20:59:17
    JUNK            : 
  Duration: 00:09:56.46, start: 0.000000, bitrate: 4456 kb/s
    Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 4001 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s
    Metadata:
      title           : BBB-Master
[18:04:08] scan: decoding previews for title 1
[18:04:08] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 Unknown (AC3) (5.1 ch) (448 kbps)
[18:04:09] scan: 10 previews, 1280x720, 24.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[18:04:09] libhb: scan thread found 1 valid title(s)
[18:04:09] macgui: QueueCore scan done
[18:04:09] 1 job(s) to process
[18:04:09] starting job
[18:04:09] decomb filter thread started for segment 0
[18:04:09] decomb filter thread started for segment 1
[18:04:09] decomb filter thread started for segment 2
[18:04:09] decomb filter thread started for segment 3
[18:04:09] decomb filter thread started for segment 4
[18:04:09] decomb filter thread started for segment 5
[18:04:09] decomb filter thread started for segment 6
[18:04:09] decomb filter thread started for segment 7
[18:04:09] decomb check thread started for segment 0
[18:04:09] decomb check thread started for segment 1
[18:04:09] decomb check thread started for segment 2
[18:04:09] decomb check thread started for segment 3
[18:04:09] decomb check thread started for segment 4
[18:04:09] decomb check thread started for segment 5
[18:04:09] decomb check thread started for segment 6
[18:04:09] decomb check thread started for segment 7
[18:04:09] mask filter thread started for segment 0
[18:04:09] mask filter thread started for segment 1
[18:04:09] mask filter thread started for segment 2
[18:04:09] mask filter thread started for segment 3
[18:04:09] mask filter thread started for segment 4
[18:04:09] mask filter thread started for segment 5
[18:04:09] mask filter thread started for segment 6
[18:04:09] mask filter thread started for segment 7
[18:04:09] mask erode thread started for segment 0
[18:04:09] mask erode thread started for segment 1
[18:04:09] mask erode thread started for segment 2
[18:04:09] mask erode thread started for segment 3
[18:04:09] mask erode thread started for segment 4
[18:04:09] mask erode thread started for segment 5
[18:04:09] mask erode thread started for segment 6
[18:04:09] mask erode thread started for segment 7
[18:04:09] mask dilate thread started for segment 0
[18:04:09] mask dilate thread started for segment 1
[18:04:09] mask dilate thread started for segment 2
[18:04:09] mask dilate thread started for segment 3
[18:04:09] mask dilate thread started for segment 4
[18:04:09] mask dilate thread started for segment 5
[18:04:09] mask dilate thread started for segment 6
[18:04:09] mask dilate thread started for segment 7
[18:04:09] yadif thread started for segment 0
[18:04:09] yadif thread started for segment 1
[18:04:09] yadif thread started for segment 2
[18:04:09] yadif thread started for segment 3
[18:04:09] yadif thread started for segment 4
[18:04:09] macgui: QueueCore started encoding big_buck_bunny_720p_surround_constant_quality.mkv
[18:04:09] yadif thread started for segment 5
[18:04:09] yadif thread started for segment 6
[18:04:09] macgui: QueueCore with preset H.265 MKV 720p30 (Modifiziert)
[18:04:09] yadif thread started for segment 7
[18:04:09] work: only 1 chapter, disabling chapter markers
[18:04:09] job configuration:
[18:04:09]  * source
[18:04:09]    + /Users/arzt/Downloads/big_buck_bunny_720p_surround.avi
[18:04:09]    + title 1, chapter(s) 1 to 1
[18:04:09]    + container: avi
[18:04:09]    + data rate: 4456 kbps
[18:04:09]  * destination
[18:04:09]    + /Users/arzt/Movies/konvertiert/big_buck_bunny_720p_surround_constant_quality.mkv
[18:04:09]    + container: Matroska (libavformat)
[18:04:09]  * video track
[18:04:09]    + decoder: mpeg4
[18:04:09]      + bitrate 4001 kbps
[18:04:09]    + filters
[18:04:09]      + 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)
[18:04:09]      + Decomb (mode=39)
[18:04:09]      + Framerate Shaper (mode=2:rate=27000000/900000)
[18:04:09]        + frame rate: 24.000 fps -> peak rate limited to 30.000 fps
[18:04:09]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[18:04:09]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720
[18:04:09]    + Output geometry
[18:04:09]      + storage dimensions: 1280 x 720
[18:04:09]      + pixel aspect ratio: 1 : 1
[18:04:09]      + display dimensions: 1280 x 720
[18:04:09]    + encoder: H.265 (libx265)
[18:04:09]      + preset:  slow
[18:04:09]      + options: strong-intra-smoothing=0:rect=0
[18:04:09]      + profile: main
[18:04:09]      + quality: 21.00 (RF)
[18:04:09]      + color profile: 1-1-1
[18:04:09]  * audio track 1
[18:04:09]    + decoder: Unknown (AC3) (5.1 ch) (448 kbps) (track 1, id 0x1)
[18:04:09]      + bitrate: 448 kbps, samplerate: 48000 Hz
[18:04:09]    + mixdown: 5.1 Channels
[18:04:09]    + dither: triangular
[18:04:09]    + encoder: AAC (Apple AudioToolbox)
[18:04:09]      + bitrate: 160 kbps, samplerate: 48000 Hz
[18:04:09] sync: expecting 14314 video frames
x265 [info]: HEVC encoder version 3.0
x265 [info]: build info [Mac OS X][clang 10.0.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [info]: Main profile, Level-3.1 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(12 rows)
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         : star / 57 / 3 / 3
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 25 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 4 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-21.0 / 0.60
x265 [info]: tools: limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00 rskip
x265 [info]: tools: signhide tmvp lslices=4 deblock sao
[18:04:09] sync: first pts video is 0
[18:04:09] sync: "Kapitel 1" (1) at frame 1 time 0
[18:04:09] sync: first pts audio 0x1 is 0
[18:19:04] reader: done. 1 scr changes
[18:19:10] work: average encoding speed for job is 15.921158 fps
[18:19:10] comb detect: heavy 9 | light 183 | uncombed 14123 | total 14315
[18:19:10] decomb: deinterlaced 9 | blended 183 | unfiltered 14123 | total 14315
[18:19:10] vfr: 14315 frames output, 0 dropped and 0 duped for CFR/PFR
[18:19:10] vfr: lost time: 0 (0 frames)
[18:19:10] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:19:10] ac3-decoder done: 18640 frames, 0 decoder errors
[18:19:10] mpeg4-decoder done: 14315 frames, 0 decoder errors
[18:19:10] sync: got 14315 frames, 14314 expected
[18:19:10] sync: framerate min 24.000 fps, max 24.006 fps, avg 24.000 fps
x265 [info]: frame I:    152, Avg QP:16.56  kb/s: 15235.90
x265 [info]: frame P:   6672, Avg QP:19.93  kb/s: 3198.39 
x265 [info]: frame B:   7491, Avg QP:27.50  kb/s: 472.54  
x265 [info]: Weighted P-Frames: Y:2.2% UV:1.3%
x265 [info]: consecutive B-frames: 54.9% 10.2% 10.9% 18.4% 5.6% 

encoded 14315 frames in 901.42s (15.88 fps), 1899.78 kb/s, Avg QP:23.86
[18:19:10] mux: track 0, 14315 frames, 141699378 bytes, 1900.28 kbps, fifo 2048
[18:19:10] mux: track 1, 27963 frames, 12281752 bytes, 164.71 kbps, fifo 4096
[18:19:10] libhb: work result = 0
Encode on MacPro using x265, VBR, Quality 21:
appr. 14fps

Code: Select all

HandBrake Activity Log for Session: 2019-03-08T16:46:52Z
Handbrake Version: 20190303180224-a62bd12-master (2019030401)
big_buck_bunny_720p_surround.mkv
Preset: H.265 MKV 720p30 (Modifiziert)
[17:46:52] macgui: QueueCore prevented sleep
[17:46:52] macgui: QueueCore scanning specifically for title: 1
[17:46:52] CPU: Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz
[17:46:52]  - Intel microarchitecture Ivy Bridge
[17:46:52]  - logical processor count: 8
[17:46:52] hb_scan: path=/Users/arzt/Downloads/big_buck_bunny_720p_surround.avi, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/arzt/Downloads/big_buck_bunny_720p_surround.avi
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[17:46:52] 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
[17:46:52] dvd: not a dvd - trying as a stream/file instead
Input #0, avi, from '/Users/arzt/Downloads/big_buck_bunny_720p_surround.avi':
  Metadata:
    encoder         : AVI-Mux GUI 1.17.7, Aug  8 2006  20:59:17
    JUNK            : 
  Duration: 00:09:56.46, start: 0.000000, bitrate: 4456 kb/s
    Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 4001 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s
    Metadata:
      title           : BBB-Master
[17:46:52] scan: decoding previews for title 1
[17:46:52] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 Unknown (AC3) (5.1 ch) (448 kbps)
[17:46:52] scan: 10 previews, 1280x720, 24.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[17:46:52] libhb: scan thread found 1 valid title(s)
[17:46:52] macgui: QueueCore scan done
[17:46:52] 1 job(s) to process
[17:46:52] starting job
[17:46:52] decomb filter thread started for segment 0
[17:46:52] decomb filter thread started for segment 1
[17:46:52] decomb filter thread started for segment 2
[17:46:52] macgui: QueueCore started encoding big_buck_bunny_720p_surround.mkv
[17:46:52] decomb filter thread started for segment 4
[17:46:52] decomb filter thread started for segment 3
[17:46:52] decomb filter thread started for segment 5
[17:46:52] macgui: QueueCore with preset H.265 MKV 720p30 (Modifiziert)
[17:46:52] decomb filter thread started for segment 6
[17:46:52] decomb filter thread started for segment 7
[17:46:52] decomb check thread started for segment 0
[17:46:52] decomb check thread started for segment 1
[17:46:52] decomb check thread started for segment 2
[17:46:52] decomb check thread started for segment 3
[17:46:52] decomb check thread started for segment 4
[17:46:52] decomb check thread started for segment 5
[17:46:52] decomb check thread started for segment 6
[17:46:52] decomb check thread started for segment 7
[17:46:52] mask filter thread started for segment 0
[17:46:52] mask filter thread started for segment 1
[17:46:52] mask filter thread started for segment 2
[17:46:52] mask filter thread started for segment 3
[17:46:52] mask filter thread started for segment 4
[17:46:52] mask filter thread started for segment 5
[17:46:52] mask filter thread started for segment 6
[17:46:52] mask filter thread started for segment 7
[17:46:52] mask erode thread started for segment 0
[17:46:52] mask erode thread started for segment 1
[17:46:52] mask erode thread started for segment 2
[17:46:52] mask erode thread started for segment 3
[17:46:52] mask erode thread started for segment 4
[17:46:52] mask erode thread started for segment 5
[17:46:52] mask erode thread started for segment 6
[17:46:52] mask erode thread started for segment 7
[17:46:52] mask dilate thread started for segment 0
[17:46:52] mask dilate thread started for segment 2
[17:46:52] mask dilate thread started for segment 1
[17:46:52] mask dilate thread started for segment 3
[17:46:52] mask dilate thread started for segment 4
[17:46:52] mask dilate thread started for segment 5
[17:46:52] mask dilate thread started for segment 6
[17:46:52] mask dilate thread started for segment 7
[17:46:52] yadif thread started for segment 0
[17:46:52] yadif thread started for segment 1
[17:46:52] yadif thread started for segment 2
[17:46:52] yadif thread started for segment 3
[17:46:52] yadif thread started for segment 4
[17:46:52] yadif thread started for segment 5
[17:46:52] yadif thread started for segment 6
[17:46:52] yadif thread started for segment 7
[17:46:52] work: only 1 chapter, disabling chapter markers
[17:46:52] job configuration:
[17:46:52]  * source
[17:46:52]    + /Users/arzt/Downloads/big_buck_bunny_720p_surround.avi
[17:46:52]    + title 1, chapter(s) 1 to 1
[17:46:52]    + container: avi
[17:46:52]    + data rate: 4456 kbps
[17:46:52]  * destination
[17:46:52]    + /Users/arzt/Movies/konvertiert/big_buck_bunny_720p_surround.mkv
[17:46:52]    + container: Matroska (libavformat)
[17:46:52]  * video track
[17:46:52]    + decoder: mpeg4
[17:46:52]      + bitrate 4001 kbps
[17:46:52]    + filters
[17:46:52]      + 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)
[17:46:52]      + Decomb (mode=39)
[17:46:52]      + Framerate Shaper (mode=2:rate=27000000/900000)
[17:46:52]        + frame rate: 24.000 fps -> peak rate limited to 30.000 fps
[17:46:52]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[17:46:52]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720
[17:46:52]    + Output geometry
[17:46:52]      + storage dimensions: 1280 x 720
[17:46:52]      + pixel aspect ratio: 1 : 1
[17:46:52]      + display dimensions: 1280 x 720
[17:46:52]    + encoder: H.265 (libx265)
[17:46:52]      + preset:  slow
[17:46:52]      + options: strong-intra-smoothing=0:rect=0
[17:46:52]      + profile: main
[17:46:52]      + bitrate: 2500 kbps, pass: 0
[17:46:52]      + color profile: 1-1-1
[17:46:52]  * audio track 1
[17:46:52]    + decoder: Unknown (AC3) (5.1 ch) (448 kbps) (track 1, id 0x1)
[17:46:52]      + bitrate: 448 kbps, samplerate: 48000 Hz
[17:46:52]    + mixdown: 5.1 Channels
[17:46:52]    + dither: triangular
[17:46:52]    + encoder: AAC (Apple AudioToolbox)
[17:46:52]      + bitrate: 160 kbps, samplerate: 48000 Hz
[17:46:52] sync: expecting 14314 video frames
x265 [info]: HEVC encoder version 3.0
x265 [info]: build info [Mac OS X][clang 10.0.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [info]: Main profile, Level-3.1 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(12 rows)
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         : star / 57 / 3 / 3
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 25 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 4 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : ABR-2500 kbps / 0.60
x265 [info]: tools: limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00 rskip
x265 [info]: tools: signhide tmvp lslices=4 deblock sao
[17:46:52] sync: first pts video is 0
[17:46:52] sync: "Kapitel 1" (1) at frame 1 time 0
[17:46:52] sync: first pts audio 0x1 is 0
[18:04:00] reader: done. 1 scr changes
[18:04:08] work: average encoding speed for job is 13.871264 fps
[18:04:08] comb detect: heavy 9 | light 183 | uncombed 14123 | total 14315
[18:04:08] decomb: deinterlaced 9 | blended 183 | unfiltered 14123 | total 14315
[18:04:08] vfr: 14315 frames output, 0 dropped and 0 duped for CFR/PFR
[18:04:08] vfr: lost time: 0 (0 frames)
[18:04:08] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:04:08] ac3-decoder done: 18640 frames, 0 decoder errors
[18:04:08] mpeg4-decoder done: 14315 frames, 0 decoder errors
[18:04:08] sync: got 14315 frames, 14314 expected
[18:04:08] sync: framerate min 24.000 fps, max 24.006 fps, avg 24.000 fps
x265 [info]: frame I:    152, Avg QP:13.58  kb/s: 19331.98
x265 [info]: frame P:   6672, Avg QP:17.24  kb/s: 4079.12 
x265 [info]: frame B:   7491, Avg QP:24.50  kb/s: 708.99  
x265 [info]: Weighted P-Frames: Y:2.2% UV:1.3%
x265 [info]: consecutive B-frames: 54.9% 10.2% 10.9% 18.4% 5.6% 

encoded 14315 frames in 1035.54s (13.82 fps), 2477.50 kb/s, Avg QP:21.00
[18:04:08] mux: track 0, 14315 frames, 184772742 bytes, 2477.92 kbps, fifo 2048
[18:04:08] mux: track 1, 27963 frames, 12281752 bytes, 164.71 kbps, fifo 4096
[18:04:08] libhb: work result = 0
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Videotoolbox option not available

Post by mduell »

Code: Select all

[18:04:09]      + preset:  slow
Pick a faster encoder preset.

Also decomb filtering is unnecessary with 720p source material, so you can disable that for a little speed.

Also your "quality 21" encode is not, it's a 2500kbps target. Classic example of why logs are more useful than user claims.
stbender
Posts: 9
Joined: Thu Mar 07, 2019 6:50 pm

Re: Videotoolbox option not available

Post by stbender »

mduell wrote: Fri Mar 08, 2019 6:44 pm Also your "quality 21" encode is not, it's a 2500kbps target. Classic example of why logs are more useful than user claims.
Well, as you can see in this screenshot the encoder setting is set to VBR with quality 21:
Image
https://imgur.com/ssStoGd
Or is that setting just not applied correctly?
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Videotoolbox option not available

Post by mduell »

That's not the encode that log is for.
stbender
Posts: 9
Joined: Thu Mar 07, 2019 6:50 pm

Re: Videotoolbox option not available

Post by stbender »

Hi,
I double checked:
The job with the out file name ending with "constant quality" was _definility_ configured to VBR with Q=21. I re-opened the finished job from the queue und I can confirm this setting.
However, I agree that the 2 logs of the MacPro jobs seem to be "flipped" regarding the encoder settings. I am confused about this, too. Maybe a bug?
I only did those 2 encodings of that file, there are only those 2 log files in the log folder.

However, I want to point to the main question again: Why is a constant bitrate encoding _much_ faster on the MacBook Pro just because using the VTB option? Is that possible? I always thought the MacPro is a high speed machine, now it is way slower than the GPU of a mobile device??
Are there other "hidden" differences in the encoder options that can explain it?
Thank you!
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Videotoolbox option not available

Post by Ritsuka »

Set x265 to a faster preset until it's as fast as the hardware encoder in your other Mac.

The hardware encoder is a completely different encoder implemented as an asic in the CPU, it's no just "another" option.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Videotoolbox option not available

Post by mduell »

stbender wrote: Sat Mar 09, 2019 6:49 amHowever, I want to point to the main question again: Why is a constant bitrate encoding _much_ faster on the MacBook Pro just because using the VTB option? Is that possible? I always thought the MacPro is a high speed machine, now it is way slower than the GPU of a mobile device??
You picked a slow setting on a high efficiency software encoder and are comparing to a low efficiency hardware encoder. It's completely apples and oranges.
stbender
Posts: 9
Joined: Thu Mar 07, 2019 6:50 pm

Re: Videotoolbox option not available

Post by stbender »

Hi again,

thank you again for the answers.

I was curious how the subjective quality of the renedring results is, so I compared the files of the software encoder (MacPro) and the "low efficiency hardware encoder" (MacBook Pro):
https://imgur.com/NikQfyD
To me it seems there's no difference, the file size also is quite the same.
So in my eyes it makes no sense waiting hours more for the MacPro to finish encoding a video when the MacBookPro does the same job much faster.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Videotoolbox option not available

Post by mduell »

1) Stills is not a terribly useful way to compare video encodes.

2) Those aren't even the same frame.

3) There's a non-trivial chance your current bitrate/quality target is higher than you actually care about, and you could have the same result with an even smaller file size by adjusting appropriately.
stbender
Posts: 9
Joined: Thu Mar 07, 2019 6:50 pm

Re: Videotoolbox option not available

Post by stbender »

Of cause I compared the playing videos side by side. The stills are only a sample documentation to illustrate my impression of quality. I thought this might be helpful to other users.
I know the frames are not perfectly the same, however in this scene 95% of the image does not move, just the butterfly.

I did not find out a way to jump to a specific frame in VLC - can you tell how to do this?
How would you compare video quality? Is there a way to "measure" artefacts?
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Videotoolbox option not available

Post by mduell »

I'm not aware of any way to jump to a specific frame in VLC.

I'd compared video quality by watching the videos, side by side or back to back.

You can measure video quality in a variety of objective ways, but none of them really take a psychovisual model into account.
marc.e.marc
Posts: 3
Joined: Sun Nov 23, 2014 2:24 am

Re: Videotoolbox option not available

Post by marc.e.marc »

So, when the new HandBrakeCLI came out (handbrake 1.2.2), I started using the vt_h265 hardware compression. I didn’t notice at first but then later found all the compressed videos very pixellated and not viewable except at like tiny screens. So then I did some comparisons between the hardware compression (-e vt_h265) and the default software compression (-e x265). Here’s what I found.

I did two video compressions to x265:
1) using software encoding
HandBrakeCLI -i “input.mp4" -o “output.mp4" -f av_mp4 -e x265 -2 -T --all-audio --all-subtitles

Input file: 313.3 MB, 30:15 minutes at 1280 x 720
finished file: 105.2 MB, 30:15 minutes tat 1280 x 720

2) using hardware encoding option (vt_h265) on 2016 MB Pro
HandBrakeCLI -i “input.mp4" -o “output.mp4" -f av_mp4 -e vt_h265 -2 -T --all-audio --all-subtitles

Same input file as above
finished file: 72.6 MB, 30:15 minutes at 1280 x 720

Not sure why but with the vt_h265 option, the file is smaller AND very very very (read not watchable) pixellated. At first, I thought this was the source video. However, I’ve done several (3-4) tests now with different inputs (mkv, mp4, avi, etc.), all seem to be pixellated in the end after hardware compression.

The compression runs about the same speed for software and hardware options. However, running several HandBrakeCLI commands at the same time with software and with hardware options - software is MUCH faster and more scalable.

So my input to the HandBrake team is why is the vt_h265 hardware option producing pixellated outputs that are supposed to be the same resolution as the source while the software compression works fine?
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Videotoolbox option not available

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
Last edited by rollin_eng on Wed Mar 27, 2019 8:31 am, edited 1 time in total.
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Videotoolbox option not available

Post by Ritsuka »

VideoToolbox doesn't support constant quality mode. You have to set a bitrate. I guess the cli lets select constant quality, and then set a random bitrate or whatever.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Videotoolbox option not available

Post by mduell »

The efficiency of the hardware encoders is crap. You're going to need larger files to hit the same quality as x265 produces.
Post Reply