Log in

View Full Version : Is 3 passes really enough??


Pages : [1] 2 3

narco220
22nd August 2007, 16:04
This would be to shrink a source dvd or 7.4gig into a dvd5
4.3gig

Is 3 passes enough for over 6gig? I have also been using Bitrate Redistribution.

I use CCE SP and want to get the best possible quailty i can.

chickenmonger
22nd August 2007, 23:26
I'd say it depends on your hardware and how long you're willing to wait. I have an Athlon XP 2200+ (1800 Mhz), and it usually takes between 380 and 450 minutes to do HC 2-pass encoding. That's about the upper bound of how long I'm willing to wait for quality.

I'd only switch to N-pass encoding if I had a faster processor, and even then, the benefits of N-pass encoding are subjective at best, and non-existent at worst.

EDIT: Also, the fact that I don't have CCE or DVD-RB Pro makes N-pass encoding an unavailable option.

steptoe
23rd August 2007, 10:19
I use 3-passes with CCE SP2, and thats fine for me, but I don't have a huge 42" plasma TV to notice things that you wouldn't on a 26" CRT TV

Some say 6-passes is better for fast motion or high complexity scenes, and people have reported better results when doing movies like Star Wars and Lord of The Rings

Even CCE makers say anything above 3 passes is really too much and just adds time with not a great deal in quality, but the options there


Anything over 2-pass means the software is scanning the source tweaking it to a finer level for every extra pass, so in a way more passes could help in sources that need to squeeze every last bit out of the source

narco220
23rd August 2007, 13:22
I'll give 5 passes a go then as thats just the problem im getting blocky pixels with fast movement.

archaeo
23rd August 2007, 13:25
Sorry, but I cringe when I see another thread starting to move into that endless debate on what are the optimal 'number of passes' in CCE. :eek:
No offense, but this really has been exhaustively covered in this forum and others (the old CCE forum) at Doom9. It usually comes down to a matter of personal opinion (of which of course I won't mention mine to avoid further debate). To help this move along and prevent redundancy, I did a quick search on this topic, and came up with dozens of threads, a few of which are here:


http://forum.doom9.org/showthread.php?t=87831&highlight=CCE+Passes

http://forum.doom9.org/showthread.php?t=122581&highlight=CCE+Passes

http://forum.doom9.org/showthread.php?t=123135&highlight=CCE+Passes

Fishman0919
23rd August 2007, 14:15
This is from a test I did with CCE SP/SP2.. I post just the SP result because the scores were the same...

Time Size PSNR Score
--------------------------------------------------------------------------------------------------------------
CCE Basic 2.70 | :59 sec| 25,588 KB | 45.2893
--------------------------------------------------------------------------------------------------------------
CCE SP 2.70 | | |
2-pass AQM | 1:00 | 25,611 KB | 45.3050
--------------------------------------------------------------------------------------------------------------
2-pass no AQM | :59 | 25,609 KB | 45.3133
--------------------------------------------------------------------------------------------------------------
3-pass AQM | 1:29 | 25,668 KB | 45.3217
--------------------------------------------------------------------------------------------------------------
3-pass no AQM | 1:29 | 25,687 KB | 45.3597
--------------------------------------------------------------------------------------------------------------
4-pass AQM | 1:59 | 25,676 KB | 45.3287
--------------------------------------------------------------------------------------------------------------
4-pass no AQM | 1:59 | 25,659 KB | 45.3535
--------------------------------------------------------------------------------------------------------------
10-pass no AQM | 4:59 | 25,669 KB | 45.3553
--------------------------------------------------------------------------------------------------------------
100pass no AQM | 50:46 | 25,669 KB | 45.3553
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
OPV Q-40 | :30 | 25,357 KB | 45.4022
------------------------------------------------------------------------------------------

after 4 passes the score did not change. This was the same on several test.

narco220
23rd August 2007, 16:28
The reason i ask this question is when i shrunk the original dvd9 with dvdshrink and then dvdrebuild with cce sp2 (3 passes) there was very little if any difference when viewing them both on my sony vaio laptop as in both looked blocky in fast movement.

Heres some info on the Source and would it be considerd a high or low bitrate?

[13:19:29] Phase I, PREPARATION started.
- DVD-RB v1.26.2
- AVISYNTH 2.5.7.0
- CCE 1.0.0.15 encoder selected.
- Source: VIDEO_VTS
- VTS_01: 2,749,908 sectors.
-- Scanning and writing .D2V & .AVS files
-- Processed 246,299 frames.
-- Building .AVS and .ECL files
- VTS_02: 542,803 sectors.
-- Scanning and writing .D2V & .AVS files
-- Processed 48,609 frames.
-- Building .AVS and .ECL files
- Reduction Level for DVD-5: 64.4%
- Overall Bitrate : 3,393/2,714Kbs
- Space for Video : 4,075,268KB
- HIGH/LOW/TYPICAL Bitrates: 8,808/1,178/2,714 Kbs

RickA
23rd August 2007, 17:21
Not sure if you going for a full disc or movie only dub. If the numbers you have posted are for a full disc w/ extras copy I would definitely go the movie only route. If they are movie only stats then you may be stuck with what you have. Unless you care to brave layer breaks on a dual layer disc.


*Added: I would consider your typical bitrate of 2,714 Kbs as low (even your overall bitrate of 3,393). I prefer a minimum typical of 3,500 plus where ever possible. Depends on the amount of action in the movie and how long the movie is. For instance if the movie is a couple hours of fast Matrix style action compared to ducks lazily swimming across a pond 2,714 Kbs will be hard pressed to cut it. IMVHO

archaeo
23rd August 2007, 17:41
The reason i ask this question is when i shrunk the original dvd9 with dvdshrink and then dvdrebuild with cce sp2 (3 passes) there was very little if any difference when viewing them both on my sony vaio laptop as in both looked blocky in fast movement.

Heres some info on the Source and would it be considerd a high or low bitrate?

[13:19:29] Phase I, PREPARATION started.
- DVD-RB v1.26.2
- AVISYNTH 2.5.7.0
- CCE 1.0.0.15 encoder selected.
- Source: VIDEO_VTS
- VTS_01: 2,749,908 sectors.
-- Scanning and writing .D2V & .AVS files
-- Processed 246,299 frames.
-- Building .AVS and .ECL files
- VTS_02: 542,803 sectors.
-- Scanning and writing .D2V & .AVS files
-- Processed 48,609 frames.
-- Building .AVS and .ECL files
- Reduction Level for DVD-5: 64.4%
- Overall Bitrate : 3,393/2,714Kbs
- Space for Video : 4,075,268KB
- HIGH/LOW/TYPICAL Bitrates: 8,808/1,178/2,714 Kbs



@narco220:

I believe you said you are doing bitrate redistribution? - Can you post your redistribution log to see what bitrate the blocky segments are allocated?

narco220
23rd August 2007, 19:05
I Disabled bitrate redistribution and took it up to 5 passes but judging from your responces this ain't going to improve anything.

I did strip some of the dvds extras with VobBlanker but like to leave the menus and important extras in there.

Im working with DvdRB settings as default apart from adding passes to CCE SP2.

So all i really need to know is if theres any settings i need to change to improve the bitrate/quality of the overall finished Rip?

archaeo
23rd August 2007, 19:13
I Disabled bitrate redistribution and took it up to 5 passes but judging from your responces this ain't going to improve anything.



It may not, but if you decide to do bitrate redistribution, and pinpoint the segments that are blocky (I assume not all of them are that way), you could cross check the bitrate allocation in the log to see if the bitrate is exceptionally low for those segments. It gives us more information.

RickA
23rd August 2007, 22:45
You have a choice - movie only with the best quality you are going to possibly be able to get or degraded quality with extras and menus onboard. If the extras mean that much to you then I suggest putting them on a seperate disc. You can use Dvdshrink in reauthor mode to seperate them out and an authoring / menu creating program like TMPGEnc DVD Author for your extras and their menus.

Cheers

dynamis
23rd August 2007, 23:30
This is from a test I did with CCE SP/SP2.. I post just the SP result because the scores were the same.

...

after 4 passes the score did not change. This was the same on several test.

is this 4 CCE passes or 4 rebuilder passes? thanks.

Fishman0919
24th August 2007, 01:47
is this 4 CCE passes or 4 rebuilder passes? thanks.

1 vaf +3 passes ... with CCE SP2 they have done away with showing the vaf pass when encoding... it show it as m2v or mpg not vaf

dynamis
24th August 2007, 02:20
ah.. i see. and what tool do u use to measure PSNR?

i was looking at the MSU Video Quality Measurement Tool just for fun, but had no idea what files to throw in there... (the vaf or something else?) and what files i can throw in there as the original. all i got is vobs... :confused:

narco220
24th August 2007, 10:10
It may not, but if you decide to do bitrate redistribution, and pinpoint the segments that are blocky (I assume not all of them are that way), you could cross check the bitrate allocation in the log to see if the bitrate is exceptionally low for those segments. It gives us more information.


I just rencoded again but this time with bitrate redistribution enabled and 3 passes.
So theres no way to tweak rebuilders settings to improve the quality of the details below?

[22:36:14] Phase I, PREPARATION started.
- DVD-RB v1.26.2
- AVISYNTH 2.5.7.0
- CCE 1.0.0.15 encoder selected.
- Source: GRABIT DOWNLOADS
- VTS_01: 3,042,596 sectors.
-- Scanning and writing .D2V & .AVS files
-- Processed 249,782 frames.
-- Building .AVS and .ECL files
- VTS_05: 107,472 sectors.
-- Scanning and writing .D2V & .AVS files
-- Processed 12,906 frames.
-- Building .AVS and .ECL files
- VTS_07: 202,685 sectors.
-- Scanning and writing .D2V & .AVS files
-- Processed 18,185 frames.
-- Building .AVS and .ECL files
- Reduction Level for DVD-5: 64.2%
- Overall Bitrate : 3,619/2,895Kbs
- Space for Video : 4,140,194KB
- Redistributing using Base_Q: 34
- HIGH/LOW/TYPICAL Bitrates: 4,506/1,732/2,895 Kbs


BITRATE APPLIED TO FEATURE SEGMENTS (SEGMENT ORIGINAL REDISTRIBUTED)
(Created using a 10% sample)

V01000000001001 2,846 Kbs 2,707 Kbs
V01000100001002 2,943 Kbs 3,039 Kbs
V01000200001003 2,956 Kbs 2,546 Kbs
V01000300001004 2,962 Kbs 2,571 Kbs
V01000400001005 2,954 Kbs 1,732 Kbs
V01000500001006 2,962 Kbs 2,796 Kbs
V01000600001007 2,957 Kbs 2,429 Kbs
V01000700001008 2,962 Kbs 3,685 Kbs
V01000800001009 2,961 Kbs 3,298 Kbs
V01000900001010 2,960 Kbs 2,946 Kbs
V01001000001011 2,961 Kbs 3,142 Kbs
V01001100001012 2,957 Kbs 2,592 Kbs
V01001200001013 2,912 Kbs 3,773 Kbs
V01001300001014 3,429 Kbs 119 Kbs

Fishman0919
24th August 2007, 12:16
V01000000001001 2,846 Kbs 2,707 Kbs
V01000100001002 2,943 Kbs 3,039 Kbs
V01000200001003 2,956 Kbs 2,546 Kbs
V01000300001004 2,962 Kbs 2,571 Kbs
V01000400001005 2,954 Kbs 1,732 Kbs
V01000500001006 2,962 Kbs 2,796 Kbs
V01000600001007 2,957 Kbs 2,429 Kbs
V01000700001008 2,962 Kbs 3,685 Kbs
V01000800001009 2,961 Kbs 3,298 Kbs
V01000900001010 2,960 Kbs 2,946 Kbs
V01001000001011 2,961 Kbs 3,142 Kbs
V01001100001012 2,957 Kbs 2,592 Kbs
V01001200001013 2,912 Kbs 3,773 Kbs
V01001300001014 3,429 Kbs 119 Kbs

Those bitrates are a little low.... try encoding with HC, AQE or QuEnc and maybe QLB Matrix... to me they do a better job at lower bitrates then CCE

archaeo
24th August 2007, 18:40
V01000400001005 2,954 Kbs 1,732 Kbs


@narco220:
Is this the only segment that has given you the trouble? This one obviously stands out. In addition to trying Fishman's advice above, you could also tweak that particular segment in RB's segment editor by bumping up the bitrate allocation for that segment. Of course it will have to come from somewhere so you'll be robbing peter to pay paul, but the other segments might be able to afford the bitrate loss, possibly.

jdobbs
25th August 2007, 01:51
Just as an added note: I would challenge anyone to find a way to tell the difference between a PSNR of 45.30 (2 pass) and 45.32 (4 pass) without the help of the numbers...

It is my firm recommendation, based upon hundreds of tests, that most discs should be done with two passes, and only rarely, on very hard-to-encode sources you may want to use three passes.

Of course, for those who have spare CPU time -- the extra passes don't hurt at all and it may make you feel better... so to each his/her own.

Fishman0919
25th August 2007, 19:03
Just as an added note: I would challenge anyone to find a way to tell the difference between a PSNR of 45.30 (2 pass) and 45.32 (4 pass) without the help of the numbers...

100% agreed. I do 3 passes with CCE just for the fact of size issues every once in awhile. If it wasn't for that I would do 2 passes all the time.

Boulder
25th August 2007, 23:06
As I always say, 2 passes for non-AQM, 3 for AQM. 2 passes would probably be enough for AQM and a regular source but 3 passes will make sure there'll be no undersizing if the source happens to compress a lot. If you don't have the time to wait, 2 passes should be enough to maintain good quality in any case.

Wombler
26th August 2007, 11:56
I Disabled bitrate redistribution and took it up to 5 passes but judging from your responces this ain't going to improve anything.

I did strip some of the dvds extras with VobBlanker but like to leave the menus and important extras in there.

Im working with DvdRB settings as default apart from adding passes to CCE SP2.

So all i really need to know is if theres any settings i need to change to improve the bitrate/quality of the overall finished Rip?

Well if you really need to keep all that then you might like to try one or more of these tricks prior to compressing.

Use VobBlanker to convert the menus (or if you prefer just the sub-menus) to stills if they aren't like that already.

It's surprising how much space you can recover from fully animated scene selection menus etc.

Disable movie company pre-movie intros and/or unnecessary credits at cell or even sub-cell level with VobBlanker.

Use PGCEdit to scan for and remove any uncalled PGCs then follow up with FixVTS (or VobBlanker) to recover the space. I'd recommend this one regardless of what you're keeping.

If you're up to it and they're included on the disc then you can also remove foreign menus and disable the buttons that select the foreign menus with PGCEdit.


Wombler

Wombler
26th August 2007, 12:00
Just as an added note: I would challenge anyone to find a way to tell the difference between a PSNR of 45.30 (2 pass) and 45.32 (4 pass) without the help of the numbers...

It is my firm recommendation, based upon hundreds of tests, that most discs should be done with two passes, and only rarely, on very hard-to-encode sources you may want to use three passes.

Of course, for those who have spare CPU time -- the extra passes don't hurt at all and it may make you feel better... so to each his/her own.

That I'm glad to hear as I've done all my movies using CCE with 2 passes and have been pleased with the results.:)

'Saving Private Ryan' was the only one I wasn't entirely happy with in certain scenes but then it's a stern test of any encoder.


Wombler

Sharc
26th August 2007, 18:31
There have been some posts about the difficulty with Saving Private Ryan in the past. (I don't have this disc).
I wonder if anyone ever has tried redistribution on that difficult disc, and if so, did it help?

jdobbs
27th August 2007, 00:37
That's a good one to try with REDISTRIBUTION! I'll give it a go.

Wombler
27th August 2007, 09:53
That's a good one to try with REDISTRIBUTION! I'll give it a go.

I'll look forward to hearing the results.

When I last tried messing around with this one I wasn't as familiar with all the encoding options as I am now so I didn't try anything like this and decided I'd be better off just watching the original.

If you find the optimum settings I might give it another go myself. :)

The last time I looked at it the key areas to check for artifacts were the Omaha Beach scene on the boat prior to landing and on the beach itself.

There's another scene where they're marching in the rain and the noise of the rain transforms into that of gunfire. After the first bit of this scene, just as they enter the town, is another area full of glitches.

HTH


Wombler

Boulder
27th August 2007, 10:01
It would also be interesting to see what kind of outputs HC and CCE provide. Lots of smoke and dark scenes should provide a nice test between constant quality(OPV)- and constant quant-based redistribution methods.

EDIT: Hehe, 3000th post :p

HKT3020_1
30th August 2007, 18:01
That's a good one to try with REDISTRIBUTION! I'll give it a go.

Studios are pushing the limit. I just tried backing up House, M.D. Season 3 and the bitrates are really low. Any recommendations which filters I could use since I'm completely new to using them. :confused:
- "Adaptive Quantizer Matrices" is enabled.
- Source: HOUSE_SEASON_3_DISC_1
- VTS_01: 3,733,369 sectors.
-- Scanning and writing .D2V & .AVS files
-- Processed 316,165 frames.
-- Building .AVS and .ECL files
- Reduction Level for DVD-5: 54.8%
- Overall Bitrate : 2,835/2,268Kbs
- Space for Video : 3,651,204KB
- Redistributing using Base_Q: 44
- HIGH/LOW/TYPICAL Bitrates: 4,725/1,571/2,268 Kbs

Boulder
30th August 2007, 19:19
Studios are pushing the limit. I just tried backing up House, M.D. Season 3 and the bitrates are really low. Any recommendations which filters I could use since I'm completely new to using them. :confused:
- "Adaptive Quantizer Matrices" is enabled.
- Source: HOUSE_SEASON_3_DISC_1
- VTS_01: 3,733,369 sectors.
-- Scanning and writing .D2V & .AVS files
-- Processed 316,165 frames.
-- Building .AVS and .ECL files
- Reduction Level for DVD-5: 54.8%
- Overall Bitrate : 2,835/2,268Kbs
- Space for Video : 3,651,204KB
- Redistributing using Base_Q: 44
- HIGH/LOW/TYPICAL Bitrates: 4,725/1,571/2,268 KbsFirstly, enable CPU=4 by adding this line under [options] in rebuilder.ini: MPEG2SOURCE_OPTS=cpu=4

For filtering, try this one:


Degrain(sad=400,lim=2,ol=0)

function Degrain( clip c, int "blk", int "ol", int "sh", int "sad", int "pl", int "div", int "lim")
{
blk = default( blk, 16 )
ol = default( ol, 4 )
sh = default( sh, 2 )
sad = default( sad, 200 )
pl = default( pl, 4 )
div = default( div, 0 )
lim = default( lim, 255 )
vbw1=MVAnalyse(c,isb=true,truemotion=true,delta=1,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vfw1=MVAnalyse(c,isb=false,truemotion=true,delta=1,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vbw2=MVAnalyse(c,isb=true,truemotion=true,delta=2,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vfw2=MVAnalyse(c,isb=false,truemotion=true,delta=2,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
return MVDegrain2(c,vbw1,vfw1,vbw2,vfw2,thSAD=sad,idx=1,plane=pl,limit=lim)
}
Raise lim for a stronger effect. For better motion estimation (but slower processing), use ol=4 or ol=8. You need the latest MVTools (avisynth.org.ru) for this function.

NOTE: I don't know how filtering works with telecined NTSC sources (that's what I assume House, M.D. is).

HKT3020_1
1st September 2007, 15:38
MVTools is not available on the website. Might I trouble someone for an alternative web address? Sendspace perhaps.

Boulder
1st September 2007, 17:17
What do you mean it's not there?

http://avisynth.org.ru/mvtools/mvtools.html

The download links are at the bottom of the long page. Note that I edited the function and fixed the default value for lim. A total brain fart on my behalf that was :p

HKT3020_1
2nd September 2007, 00:56
Okay, my first time ever writing a script but here's what I managed so far.
Used notepad and copied this...

Degrain(sad=400,lim=2,ol=0)

function Degrain( clip c, int "blk", int "ol", int "sh", int "sad", int "pl", int "div", int "lim")
{
blk = default( blk, 16 )
ol = default( ol, 4 )
sh = default( sh, 2 )
sad = default( sad, 200 )
pl = default( pl, 4 )
div = default( div, 0 )
lim = default( lim, 255 )
vbw1=MVAnalyse(c,isb=true,truemotion=true,delta=1,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vfw1=MVAnalyse(c,isb=false,truemotion=true,delta=1,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vbw2=MVAnalyse(c,isb=true,truemotion=true,delta=2,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vfw2=MVAnalyse(c,isb=false,truemotion=true,delta=2,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
return MVDegrain2(c,vbw1,vfw1,vbw2,vfw2,thSAD=sad,idx=1,plane=pl,limit=lim)
}
Then read an overview on AvsP and played the script back with MPC...
http://img295.imageshack.us/img295/6109/snapshot20070901194928yr4.png
Extracted MVTools to the Avisynth 2.5 - plugins folder in case you're wondering.
I just want to be sure before I actually run this since 3-passes or even 2 will take quite awhile on a 3hr 39m DVD. :o

Boulder
2nd September 2007, 09:14
Try Degrain(last,sad=400,lim=2,ol=0).

EDIT: also post your complete script.

HKT3020_1
2nd September 2007, 12:21
Here it is and also just so we're clear, the adjustments for ol=4 and raised lim would be in the area marked in bold?
Degrain(last,sad=400,lim=2,ol=0)

function Degrain( clip c, int "blk", int "ol", int "sh", int "sad", int "pl", int "div", int "lim")
{
blk = default( blk, 16 )
ol = default( ol, 4 )
sh = default( sh, 2 )
sad = default( sad, 200 )
pl = default( pl, 4 )
div = default( div, 0 )
lim = default( lim, 255 )
vbw1=MVAnalyse(c,isb=true,truemotion=true,delta=1,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vfw1=MVAnalyse(c,isb=false,truemotion=true,delta=1,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vbw2=MVAnalyse(c,isb=true,truemotion=true,delta=2,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vfw2=MVAnalyse(c,isb=false,truemotion=true,delta=2,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
return MVDegrain2(c,vbw1,vfw1,vbw2,vfw2,thSAD=sad,idx=1,plane=pl,limit=lim)
}

Boulder
2nd September 2007, 19:01
Yes, the parameters are set in the line that calls the function.

Does that work? If not, what does the avs script itself look like? There's no source loaded anywhere so I can't say what might be the problem - I use that very same function myself constantly.

HKT3020_1
3rd September 2007, 02:06
Since I'm completely new to all this, I think I may be in over my head but I'm willing to learn.
Here is what my avisynth plugins folder looks...
http://img236.imageshack.us/img236/3954/avsscoe0.png
Also my dvd-rb folder...
http://img181.imageshack.us/img181/3843/dvdrbgo8.png
current avs script in the dvd-rb folder...
#------------------
# AVS File Created by DVD Rebuilder
# VOBID:05, CELLID:04
#------------------
LoadPlugin("C:\Program Files\DVD-RB PRO\DGDecode.dll")
mpeg2source("H:\D2VAVS\V01.D2V")
trim(296174,316163)
SeparateFields().SelectEvery(2,0)
ConvertToYUY2()
AudioDub(BlankClip())
As for source, I was hoping dvd-rb would handle that but correct me if I'm wrong.
If this is off topic then perhaps PMs might be appropriate.

Boulder
3rd September 2007, 03:27
You must copy-paste your test script in the DVD-RB filter editor window, redo the prepare phase and then open any of the avs files in the D2VAVS folder. The problem is that you are not loading a source in your testscript - and DVD-RB is not using the function at all as you can see from the DVD-RB created avs script.

HKT3020_1
3rd September 2007, 08:50
Filter editor is active and I knew it wasn't so easy.

http://img301.imageshack.us/img301/6441/snapshot20070903034406dp1.png

Boulder
3rd September 2007, 09:22
Post the script you are using. The error message already tells you what you need to do.

HKT3020_1
3rd September 2007, 19:38
The script is exactly as you suggested.
Firstly, enable CPU=4 by adding this line under [options] in rebuilder.ini: MPEG2SOURCE_OPTS=cpu=4

For filtering, try this one:


Degrain(last,sad=400,lim=2,ol=0)

function Degrain( clip c, int "blk", int "ol", int "sh", int "sad", int "pl", int "div", int "lim")
{
blk = default( blk, 16 )
ol = default( ol, 4 )
sh = default( sh, 2 )
sad = default( sad, 200 )
pl = default( pl, 4 )
div = default( div, 0 )
lim = default( lim, 255 )
vbw1=MVAnalyse(c,isb=true,truemotion=true,delta=1,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vfw1=MVAnalyse(c,isb=false,truemotion=true,delta=1,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vbw2=MVAnalyse(c,isb=true,truemotion=true,delta=2,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vfw2=MVAnalyse(c,isb=false,truemotion=true,delta=2,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
return MVDegrain2(c,vbw1,vfw1,vbw2,vfw2,thSAD=sad,idx=1,plane=pl,limit=lim)
}

If this at all helps, here is what was in D2AVS folder...
#------------------
# AVS File Created by DVD Rebuilder
# VOBID:06, CELLID:01
#------------------
LoadPlugin("C:\Program Files\DVD-RB PRO\DGDecode.dll")
mpeg2source("H:\D2VAVS\V01.D2V", cpu=4)
Degrain(last,sad=400,lim=2,ol=0)
function Degrain( clip c, int "blk", int "ol", int "sh", int "sad", int "pl", int "div", int "lim")
blk = default( blk, 16 )
ol = default( ol, 4 )
sh = default( sh, 2 )
sad = default( sad, 200 )
pl = default( pl, 4 )
div = default( div, 0 )
lim = default( lim, 255 )
vbw1=MVAnalyse(c,isb=true,truemotion=true,delta=1,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vfw1=MVAnalyse(c,isb=false,truemotion=true,delta=1,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vbw2=MVAnalyse(c,isb=true,truemotion=true,delta=2,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vfw2=MVAnalyse(c,isb=false,truemotion=true,delta=2,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
return MVDegrain2(c,vbw1,vfw1,vbw2,vfw2,thSAD=sad,idx=1,plane=pl,limit=lim)
trim(316164,316164)
ConvertToYUY2(interlaced=true)
AudioDub(BlankClip())

Boulder
3rd September 2007, 20:06
You are missing the opening { and closing } in the function in the DVD-RB script. Compare the original function to what you have in the filter editor window.

NOTE: the script will be slowish ;)

jdobbs
3rd September 2007, 20:08
The output in the D2VAVS file is missing the opening "{" and closing "}" of the function. There was probably a cut-and-paste error of some kind or it wasn't entered.

[Edit] Whoops, looks like Boulder beat me to the answer.

HKT3020_1
3rd September 2007, 20:26
Silly me I didn't add an image of the script in DVD-RB, the { } are there. One of the things I learned in 1st year of programming years ago, one little mistake throws it all off which is why I just copied and pasted.

http://img73.imageshack.us/img73/8/untitled1wm3.png

Boulder
3rd September 2007, 21:05
Well, you can cut this part and paste it in Notepad and save as degrain.avsi in your plugins folder. Then simply call it using the Degrain line in the filter editor, no need to have the actual function there. That way it should work (it's what I actually use). Just make sure Notepad doesn't put .txt as the extension, it needs to be .avsi.

function Degrain( clip c, int "blk", int "ol", int "sh", int "sad", int "pl", int "div", int "lim")
{
blk = default( blk, 16 )
ol = default( ol, 4 )
sh = default( sh, 2 )
sad = default( sad, 200 )
pl = default( pl, 4 )
div = default( div, 0 )
lim = default( lim, 255 )
vbw1=MVAnalyse(c,isb=true,truemotion=true,delta=1,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vfw1=MVAnalyse(c,isb=false,truemotion=true,delta=1,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vbw2=MVAnalyse(c,isb=true,truemotion=true,delta=2,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
vfw2=MVAnalyse(c,isb=false,truemotion=true,delta=2,pel=2,chroma=false,blksize=blk,idx=1,sharp=sh,overlap=ol,divide=div)
return MVDegrain2(c,vbw1,vfw1,vbw2,vfw2,thSAD=sad,idx=1,plane=pl,limit=lim)
}

jdobbs
3rd September 2007, 22:16
Interesting that the "{" didn't show up. Can you post your REBUILDER.INI so I can see if it is correctly represented there?

HKT3020_1
3rd September 2007, 23:10
Well, you can cut this part and paste it in Notepad and save as degrain.avsi in your plugins folder. Then simply call it using the Degrain line in the filter editor, no need to have the actual function there. That way it should work (it's what I actually use). Just make sure Notepad doesn't put .txt as the extension, it needs to be .avsi.

So the filter editor in dvd-rb should read like this...
Degrain(last,sad=400,lim=2,ol=0)

Interesting that the "{" didn't show up. Can you post your REBUILDER.INI so I can see if it is correctly represented there?
Here it is jdobbs...
http://www.sendspace.com/file/6k03p1

jdobbs
4th September 2007, 01:58
The sendspace server holding it is at capacity... I'll look at it some other time.

Boulder
4th September 2007, 03:23
So the filter editor in dvd-rb should read like this...
Degrain(last,sad=400,lim=2,ol=0)Yes, the function itself is automatically imported when the file containing it has the .avsi extension and is in the plugins folder.

HKT3020_1
4th September 2007, 04:32
I suppose it worked and you guys weren't kidding, talk about slower processing...:(
- AVS Filters are enabled.
- "Adaptive Quantizer Matrices" is enabled.
- Source: HOUSE_SEASON_3_DISC_1
- VTS_01: 3,733,369 sectors.
-- Scanning and writing .D2V & .AVS files
-- Processed 316,165 frames.
-- Building .AVS and .ECL files
- Reduction Level for DVD-5: 54.8%
- Overall Bitrate : 2,835/2,268Kbs
- Space for Video : 3,651,204KB
- Redistributing using Base_Q: 44
- HIGH/LOW/TYPICAL Bitrates: 4,725/1,571/2,268 Kbs
[19:26:52] Phase I, PREPARATION completed in 79 minutes.

Boulder
4th September 2007, 06:03
You could try something like RemoveGrain(mode=5,modeU=17).TemporalSoften(2,3,4,8,2) instead of Degrain for faster processing. You need the RemoveGrain plugin, TemporalSoften is an Avisynth internal function.