Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mattspace

macrumors 68040
Original poster
Jun 5, 2013
3,542
3,094
Australia
Every now and then I come back to Handbrake to try to get some of my DVD rips to a single file so they're able to be Airplayed around the house (Yes, I tried Airplaying the VIDEO_TS files in Infuse, but Infuse is a garbagefire Catalyst app so I got a refund of the lifetime subscription from Apple), and I'm trying to figure out what settings I should be seeing in Handbrake to hardware encode using the dual W5700s, which I assume has got to be more performant than the T1.

What I'm assuming is CPU-only encoding is running at about 35 fps.

Everything but the Videotoolbox options are greyed out in Hardware presets.

Where this comes back to, is I'm trying to find the best option to archive these DVD backups, so that I'm not stuck down a dead-end compression choice.
 
VideoToolbox is the unified hardware video encoding framework on macOS - It sits on top of your GPU's hardware encoders and is generally the fastest option, though not necessarily the best for quality (software encoding is much more useful for that).
 
VideoToolbox is the unified hardware video encoding framework on macOS - It sits on top of your GPU's hardware encoders and is generally the fastest option, though not necessarily the best for quality (software encoding is much more useful for that).

Ahh, I was under the impression that VideoToolbox was T1-only.

I'm noticing it disables the Constant Quality slider, and you have only the average bitrate option.
 
Ahh, I was under the impression that VideoToolbox was T1-only.

Also note that if you have a MP7,1 (Mac Pro 2019), you have a T2 chip not a T1. Then the T2 chip does relatively well at encoding H.264 as discussed in this thread:

While the discussion started about Apple Silicon, it was in comparison to what the poster was experiencing relative to their Intel-based Mac. Basically T2 Macs remain surprisingly competitive for some things even after all these years because the T2 includes a lot of the functions from the Apple Silicon Ax chips and macOS seamlessly invokes those when it can.

That said, 35 fps sounds a little low for your hardware based on what others have gotten from lower-end Macs with T2 chips. What I have noticed is that these video encoding workflows involve a lot of moving parts with a lot of parameters that have non-linear impact on performance and therefore finding the "right" combination of tools and settings can be a lot of trial and error.

In addition to the above thread, check the documentation

I'm noticing it disables the Constant Quality slider, and you have only the average bitrate option.

This is a limitation of VideoToolbox, as per Galad:
Some info regarding HandBrake (I am the maintainer of the Mac version and the one who added VideoToolbox encoding support):​
- Decoding is always done on the CPU. Hardware decoding is not supported right now.​
- VideoToolbox will automatically select the device with better quality/performance, you can check in ioreg the quality rating of each encoder (VTQualityRating, VTRating keys). It's possible to specify which eGPU to use but this function is not implemented yet.​
- VideoToolbox supports only average bitrate, so that's all HandBrake can let you change.​
- Hardware encoders are a separate ASIC, that could be placed on a GPU, so it's not technically "GPU encoding".​
- Bitrate in the resulting video is quite variable, check with a bitrate viewer.​


In general hardware video encoding has tradeoffs -- especially for archival purposes -- as discussed in this thread:


If you had the time, you might compare encoding the same video on your Mac across these workflows:
-From macOS, Apple VideoToolbox encode at acceptable quality
-From macOS, x264/265 encode (on the CPU, using 6-8 cores) on at visual quality matching the above
-From Windows, AMD VCE encode at visual quality matching above

My guess is that the Apple's VideoToolbox (VTB) is selecting the T2 and will be significantly faster than the other two but the resulting files will be larger for comparable visual quality. AMD VCE will be somewhere in between the software encode and VTB in speed while still generating files substantially larger than the software encode.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.