I'm an amateur. I hope documenting and discussing my research will help others. And thank you to everyone on the Vegas and Creative COW forums for the information they've provided over the years -- information that helped an amateur like me understand any of this.
I want to use Handbrake's ConstantQuality feature to render my Vegas Movie Studio (VMS) 1080p 60fps projects to H.264.
- x264 is the H.264 encoder that Handbrake uses
- CRF is x264's term: Constant Rate Factor
- ConstantQuality is Handbrake's term for an x264/CRF encode
Following this excellent guide's "Better" instructions:
I set out to use VMS to render an intermediate DNxHD file for use in Handbrake. I downloaded the latest version from here:
At first (before subsequent posts in this thread), I thought DNxHD didn't support 1080p 60fps. It turns out that 1080p/59.94 (and true 60) are supported resolutions:
However, they are not available to select from the DNxHD Configure screen's Resolutions dropdown. Fortunately, selecting another available frame rate from the dropdown works because it's overridden by the Frame rate setting on the Video tab itself. See my second post in this thread and this discussion:
Before I realized I could produce a DNxHD 1080p60 intermediate, I tested another Avid codec, DNxHR. The newer DNxHR codec is resolution independent:
But the resulting 1080p60 render isn't Handbrake-compatible. I tried. Handbrake cannot successfully scan it as a source.
I also tested other intermediate formats mentioned in this thread and, additionally, the HuffYUV and Ut codecs I've read about elsewhere:
They are all accessible under Video for Windows and are all truly lossless except for CineForm:
- Uncompressed - Handbrake-compatible but 21.8 GB per minute file size in my test (see below). I'd need 654 GB for a 30-minute file. I don't have that kind of space.
-
Lagarith - Handbrake-compatible
- You must install: https://lags.leetcode.net/codec.html
- Sony YUV - Handbrake-compatible. 14.6 GB/min in my test (see below). Maybe I have that kind of space if I use a dedicated hard drive for intermediate rendering.
- Sony MXF - Available in Vegas Pro only, not VMS
- CineForm - Not handbrake-compatible
- Even though it appears in the Video Format dropdown, it is not installed with VMS. You must install: http://shop.gopro.com/softwareandapp/gopro-app-%7C-desktop/GoPro-Desktop-App.html
-
HuffYUV
- You must install: http://www.videohelp.com/software/HuffYUV
- Versions:
- 2.1.1 - Handbrake-compatible
- MT - MultiThreading support. Did not install properly. Stable?
- 2.2 - Not stable. Did not test.
-
Ut - Handbrake-compatible
- You must install: http://www.videohelp.com/software/Ut-Video-Codec-Suite
So my non-DNxHD intermediate options are, from smallest to largest file size:
- Lagarith
- Ut
- HuffYUV 2.1.1
- Sony YUV
and from fastest to slowest render times in my tests (see below):
- Lagarith
- Ut
- Sony YUV
- HuffYUV 2.1.1
So my best non-DNxHD choice is Lagarith, right? From a mathematical efficiency perspective, yes. But watching the subsequent Handbrake H.264 renders in VLC and WMP, the best contrast comes from the DNxHD and Sony YUV intermediates, with blacks as deep as the source. The other codecs produce a slightly washed-out look.
Bottom line: DNxHD offers the best combination of quality and file size, though with a longer rendering time than the other options. If you don't want to use DNxHD and quality is your first priority, find the hard drive space in order to use the Sony YUV intermediate. Otherwise, if your Lagarith-sourced Handbrake H.264 renders look as good as your Sony YUV-sourced Handbrake H.264 renders, use Lagarith. It produces smaller files and renders even faster. Ut is a close second to Lagarith, efficiency-wise.
Another option is frameserving. Frameserving feeds video to a non-Vegas encoder directly from Vegas, no intermediate render required. Two methods to frameserve to the x264 encoder that Handbrake uses:
-
http://www.bubblevision.com/underwater-video/Vegas-YouTube-Vimeo.htm
- Too complicated/complex for me
-
http://www.vegasvideo.de/vegas-2-handbrake-en
- Scripting requires Vegas Pro
My Tests
Dell XPS 8300
Intel Core i7-2600 CPU @ 3.40 GHz
- 4 cores
- 8 logical processors
8.00 GM RAM
Windows 7 64-bit
AMD Radeon HD 6700 Series
VMS set to use the AMD:
Notes
When you install a new codec, you must restart VMS for it to appear in the Video Format dropdown.
I thought rendering to my original source's format would be a good intermediate. But my original source is AVCHD and, I've subsequently learned, AVCHD is H.264. So I would have been rendering an H.264 intermediate to render an H.264 in Handbrake -- two generations of lossy compression.
If the ultimate destination is YouTube/Vimeo, why not just upload the intermediate since YouTube/Vimeo are going to re-encode whatever you upload anyway? File size. Even if YouTube/Vimeo accept the various intermediates, and I don't know that they do, uploading files of that size is restrictive or impossible.
- "The maximum file size you can upload to YouTube is 128GB." --https://support.google.com/youtube/answer/71673?hl=en
- Vimeo storage space per week:
- Basic - 500 MB
- Plus - 5 GB
- Pro - 20 GB