Quantcast Avisynth: Motion Adaptive Green? - digitalFAQ.com Forums [Archives]
  #1  
06-14-2003, 12:15 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
Just tried the script, I get a green screen in tmpgenc, I have avisynth 2.52 installed!

## DLL Section ##
#
LoadPlugin("E:\KVCD Converting\Filters\Avisynth_2.5\MPEG2Dec3.dll")
LoadPlugin("E:\KVCD Converting\Filters\Avisynth_2.5\STMedianFilter.dll ")
LoadPlugin("E:\KVCD Converting\Filters\Avisynth_2.5\asharp.dll")
LoadPlugin("E:\KVCD Converting\Filters\Avisynth_2.5\undot.dll")
#
####

## Defined Variables and Constants ##
#
MaxTreshold = 1.50
scd_trigger = 25 # Scene change trigger value.
nf = 0 # Current frame.
#
####

## Main section and static filters ###
#
AviSource("E:\KVCD Converting\KVCD CACHE\Kääntämättömät\Topi ja Tessu Divx Finnish.avi")
#
undot()
Limiter()
asharp(2, 4)
BicubicResize(672, 542, 3, 0, 634, 512)
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.2))
#
#

## Dynamic Linear Adaptive Filtering and Scene Change Detection ##
#
# ( Portions from AviSynth's manual ) - This will apply temporalsoften to
# very static scenes, and apply variable blur on moving scenes.
# We also assign a variable - and this is why a line break is inserted:

ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? asharp( -(fmin((nf/30), 1)), 0 ) : \
TemporalSoften(2,7,7,3,2) ")

#
# Scene change detection ( kwag ) - If a scene change is detected, we
# blur heavily. This affects the scene before and the one after the
# scene change, thus providing a softer transition for the encoder instead
# of a sharp "spike".
# If it's not a scene change, then we just blur dynamically, depending on
# the action.

ScriptClip("nf > scd_trigger ? asharp( -2,0) : asharp(0,0) ")

#
#
#

#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
AddBorders(16, 17, 16, 17) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

function fmin(float f1, float f2) {
return (f1<f2) ? f1 : f2
}

#
####
__________________
¨¨°º©©º°¨¨°º©CHERONAPH©º°¨¨°º©©º°¨¨
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  
06-14-2003, 12:29 AM
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 CheronAph,

The problem is probably in your source. Open your .avs with Vdub, and see if it looks the same. There, you'll probably get an error. Check your DivX CODEC version too

-kwag
Reply With Quote
  #3  
06-14-2003, 12:40 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
It has to be in the script, I tried an .avi that I have already encoded with a normal script which worked fine, with the new script it´s the green screen again!
__________________
¨¨°º©©º°¨¨°º©CHERONAPH©º°¨¨°º©©º°¨¨
Reply With Quote
  #4  
06-14-2003, 04:46 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by CheronAph
Just tried the script, I get a green screen in tmpgenc, I have avisynth 2.52 installed!

BicubicResize(672, 542, 3, 0, 634, 512)
This line could be the problem. You should always crop in even numbers!

EDIT: There's something wrong with that line. It should be BicubicResize(672, 542, 19, 15, 634, 512) but that's not correct either (for the reasons above)
Reply With Quote
  #5  
06-14-2003, 05:19 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
I used moviestacker to get that line!
__________________
¨¨°º©©º°¨¨°º©CHERONAPH©º°¨¨°º©©º°¨¨
Reply With Quote
  #6  
06-14-2003, 05:26 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
I used fitcd to get the right rezise and it works, now the problem is that tok won´t do the predict when it starts to make the samples, only black screen appears?
__________________
¨¨°º©©º°¨¨°º©CHERONAPH©º°¨¨°º©©º°¨¨
Reply With Quote
  #7  
06-14-2003, 08:34 AM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
@CheronAph,

Double check BicubicResize paramaters:

Example of 704x480 with tv-overscan of 2:

BicubicResize(672,446,0,0.6,0,1,720,47

-bp
Reply With Quote
  #8  
06-14-2003, 08:36 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
Quote:
Originally Posted by black prince
@CheronAph,

Double check BicubicResize paramaters:

Example of 704x480 with tv-overscan of 2:

BicubicResize(672,446,0,0.6,0,1,720,47

-bp
I´m using BicubicResize(672,544,0,0.6,4,0,632,512) to 704x576 and I can encode it but prediction with tok doesn´t work???
__________________
¨¨°º©©º°¨¨°º©CHERONAPH©º°¨¨°º©©º°¨¨
Reply With Quote
  #9  
06-14-2003, 09:19 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
Did you point TOK to the Sample-2.5.dll
__________________
j3llyG0053
Reply With Quote
  #10  
06-14-2003, 01:44 PM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
No I didn´t, I´ll try that!
__________________
¨¨°º©©º°¨¨°º©CHERONAPH©º°¨¨°º©©º°¨¨
Reply With Quote
  #11  
06-14-2003, 02:02 PM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
Quote:
Originally Posted by Jellygoose
Did you point TOK to the Sample-2.5.dll
Uhmmm, where can I find it?
__________________
¨¨°º©©º°¨¨°º©CHERONAPH©º°¨¨°º©©º°¨¨
Reply With Quote
  #12  
06-14-2003, 02:55 PM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
I´ve got it now, it´s working, thanks all for your help!
__________________
¨¨°º©©º°¨¨°º©CHERONAPH©º°¨¨°º©©º°¨¨
Reply With Quote
  #13  
06-14-2003, 03:40 PM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
Arrrgh, what´s this,
================================================== ===========
ToK Log: E:\KVCD Converting\Topi ja Tessu Motion Adaptive.avs
================================================== ===========

Resolution (fps):704x576 (25.000 fps)
Total Frames: 118956
Total Time : 01:19:18
-------------------------------------------------------------

Audio Size: 76*132*102
Required Video Size: 735*637*219

Factor: 60.000
Desired Sample Size: 12*260*620

-------------------------------------------------------------
New Faster Prediction
-------------------------------------------------------------

Full Sample
Next CQ: 70.000. Sample Size: 21*517*576
Small Sample
Next CQ: 70.000. Sample Size: 1*608*967
Predicting...
Next CQ: 39.886. Sample Size: 14*849*225
Next CQ: 26.775. Sample Size: 13*357*714
Next CQ: 19.273. Sample Size: 12*741*582
Next CQ: 14.360. Sample Size: 12*196*637

Exit Condition: 1.000 % reached ! yahoo !
Tries : 5


Final CQ: 14.360
Total Time For Predicition: 00:14:34

Total Time (all operations): 00:14:34

Finished
__________________
¨¨°º©©º°¨¨°º©CHERONAPH©º°¨¨°º©©º°¨¨
Reply With Quote
  #14  
06-14-2003, 03:46 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
What kind of movie is that
Seems it's a very high activity movie or something, because the CQ that ToK gave you, is close to the wanted sample size. So that's it

-kwag
Reply With Quote
  #15  
06-15-2003, 01:48 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
It´s a cartoon, Fox and a hound, old Disney movie!
__________________
¨¨°º©©º°¨¨°º©CHERONAPH©º°¨¨°º©©º°¨¨
Reply With Quote
  #16  
06-15-2003, 01:54 AM
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
Well I think you're going to have to go lower in resolution for that movie. Maybe 352x576

-kwag
Reply With Quote
  #17  
06-15-2003, 02:11 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
Does this motion adaptive thing have the same compression or does it automatically make larger files?
__________________
¨¨°º©©º°¨¨°º©CHERONAPH©º°¨¨°º©©º°¨¨
Reply With Quote
  #18  
06-15-2003, 02:17 AM
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 CheronAph
Does this motion adaptive thing have the same compression or does it automatically make larger files?
The motion adaptive filter script will make WAY smaller files than using static filters. Like the ones used on 2.0x series.
Bed time, see you all tomorrow


-kwag
Reply With Quote
  #19  
06-15-2003, 03:59 PM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
Then something is wrong, same movie optimal script!

================================================== ===========
ToK Log: E:\KVCD Converting\Topi ja Tessu.avs
================================================== ===========

Resolution (fps):704x576 (25.000 fps)
Total Frames: 118956
Total Time : 01:19:18
-------------------------------------------------------------

Audio Size: 76*132*102
Required Video Size: 735*637*219

Factor: 60.000
Desired Sample Size: 12*260*620

-------------------------------------------------------------
New Faster Prediction
-------------------------------------------------------------

Full Sample
Next CQ: 70.000. Sample Size: 18*878*152
Small Sample
Next CQ: 70.000. Sample Size: 1*439*749
Predicting...
Next CQ: 45.462. Sample Size: 13*872*852
Next CQ: 31.763. Sample Size: 12*350*443

Exit Condition: 1.000 % reached ! yahoo !
Tries : 3


Final CQ: 31.763
Total Time For Predicition: 00:14:19

Total Time (all operations): 00:14:19

Finished
__________________
¨¨°º©©º°¨¨°º©CHERONAPH©º°¨¨°º©©º°¨¨
Reply With Quote
  #20  
06-15-2003, 04:15 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
Don't now what to say, because my results are just the opposite
But then, I'm doing NTSC, so I can't compare to any PAL stuff

-kwag
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Motion adaptive? tengo6dedos Avisynth Scripting 3 07-08-2008 02:59 PM
Avisynth: Motion adaptive tweaking of HybridFupp? Abond Avisynth Scripting 8 03-31-2004 04:49 PM
Avisynth: which one is better, normal or motion adaptive? CheronAph Avisynth Scripting 1 09-07-2003 08:01 AM
Avisynth: Motion adaptive filtering now possible? sbin Avisynth Scripting 494 06-13-2003 06:43 PM
Avisynth: Motion Adaptive Asharp? ovg64 Avisynth Scripting 0 06-07-2003 04:07 PM

Thread Tools



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