Page 1 of 1

Codec VP9 and MP4 container

Posted: Mon Jun 05, 2017 11:01 pm
by maximus_lt
Why is it not possible to use the codec VP9 together with the MP4 container in the program ?

1.0.7 Windows 7 x64

Image

Re: Codec VP9 and MP4 container

Posted: Tue Jun 06, 2017 10:32 am
by mduell
MP4 doesn't support stupidity.

Re: Codec VP9 and MP4 container

Posted: Tue Jun 06, 2017 2:03 pm
by Woodstock
MP4 is a rather limited container. It cannot include arbitrary codecs, just the ones it was defined as containing. VP9 is NOT one of them.

Re: Codec VP9 and MP4 container

Posted: Tue Jun 06, 2017 2:27 pm
by Ritsuka
Actually there is an official specs for VP9 in mp4, because someone wanted to use it in mpeg dash streaming. But it's still not a good idea, and HandBrake doesn't support it.

Re: Codec VP9 and MP4 container

Posted: Tue Jun 06, 2017 5:02 pm
by rollin_eng
mduell wrote: Tue Jun 06, 2017 10:32 am MP4 doesn't support stupidity.
But evidently this quote does support it :)

Re: Codec VP9 and MP4 container

Posted: Tue Jun 06, 2017 7:30 pm
by maximus_lt
Thank you friends for the prompt reply. Google break my brain :)
Youtube recommend to encode video into a mp4 container. And they are using the new codec VP9. And we are offered to use the old stuff. Then, on our server, the video is recoded once more and on the output we get a turd :)

Image

Re: Codec VP9 and MP4 container

Posted: Tue Jun 06, 2017 8:58 pm
by Woodstock
If you're encoding for YouTube, the question is, why bother with VP9? They're GOING to recode your video, even if you do. And they have the hardware to do VP9 efficiently.

Send them the highest-quality, least-compressed video you can muster, and hope for the best.

By the way - sending a picture of a foreign-language site doesn't work very well; anyone who can't read it won't be able to copy/paste the text into a translator to see what it says. And the links are to the WebM project, which is VP9 (or VP8) in an MKV container, not MP4.

Re: Codec VP9 and MP4 container

Posted: Fri Jun 09, 2017 2:42 pm
by Ayoross
Compared to the mkv container, mp4 is really lame. It doesn't support PGS subtitles, for instance.

Re: Codec VP9 and MP4 container

Posted: Sun Jun 18, 2017 1:15 am
by maximus_lt
When is the VP9 expected in 4k resolution ?

Re: Codec VP9 and MP4 container

Posted: Sun Jun 18, 2017 11:26 am
by s55
What do you mean? VP9 already supports 4K

Re: Codec VP9 and MP4 container

Posted: Sun Jun 18, 2017 7:42 pm
by maximus_lt
I did not find such a profile.

Image

Re: Codec VP9 and MP4 container

Posted: Sun Jun 18, 2017 7:57 pm
by s55
You can create your own profile. We don't and won't provide presets for every possible scenario. So pick one that's close and adjust to suit your needs and save as a new preset.

Re: Codec VP9 and MP4 container

Posted: Mon Jun 19, 2017 3:56 am
by BradleyS
We will have Vimeo/YouTube presets in HandBrake 1.1.0 and the next nightly build (whenever that will be), including 1440p (2.5K) and 2160p (4K). H.264 in MP4 with high bit rate AAC. YouTube will automatically convert these to VP9 as necessary, and the results look great; I visually tested all of them.

This is the commit for anyone interested: https://github.com/HandBrake/HandBrake/ ... 6a5fa3a389

Re: Codec VP9 and MP4 container

Posted: Mon Jun 19, 2017 5:15 am
by mduell
Why the VideoAvgBitrate target?

Re: Codec VP9 and MP4 container

Posted: Mon Jun 19, 2017 5:23 am
by BradleyS
It roughly corresponds to the expected output at the nominal or fixed resolution. The other official presets were created this way as well, both as a quick visual of what to expect and also so people wanting to switch to 2-pass for some reason have a decent starting point.

Re: Codec VP9 and MP4 container

Posted: Mon Jun 19, 2017 5:24 am
by BradleyS
I should add, since the Production presets do not have a fixed resolution, I based the figures on 1080p30/60. 4K can actually hit 400 Mbit/s on Production Max...

Re: Codec VP9 and MP4 container

Posted: Mon Jun 19, 2017 10:58 am
by maximus_lt
s55 wrote: Sun Jun 18, 2017 7:57 pm You can create your own profile. We don't and won't provide presets for every possible scenario. So pick one that's close and adjust to suit your needs and save as a new preset.
Thanks - I created a profile of VP9 4K. Tell me how to choose the color depth ? The original video has a depth of 10 bits, I need 8.

Re: Codec VP9 and MP4 container

Posted: Mon Jun 19, 2017 11:19 am
by maximus_lt
BradleyS wrote: Mon Jun 19, 2017 3:56 am We will have Vimeo/YouTube presets in HandBrake 1.1.0 and the next nightly build (whenever that will be), including 1440p (2.5K) and 2160p (4K). H.264 in MP4 with high bit rate AAC. YouTube will automatically convert these to VP9 as necessary, and the results look great; I visually tested all of them.

This is the commit for anyone interested: https://github.com/HandBrake/HandBrake/ ... 6a5fa3a389
Image

Re: Codec VP9 and MP4 container

Posted: Mon Jun 19, 2017 4:32 pm
by Woodstock
Were you trying to import the preset to the current version of handbrake, or were you using the nightly build version?

Presets are not guaranteed to be portable across versions.

Re: Codec VP9 and MP4 container

Posted: Mon Jun 19, 2017 4:50 pm
by s55
You can't import that file. It's not a user sharable preset. It's source code

Re: Codec VP9 and MP4 container

Posted: Mon Jun 19, 2017 9:57 pm
by maximus_lt
s55, tell me how to choose the color depth ? The original video has a depth of 10 bits, I need 8.
Woodstock, 1.0.7

Re: Codec VP9 and MP4 container

Posted: Mon Jun 19, 2017 10:00 pm
by s55
You'll get 8 bit output unless you choose a 10bit encoder on the video tab.

Re: Codec VP9 and MP4 container

Posted: Tue Jun 20, 2017 10:13 pm
by maximus_lt
s55 wrote: Mon Jun 19, 2017 10:00 pm You'll get 8 bit output unless you choose a 10bit encoder on the video tab.
Sorry, I did not find this setting in the "Video" tab

Re: Codec VP9 and MP4 container

Posted: Tue Jun 20, 2017 10:23 pm
by Woodstock
Choosing a 10-bit encoder takes some work; it is NOT a menu option in the normal release version.

There are topics here explaining how to obtain the 10-bit versions of the encoder libraries, and how to get 1.0.x to make use of them. If you do not remember going through that, then you will have 8-bit output from handbrake.