Quantcast Avisynth: Optimal Script? - digitalFAQ.com Forums [Archives]
  #1  
12-27-2004, 01:41 PM
Shibblet Shibblet is offline
Free Member
 
Join Date: Jul 2004
Location: Wasilla, Alaska
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Shibblet
I've been playing "search" and I keep seeing talk about an Optimal Script... well, I can't find it anywhere? Anyone know where it can be found?
__________________
Well if it's not a wolf, then it's a damn big dog.
- Rabbit, from "The Fable"
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
12-27-2004, 01:43 PM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
You can find it here http://www.kvcd.net/forum/viewtopic.php?t=3483
__________________
Rui
Reply With Quote
  #3  
12-27-2004, 06:00 PM
Shibblet Shibblet is offline
Free Member
 
Join Date: Jul 2004
Location: Wasilla, Alaska
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Shibblet
Thanks!
__________________
Well if it's not a wolf, then it's a damn big dog.
- Rabbit, from "The Fable"
Reply With Quote
  #4  
12-28-2004, 08:07 PM
Shibblet Shibblet is offline
Free Member
 
Join Date: Jul 2004
Location: Wasilla, Alaska
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Shibblet
I tried it on 3 different movies, and I get a lot of flicker in the solid colored areas in the background. Is this normal?
__________________
Well if it's not a wolf, then it's a damn big dog.
- Rabbit, from "The Fable"
Reply With Quote
  #5  
12-28-2004, 08:17 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Shibblet,

No, that's not normal.
Maybe it's a color space issue
Are you using the latest version of AviSynth

-kwag
Reply With Quote
  #6  
12-28-2004, 08:30 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
1/ What is your source type ?
2/ Check that you are using K-Notch Matrix.
2bis/ What is your encoder ?
Reply With Quote
  #7  
12-29-2004, 05:54 PM
Shibblet Shibblet is offline
Free Member
 
Join Date: Jul 2004
Location: Wasilla, Alaska
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Shibblet
Using TMPEG Ver. 2.524.63.181
AviSynth 2.5.5

Source is DVD - Forced Film / Progressive - No interlaced frames

My CQ Was up around 82...
Any Ideas?
__________________
Well if it's not a wolf, then it's a damn big dog.
- Rabbit, from "The Fable"
Reply With Quote
  #8  
12-29-2004, 06:03 PM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
You're not using directshow filters to read your script are you?
That is, you did install ReadAVS.dll on your system so Tmpg can read *.avs scripts, right?
Otherwise it's a jungle out there when it comes to directshow filters...
Cheers
__________________
Rui
Reply With Quote
  #9  
12-29-2004, 08:29 PM
Shibblet Shibblet is offline
Free Member
 
Join Date: Jul 2004
Location: Wasilla, Alaska
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Shibblet
Holy underwear stains Batman! I've never used ReadAVS.dll in my life. I am going to have to go and get that one.

Any of the DirectDraw / DirectSound / DirectShow drivers seem to be quite a problem in just about any app.

Thanks, I'll give that one a try.
__________________
Well if it's not a wolf, then it's a damn big dog.
- Rabbit, from "The Fable"
Reply With Quote
  #10  
12-30-2004, 03:41 AM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
Then go ahead and download it from http://www.avisynth.org/warpenterprises/.
Unzip it.
Read the readme.txt.
Just copy the ReadAVS.dll and ReadAVS.reg to your Tmpgenc's directory.
Open the ReadAVS.reg with notepad.
Change it's last line to the Drive letter and full path (using double backslashes) of Tmpgenc's directory.
Save and close the *.reg file.
Double click on the *.reg file and answer yes when prompted to merge that information into your registry file.
Close and restart Tmpgenc, if running.
Open Tmpgenc's "Option>Environmental settings..." menu.
Open the "VFAPI plug-in" tab.
Check that the item "ReadAVS.dll" does not read something like "the file cannot be loaded.".
When configured properly it should read "Avisynth/VirtualDub script reader v0.1".
And last you can untick all options in that window besides "ReadAVS.dll" and "TMPGEnc.vfp" since most probably you won't need them.
Close and restart Tmpgenc, again so it saves the options.
Load your Avisynth script with TMPGEnc and happy encodings
Am I missing something here, guys
Cheers
__________________
Rui
Reply With Quote
  #11  
12-31-2004, 09:35 PM
Shibblet Shibblet is offline
Free Member
 
Join Date: Jul 2004
Location: Wasilla, Alaska
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Shibblet
Well, the flickering seems to be block noise. So it might be the compression, however, 70+ CQ is normally not an issue...

The ReadAVS.dll didn't seem to make that big of difference. And I am sure that I am using ReadAVS.dll instead of DirectShow.

Any other ideas?
__________________
Well if it's not a wolf, then it's a damn big dog.
- Rabbit, from "The Fable"
Reply With Quote
  #12  
12-31-2004, 09:58 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Shibblet
And I am sure that I am using ReadAVS.dll instead of DirectShow.
Sure about that
Did you "Uncheck" " Directshow Multimedia Reader" in TMPEG

-kwag
Reply With Quote
  #13  
01-01-2005, 06:36 AM
Shibblet Shibblet is offline
Free Member
 
Join Date: Jul 2004
Location: Wasilla, Alaska
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Shibblet
Positive about that one. The only things checked are

ReadAVS
DVD2AVI Project File Reader
TMPEG Project File Reader

Now, when I use the optimal script, and downsample to 352x240, I have noticed that every frame just before a scene change is incredibly blurry. Just one frame, that's weird. But it's just before every scene change. Maybe that will help with my problem.
__________________
Well if it's not a wolf, then it's a damn big dog.
- Rabbit, from "The Fable"
Reply With Quote
  #14  
01-01-2005, 09:49 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Shibblet
Just one frame, that's weird. But it's just before every scene change.
This is the normal behaviour of the... very old MA script ! It was enhanced to reduce the phenomena. So either you use a very old MA script, either your eyes are eagle sharp

Nevertheless, I do not use ever the MA script because of that blurry "thing".
Reply With Quote
  #15  
01-01-2005, 11:05 PM
Shibblet Shibblet is offline
Free Member
 
Join Date: Jul 2004
Location: Wasilla, Alaska
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Shibblet
The script that I am using is the one from RDS's link. It's the one from the top of the forum. Is this the script that everyone is using? And if so, does anyone know what causes the flicker and blurred frames before scene changes?

Now that I've had plenty of testing, seems to me that this version of TMPEG almost twice as fast as it used to be.
__________________
Well if it's not a wolf, then it's a damn big dog.
- Rabbit, from "The Fable"
Reply With Quote
  #16  
01-02-2005, 07:30 AM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
Hey Shibblet ,
Don't use the 1st one.
That one is for old Avisynth 2.0.x.
Since I bet you're using Avisynth 2.5.5, use the 2nd one from that list.
And if you're not using Avisynth 2.5.5 yet, please upgrade ASAP .
Though, I'm not sure the blurrying has anything to do with the Avisynth release you're using and the script you're using.
Cheers
__________________
Rui
Reply With Quote
  #17  
01-02-2005, 05:23 PM
Shibblet Shibblet is offline
Free Member
 
Join Date: Jul 2004
Location: Wasilla, Alaska
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Shibblet
Right, I am using the one for AviSynth 2.5x and I still get that problem. I did make some minor alterations. I took out the Grip-sizing. Here, I'll post it.

Code:
LoadPlugin("D:\Video\MovieStacker\Filters\MPEG2Dec3.dll")  
LoadPlugin("D:\Video\MovieStacker\Filters\STMedianFilter.dll") 
LoadPlugin("D:\Video\MovieStacker\Filters\asharp.dll") 
LoadPlugin("D:\Video\MovieStacker\Filters\unfilter.dll") 
LoadPlugin("D:\Video\MovieStacker\Filters\undot.dll") 

Mpeg2Source("D:\Video\Rips\My Movie.d2v") 
 
undot() 
asharp(1, 4) 
BicubicResize(448, 256, 0, 0.6, 2, 59, 716, 358)
AddBorders(16, 112, 16, 112)
STMedianFilter(3, 3, 1, 1 ) 
MergeChroma(blur(1.5)) 
MergeLuma(blur(0.1)) 

ScriptClip("nf = YDifferenceToNext()" + chr(13) + "UnFilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ). TemporalSoften( fmin(round(2/nf),6), round(1/nf), round(3/nf), 1, 1) ")

function fmin( int f1, int f2) { 
  return ( f1<f2 ) ? f1 : f2 
}
I prefer to do Bicubic resizing and make my black borders evenly divisible by 8. I kept the Linear Motion Adaptive Filtering, and that seems to be the problem with the blurry frames, and sometimes the flickering.
Any suggestions?
__________________
Well if it's not a wolf, then it's a damn big dog.
- Rabbit, from "The Fable"
Reply With Quote
  #18  
01-02-2005, 06:08 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Of course the problem is in the MA part : that is the way the filtering is done (blurring a lot when the pictures change a lot, so at a scene change, that is a mess). That's what I told you already. And there is no solution except to stop using it, as I do (and as I once mentioned).
Reply With Quote
  #19  
01-02-2005, 07:04 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Time for me to fix that
I'll get on it after I finish some CQMatic stuff

-kwag
Reply With Quote
  #20  
01-03-2005, 11:06 PM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
Dialhot:

Can you post a link to the thread that discusses YOUR latest optimal script?
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Difference between MA script and optimal script? mistermickster Avisynth Scripting 2 08-01-2003 09:36 AM
Avisynth: Next changes to optimal script. kwag Avisynth Scripting 21 06-27-2003 12:31 PM
Avisynth: New optimal script for AVS 2.52 Dialhot Avisynth Scripting 3 06-14-2003 12:17 PM
Avisynth: Optimal Script for D2S? telemike Avisynth Scripting 3 06-11-2003 08:33 AM
Avisynth: Optimal Script Help Bigswaffo Avisynth Scripting 7 05-29-2003 04:17 PM

Thread Tools



 
All times are GMT -5. The time now is 08:25 AM  —  vBulletin © Jelsoft Enterprises Ltd