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 > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th December 2014, 18:49   #1  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,559
2-Pass Encoding, different settings for both passes?

For encoding AviSynth results with x264, what gives best quality is 2-pass encoding. However, processing the output of AviSynth twice would just kill it (double the processing time).

Now I'm thinking... the first pass is to get statistic information about each frame. What takes the most time is the EEDI3, and then the NNEDI3 filters.

Can I do the first pass WITHOUT EEDI3 and NNEDI3 filters with a plain Spline resize, and then use the real settings only for the 2nd pass?

Are there any side-effects to doing this?

Last edited by MysteryX; 24th June 2015 at 06:25.
MysteryX is offline   Reply With Quote
Old 15th December 2014, 18:57   #2  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 1,100
no don't do that, it can have weird and unpredictable results

also, there is really no reason to use twopass unless you absolutely have to hit an exact filesize, and you probably don't, so don't use twopass

if you still really do need twopass and want to avoid running avisynth twice, encode to a lossless intermediary file first

Last edited by TheFluff; 15th December 2014 at 19:00.
TheFluff is offline   Reply With Quote
Old 15th December 2014, 18:58   #3  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,665
How about saving to a lossless file and then encoding with x264?

Edit: TheFluff was quicker
Reel.Deel is offline   Reply With Quote
Old 15th December 2014, 19:11   #4  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,559
Quote:
Originally Posted by Reel.Deel View Post
How about saving to a lossless file and then encoding with x264?
Great idea!

Is 2-pass really worth it? I was thinking I could just use CBR but then one file would go from 35MB to 60MB which is reasonable but then another file would go from 25MB to 108MB which is not. I want to keep the file size in reasonable proportion to the original file because I had hundreds of such videos to re-encode.

Doing it this way might not be that bad on performance though. Most of the time is running through the EEDI3/NEEDI3 filters.

Last edited by MysteryX; 24th June 2015 at 06:24.
MysteryX is offline   Reply With Quote
Old 15th December 2014, 20:09   #5  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
Not CBR but CRF. CBR is basically never a good idea for us home users.

2-pass means the relative quality will vary while the size will be predictable, CRF means the quality will be predictable while the size will not be. You cannot have both and only you can decide if one is worth it over the other for you.

I always use CRF myself but I am targeting a many TB raid array or similar size agnostic storage. I might as well not do the encode if it comes out with bad quality due to the bit-rate being too low. If a video is too big turn up CRF for everything. The more space saved from the easier to compress videos the more space for everything. If you cannot turn up CRF anymore because it starts to look bad then the large video you want to use two-pass to reduce the size of would look very bad after two-pass encoding because the bitrate would be much too low. In my mind two-pass is for filling a specific storage medium, like a DVD+R, not controlling size of an entire collection.
Asmodian is offline   Reply With Quote
Reply

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 04:10.


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