Author Topic: Tutorial: H265/VP9 + FLAC encoding  (Read 5420 times)

0 Members and 1 Guest are viewing this topic.

Offline Rusch69

Tutorial: H265/VP9 + FLAC encoding
« on: April 27, 2015, 09:12:50 PM »
H265/VP9 + FLAC encoding



Information

Currently there‘s two high efficiency codecs, namely H265 & VP9, competing on the market. Here‘s a brief comparison between the two:

H265:
+ Much faster encoding
+ Marginally better efficiency
- Not supported by YouTube (due to licensing costs)

VP9:
+ Supported by YouTube
- Marginally worse efficiency
- Much slower encoding

To make it short: H265 is best used for downloadable videos, while VP9 is the choice for streaming platforms such as YouTube.



Video guide

In the following guide I‘ll showcase how to maintain high quality throughout the workflow and how to use the two aforementioned codecs in a convenient way using Handbrake.
To generate a real world GTAS alike video scenario, I recorded SA at Full HD at 25 FPS and cut/rendered the footage in Vegas. For Vice City you should be using 30 FPS instead.
In order to maintain a higher video bitrate on YouTube, I've included upscaling & frame doubling additionally.

YouTube



Results/Examples

I highly recommend using Google Chrome for YouTube streamings. YouTube locks 4K & 8K with 50/60 FPS for other browsers completely.

Download: 1920x1080, 25 FPS, H265 (19 MBit/s), FLAC, 44.1 kHz, 16 bits
Dropbox

Streaming #1: 3840x2160, 50 FPS, VP9 (71 MBit/s), FLAC, 44.1 kHz, 16 bits
YouTube (upscaled with frame doubling)

Streaming #2: 3840x2160, 50 FPS, VP9 (61 MBit/s), no audio
YouTube (native 4K with frame doubling)



FAQ

Q: What software should I record with?
A: Any lossless capturing software will be fine. I'd recommend Fraps or Dxtory.

Q: What about Shadowplay, ReLive, OBS, XSplit, etc.?
A: Do yourself a favor and don't use them. Their recordings are lossy.

Q: What's a lossy recording?
A: A recording that lost quality due to compression and doesn't equal the original 1:1.

Q: What resolution should I record at?
A: Always go for the highest your hardware can handle.

Q: Can I use/record resolutions higher than my monitor's native?
A: Yes, with so called downsampling.

Q: What aspect ratio should I record at?
A: That's a personal preference, but 16:9 is the standard.

Q: What framerate (FPS) should I record at?
A: 25 for San Andreas, 30 for Vice City.

Q: How to read out media properties?
A: I highly recommend MediaInfo.

Q: What software should I edit in?
A: Use whatever you're most comfortable with.

Q: What should my project settings in the editing software be like?
A: Use your footage's resolution & FPS. Always use a sample rate of 44,1 kHz. Don't stretch pixels and don't use interlacing.

Q: Why are you upscaling the video for the lossless render? Does it increase video quality?
A: It doesn't increase video quality. However, upscaling allows for higher bitrates after YouTube's recompression.

Q: Why is an audio sample rate of 44,1 kHz so important?
A: Anything higher is a waste of disc space. This sample rate will suffer the least from YouTube's recompression.

Q: Why are you doubling the FPS for the YouTube render? Does it increase video quality?
A: It doesn't increase video quality. Frame doubling allows for higher bitrates after YouTube's recompression.

Q: Why aren't you upscaling the downloadable video?
A: There's no quality benefit. Just use the resolution you initially recorded at.

Q: I uploaded my 4K 50/60 FPS video to YouTube. Why doesn't the 4K 50/60 FPS quality option show up?
A: Google Chrome is the only browser allowing YouTube streams at 4K with 50/60 FPS.



If you're having problems or questions, don't hesitate asking!
« Last Edit: November 06, 2017, 02:08:13 AM by Rusch69 »

Offline mrkiet

Re: Tutorial: HandBrake: HEVC/FLAC encoding
« Reply #1 on: April 27, 2015, 09:23:35 PM »
yeah, great  ;D

Offline Artifex

Re: Tutorial: HandBrake: HEVC/FLAC encoding
« Reply #2 on: April 28, 2015, 01:56:20 AM »
Thanks dre!

Offline Daffy

Re: Tutorial: HandBrake: HEVC/FLAC encoding
« Reply #3 on: April 28, 2015, 03:27:27 AM »
Made this one sticky, great tutorial!

Offline J.Mario

Re: Tutorial: HandBrake: HEVC/FLAC encoding
« Reply #4 on: April 28, 2015, 05:03:54 AM »
Nice job!

Offline PK

Re: Tutorial: HandBrake: HEVC/FLAC encoding
« Reply #5 on: January 20, 2017, 11:34:07 AM »
Speedyshare is gone.  :cheersad:

Offline Rusch69

Re: Tutorial: HandBrake: HEVC/FLAC encoding
« Reply #6 on: January 20, 2017, 03:33:50 PM »
I'll give this guide a video update in the next few days. Just forget about the preset, I don't even have it anymore. :lol:

Offline Rusch69

Re: Tutorial: H265/VP9 + FLAC encoding
« Reply #7 on: February 07, 2017, 10:16:51 AM »
Double post. Reworked it entirely now.

Initially I did some voice-over, but I ended up not using it due to too many volume differences. I wanted to fix that, but the Vegas trial expired as time went by. :')
Therefore there's a few weird pauses and useless cursor movements now, but everything should be easy to replicate nonetheless.
I might add some annotations via YouTube later down the road. The order in the video is: Quality check of the source files, project properties, editing, lossless encoding with upscaling, lossy encoding for download and then lossy encoding for YouTube.

Results can be found in the opening post. I also wrote a FAQ, so please read that before asking questions.

AV1 stuff will follow in the next few months, since encoders are a thing already.
« Last Edit: February 07, 2017, 10:50:14 AM by Rusch69 »

Offline PM

Re: Tutorial: H265/VP9 + FLAC encoding
« Reply #8 on: February 07, 2017, 10:39:20 AM »


Tried downsampling to 3840x2160, screen appears black on a 1080p monitor. (770gtx)
Any tips or am I fucked?

E: Adjusted the timing a bit and it works now. ^^
« Last Edit: February 07, 2017, 10:55:27 AM by PM »

Offline PK

Re: Tutorial: H265/VP9 + FLAC encoding
« Reply #9 on: March 03, 2017, 07:11:18 AM »
I use Fraps version 3.5.5, by the way. Versions don't make much of a difference or?

Offline Rusch69

Re: Tutorial: H265/VP9 + FLAC encoding
« Reply #10 on: March 03, 2017, 10:06:17 AM »
The version doesn't matter at all.

Offline PK

Re: Tutorial: H265/VP9 + FLAC encoding
« Reply #11 on: March 05, 2017, 11:11:11 AM »
What version of Vegas is compatible for a 4K render? Since I'm using Vegas 9, it only allows me to render a maximum of 2061 (width/height).

Offline Rusch69

Re: Tutorial: H265/VP9 + FLAC encoding
« Reply #12 on: March 05, 2017, 05:48:04 PM »
I never kept track of their updates, but according to Wikipedia, version 9 supported it already:
https://en.wikipedia.org/wiki/Vegas_Pro#Vegas_Pro_9.0

Offline PK

Re: Tutorial: H265/VP9 + FLAC encoding
« Reply #13 on: March 06, 2017, 05:20:07 AM »
I never kept track of their updates, but according to Wikipedia, version 9 supported it already:
https://en.wikipedia.org/wiki/Vegas_Pro#Vegas_Pro_9.0

If I enter a value higher than 2061 pixels, it'll just revert it back to 2061. I think they're mistaken.

 

anything