Quantcast Avisynth: Noticed a Problem with Latest Script - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
06-15-2003, 08:41 AM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
@kwag

I've noticed that the blurred frames on both "sides" of a scene change is clearly visible when watching the encoded movie (encoded with the latset script (June 14, 2003 @17:18GMT)) on a standalone DVD . What's the problem? I didn't noticed this when I was using the script from June 8...

-audioslave
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-15-2003, 10:07 AM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
@ audioslave..

I noticed it too, but you don't see them when you are playing them.
However, I can't help but to think that it may have a dragmatic affect
on final encoded "size", (maybe even effect the Q somewhat) when performed through a whole movie w/ lots of scene changes. Some tests
would have to be run.

How about this...

If you want to use the June 8th script, then just re-read the posts that
Kwag and others made, in reference to those changes back then.
Unfortunately, you have to SEARCH through ALL 31+ pages, but you
shouldn't have much dif. locating "June 8th" is you add it in the search

Good luck.
-vhelp
Reply With Quote
  #3  
06-15-2003, 10:39 AM
DKruskie DKruskie is offline
Free Member
 
Join Date: May 2003
Location: Michigan
Posts: 147
Thanks: 0
Thanked 0 Times in 0 Posts
Here's the script from june 8th, you'll have to change the values to what you want though

## DLL Section ##
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp.dll")
LoadPlugin("C:\Filters25\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 ###
#
Mpeg2Source("C:\DVD\T2.d2v")
#
undot()
Limiter()
asharp(2, 4)
BicubicResize(352,240,0,0.6,0,0,720,480)
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(0,0,0,0) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

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

#
####



David
Reply With Quote
  #4  
06-15-2003, 12:28 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 audioslave,

If the blur is too noticeable for you ( because you have eagle eyes ), change this line:

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

To read:
ScriptClip("nf > scd_trigger ? asharp( -1,0) : asharp(0,0) ")

That will blur the frames adjacent to scene change much less.

-kwag
Reply With Quote
  #5  
06-17-2003, 07:38 PM
Grantman Grantman is offline
Free Member
 
Join Date: Sep 2002
Location: Northfield, IL
Posts: 102
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Grantman Send a message via AIM to Grantman Send a message via MSN to Grantman Send a message via Yahoo to Grantman
Kwag,

How much of an effect on file size do you think the -2 to -1 change in asharp create?


Grantman
Reply With Quote
  #6  
06-17-2003, 08:44 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 Grantman
Kwag,

How much of an effect on file size do you think the -2 to -1 change in asharp create?


Grantman
Not sure, but it should be maybe around ~1%. I'll stick to using -2, because I can't see any visual changes using -1 or -2. However, I DO notice that if motion estimation is not set to"Motion Estimate" with the new script, and I use "High quality", the blured transitions are somehow "bleeded" to a following frame and I DO notice something in the picture. So I'm definitely sticking to "Motion Estimate(fast)" from now on

-kwag
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Latest script compatible with 2.51? Reno Avisynth Scripting 15 07-11-2003 06:26 AM
Avisynth: Possible Addition To Latest Script For 2.5 Dano Avisynth Scripting 13 06-18-2003 04:49 PM
Avisynth: Latest script discussion kwag Avisynth Scripting 290 05-04-2003 06:46 PM
Avisynth: Latest vhs script? Paul0889 Avisynth Scripting 1 04-18-2003 09:31 PM
Avisynth: Latest KVCD script please! syk2c11 Avisynth Scripting 1 04-02-2003 10:03 AM




 
All times are GMT -5. The time now is 12:56 PM  —  vBulletin © Jelsoft Enterprises Ltd