Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > VP9 and AV1

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th July 2013, 02:42   #261  |  Link
Nintendo Maniac 64
Registered User
 
Nintendo Maniac 64's Avatar
 
Join Date: Nov 2009
Location: Northeast Ohio
Posts: 447
Quote:
Originally Posted by zerowalker View Post
Probably, would like to see it though, but as there is no decoder to play the videos, it doesnīt really matter at this time.
Chrome doesn't count? :P
Nintendo Maniac 64 is offline   Reply With Quote
Old 12th July 2013, 09:26   #262  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
Whatīs Chrome?

Just kidding, well sure it works, but i wouldnīt actually call it a player;P
zerowalker is offline   Reply With Quote
Old 12th July 2013, 17:16   #263  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
Quote:
Originally Posted by schweinsz View Post
Is there any configuration to use the vp9 to get the max PSNR using the fixed QP coding? I want to do a comparison between the HEVC HM and the vp9 reference software.
I think an unconstrained VBR encode at the same bitrate as a HEVC encode would be a fine initial comparison. Unless you're trying to compare the relative strengths of the codecs without any rate control.

I seem to recall that VP9 defaults to tuning for PSNR.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 13th July 2013, 00:57   #264  |  Link
Rumbah
Registered User
 
Join Date: Mar 2003
Posts: 480
First of all thanks for the compiling help, I just got vpxenc compiled with an up to date MSYS 64 and Yasm.
Quote:
Originally Posted by benwaggoner View Post
Unfortunately, PSNR is probably the worst available objective metric available. I'd like to see 3SSIM or MOVIE at least. I really don't understand why anyone focusing on a real-world codec would spend much time on PSNR.
Are 3SSIM and MOVIE freely available anywhere for HD resolutions?
Quote:
Originally Posted by benwaggoner View Post
I seem to recall that VP9 defaults to tuning for PSNR.
Well, according to the vpxenc command line help you have --tune=psnr,ssim to choose from. If it defaults to any of this I do not know.
Rumbah is offline   Reply With Quote
Old 13th July 2013, 15:55   #265  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
Okay need to ask these, how do you get 2 Passes to work?

If i set passes 2, it will just do the fast first pass.
How can i make it do the second pass?
zerowalker is offline   Reply With Quote
Old 13th July 2013, 16:15   #266  |  Link
Rumbah
Registered User
 
Join Date: Mar 2003
Posts: 480
You need --passes=2 --pass=1 for first pass and --passes=2 --pass=2 for second pass.
Rumbah is offline   Reply With Quote
Old 13th July 2013, 16:17   #267  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
ah, that make sense, thanks.

Okay, well it doesnīt work for me.

Quote:
ffmpeg -i "Z:\Dead Space 2\deadspace2.avs" -f yuv4mpegpipe -| vpxenc --best --cpu-used=0 --threads=0 --profile=0 --lag-in-frames=25 --min-q=0 --max-q=63 --end-usage=vbr --auto-alt-ref=1 --passes=2 --pass=1 --kf-

max-dist=9999 --kf-min-dist=0 --drop-frame=0 --static-thresh=0 --bias-pct=50 --minsection-pct=0 --maxsection-pct=2000 --arnr-maxframes=7 --arnr-strength=5 --arnr-type=3 --sharpness=0 --undershoot-pct=100 --

codec=vp9 --target-bitrate=1000 -o dead.webm -

ffmpeg -i "Z:\Dead Space 2\deadspace2.avs" -f yuv4mpegpipe -| vpxenc --best --cpu-used=0 --threads=0 --profile=0 --lag-in-frames=25 --min-q=0 --max-q=63 --end-usage=vbr --auto-alt-ref=1 --passes=2 --pass=2 --kf-

max-dist=9999 --kf-min-dist=0 --drop-frame=0 --static-thresh=0 --bias-pct=50 --minsection-pct=0 --maxsection-pct=2000 --arnr-maxframes=7 --arnr-strength=5 --arnr-type=3 --sharpness=0 --undershoot-pct=100 --

codec=vp9 --target-bitrate=1000 -o dead.webm -

Last edited by zerowalker; 13th July 2013 at 16:22.
zerowalker is offline   Reply With Quote
Old 13th July 2013, 16:58   #268  |  Link
easyfab
Registered User
 
Join Date: Jan 2002
Posts: 332
And with --fpf=name.ext -> first pass statistics file name ?

and pehraps also -w and -h for the resolution ?
easyfab is offline   Reply With Quote
Old 13th July 2013, 16:58   #269  |  Link
Rumbah
Registered User
 
Join Date: Mar 2003
Posts: 480
I always used --fpf=filename
to give a filename for the first pass statistics file, i don't know if the encoder creates it automatically if you omit it (for both passes, the only difference is pass=1 and pass=2)
Rumbah is offline   Reply With Quote
Old 13th July 2013, 16:59   #270  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
Just read about that command, and that solved it.
Or well, i also skipped the pipeline by just adding the yuv file in the same folder as i encode.

But got it working at last

Itīs still super slow though, would like them to do some optimization to speed it up a bit atleast XD
zerowalker is offline   Reply With Quote
Old 13th July 2013, 17:13   #271  |  Link
Rumbah
Registered User
 
Join Date: Mar 2003
Posts: 480
Well, if you look at the git it changes very fast. If you need a new version compile just say so
Rumbah is offline   Reply With Quote
Old 13th July 2013, 17:20   #272  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
Yeah, i am following it

And am encoding now, using the latest, and itīs still super slow XD

But, when you compile, do you get the an error in the "make" command?
I get it everytime, and i have to rename Libvpx_g.a to Libvpx.a (or well i have to copy it and have both those files). then rerun make to make it work.

Itīs just irritating:S
zerowalker is offline   Reply With Quote
Old 13th July 2013, 17:25   #273  |  Link
Rumbah
Registered User
 
Join Date: Mar 2003
Posts: 480
I use the patch form here:

http://forum.doom9.org/showpost.php?p=1633729&postcount=6

So after the ./configure I use the patch with
Code:
patch Makefile libvpx-makefile.diff
in the libvpx main directory. Then the following make works without a problem.

This is the script I use with libvpx-makefile.diff in the main libvpx directory:
Code:
cd libvpx
git pull
./configure
patch Makefile libvpx-makefile.diff
make
Rumbah is offline   Reply With Quote
Old 13th July 2013, 17:28   #274  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
Ah, think i read about that before, didnīt know how to use it though.

Where can i put the script and use it?
I always write everything from scratch in Mingw?

Also, i use standard mingw, should i use mingw64 or something like that?

EDIT:

Got the script and patch to work, Thanks

Last edited by zerowalker; 13th July 2013 at 17:36.
zerowalker is offline   Reply With Quote
Old 13th July 2013, 17:43   #275  |  Link
Rumbah
Registered User
 
Join Date: Mar 2003
Posts: 480
well, I have used git clone http://git.chromium.org/webm/libvpx.git
in my home folder so it created the libvpx sub folder.

To get a new version of the source just switch in the libvpx main folder with cd libvpx and use git pull to get the latest version.

I copied the libvpx-makefile.diff in that main folder and patch it after the configure with patch Makefile libvpx-makefile.diff.

So just copy the libvpx-makefile.diff into the main libvpx folder.

Then you can create a text file example.sh and if you put it in the main libvpx folder just inset in the text file:
Code:
git pull
./configure
patch Makefile libvpx-makefile.diff
make
Or if you place it anywhere else just insert a "cd to libvpx folder" at the beginning.
Rumbah is offline   Reply With Quote
Old 13th July 2013, 17:45   #276  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
Yeah got it to work, had a bit different folder setup, but it all went well.
Needed to experiment to get Patch working, but now all is well!

Thanks, saves time and frustration
zerowalker is offline   Reply With Quote
Old 13th July 2013, 18:30   #277  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
Does the latest encoder work for you?
For me, it produces like 1 frame that looks good (the first frame, maybe some more), then itīs just artifacts and messed up:S
zerowalker is offline   Reply With Quote
Old 13th July 2013, 20:11   #278  |  Link
easyfab
Registered User
 
Join Date: Jan 2002
Posts: 332
Zerowalker, Rumbah,

Here an example of my little script if it can help you to build vp9 more easily .
In my example, first create a folder build in home and src in build, put libvpx-makefile.diff in the build folder and create a vp9.sh like this :

MY_BUILD=${HOME}/build
cd ${MY_BUILD}/src/
git clone http://git.chromium.org/webm/libvpx.git
cd ${MY_BUILD}/src/libvpx
git pull
patch -p1 < ../../libvpx-makefile.diff
./configure --disable-vp8
make clean && make -j4 && make install
easyfab is offline   Reply With Quote
Old 13th July 2013, 20:12   #279  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
what does the -j4 command do?
zerowalker is offline   Reply With Quote
Old 13th July 2013, 20:15   #280  |  Link
easyfab
Registered User
 
Join Date: Jan 2002
Posts: 332
It use multithread, a lot faster if you have a multi-core processor, I use -j4 but you can also use more like -j8 but it could be more unstable.
easyfab is offline   Reply With Quote
Reply

Tags
google, ngov, vp8, vp9, vpx, webm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 15:36.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.