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 > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 20th August 2012, 07:39   #1  |  Link
bxyhxyh
Registered User
 
Join Date: Dec 2011
Posts: 354
Different Settings in 1st and 2nd pass

If i use

Encode 1
1st pass --preset placebo --bitrate 800
2nd pass --preset fast --bitrate 800
Encode 2
Automated 2 pass --preset fast --bitrate 800

Which encode is better quality? Or they're same?

Last edited by bxyhxyh; 20th August 2012 at 07:50.
bxyhxyh is offline   Reply With Quote
Old 20th August 2012, 17:32   #2  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by bxyhxyh View Post
Encode 1
1st pass --preset placebo --bitrate 800
2nd pass --preset fast --bitrate 800
Despite the fact that "placebo" never gives any noteworthy improvement over "veryslow" (it only is a LOT slower), using slower settings in the first pass of a 2-Pass encode doesn't make much sense. If at all, you would be using faster settings in the first pass and slower settings in the second one! And actually that is what x264 does automatically for you: x264 will overwrite your settings with "fast" settings, when you set "--pass 1" but do not set "--slow-firstpass" too. And it's good that way.

So after all, what you'd want is something like:
Code:
x264.exe --pass 1 --preset veryslow
x264.exe --pass 2 --preset veryslow
Note: We use the identical preset for both passes and let x264 speed-up our settings in the first pass automatically.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 20th August 2012 at 17:37.
LoRd_MuldeR is offline   Reply With Quote
Old 20th August 2012, 17:41   #3  |  Link
bxyhxyh
Registered User
 
Join Date: Dec 2011
Posts: 354
Sorry my english is not so good. Some questions may not clear.

Code:
x264.exe --pass 1 --preset veryslow --bitrate 800
x264.exe --pass 2 --preset veryfast --bitrate 800
Code:
x264.exe --pass 1 --preset veryfast --bitrate 800
x264.exe --pass 2 --preset veryfast --bitrate 800
Now which is better quality.

Normally i just use veryslow for both passes. Just for knowledge If i use better/worse settings in first pass, it affects quality? Or doesn't?

Last edited by bxyhxyh; 20th August 2012 at 17:44.
bxyhxyh is offline   Reply With Quote
Old 20th August 2012, 18:20   #4  |  Link
MasterNobody
Registered User
 
Join Date: Jul 2007
Posts: 552
Code:
x264.exe --pass 1 --preset veryslow --bitrate 800
x264.exe --pass 2 --preset veryfast --bitrate 800
Simply wouldn't work at all (it will error out due different critical options between passes). You need to use same preset for both passes and leave decision how speed up 1st pass to x264.
MasterNobody is offline   Reply With Quote
Old 20th August 2012, 19:01   #5  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Moreover it seems he still tries to slow-down the first pass, compared to the second one - which is the exact opposite of what makes sense.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 20th August 2012, 19:19   #6  |  Link
bxyhxyh
Registered User
 
Join Date: Dec 2011
Posts: 354
Yes, yes, If i slow down the first pass (without --slow-firstpass), Is quality raise?
bxyhxyh is offline   Reply With Quote
Old 20th August 2012, 19:41   #7  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
Not if you do not slow down the second pass too.

In fact it will be slightly lower quality as you are using different settings for the first and second passes.

As LoRd_MuldeR said: If you do not set --slow-firstpass, pass 1 forces "--preset fast" settings.
Asmodian is offline   Reply With Quote
Old 20th August 2012, 20:12   #8  |  Link
detmek
Registered User
 
Join Date: Aug 2009
Posts: 463
Why do you want to slow down first pass and make second pass faster when the main encoding job is done during second pass? The only purpose of first pass is to make rough estimations for second pass. It doesn't make sence to use high quality setting for estimation and use fast, not-so-precise (lower quality) settings for main encoding process. Also:
Quote:
x264.exe --pass 1 --preset veryslow --bitrate 800
x264.exe --pass 2 --preset veryfast --bitrate 800
will not work at all.
detmek is offline   Reply With Quote
Old 20th August 2012, 20:59   #9  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
The output from the first pass will be discarded anyway, so using slower settings in the first pass is pointless

The one and only thing from the first pass that will survive and is going to be re-used is the "stats" file! All settings that don't effect the "stats" can be lowered safely in order to speed up the first pass!

The final video file that you are going to keep is generated only in the second pass. That's why using slower settings in the second pass (and thus faster settings in the first one) does makes sense.

(And, as explained before, all this happens automatically in x264, so you don't need to take care of it. Simply use the same Preset for both passes!)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 20th August 2012 at 21:21.
LoRd_MuldeR is offline   Reply With Quote
Reply

Tags
presets, settings, x264

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 14:34.


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