Quantcast Avisynth: Weird Artifacts During Scene Changes? - digitalFAQ.com Forums [Archives]
  #1  
07-06-2003, 05:47 AM
zes zes is offline
Free Member
 
Join Date: May 2003
Location: Antwerp, Belgium
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to zes
hi,

first of all the new avisynth scripts rock!
but, i ve noticed a few weird things (artifacts) during scene changes. (i think). anyway to help u understand what i mean i ve put a sample up:
http://users.skynet.be/bk260637/sample.mpg

any solution to the weird 'flashes'?
i use kwag's modified video.en1 btw and the latest script (july 4th)
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  
07-06-2003, 07:08 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
zes,

i see your sample...stranges flashes!

never saw it before,
seems that one frame turn(or came) to other frame.
Reply With Quote
  #3  
07-06-2003, 08:48 AM
zes zes is offline
Free Member
 
Join Date: May 2003
Location: Antwerp, Belgium
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to zes
ok u can see it clearly using vdubmod, but for your comfort i ve taken some screenshots.

http://users.skynet.be/bk260637/iceage1.jpg
http://users.skynet.be/bk260637/iceage2.jpg
http://users.skynet.be/bk260637/iceage3.jpg
http://users.skynet.be/bk260637/iceage4.jpg

it happened also with other movies.
Reply With Quote
  #4  
07-06-2003, 09:00 AM
bman bman is offline
Free Member
 
Join Date: Apr 2002
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by zes
ok u can see it clearly using vdubmod, but for your comfort i ve taken some screenshots.

http://users.skynet.be/bk260637/iceage1.jpg
http://users.skynet.be/bk260637/iceage2.jpg
http://users.skynet.be/bk260637/iceage3.jpg
http://users.skynet.be/bk260637/iceage4.jpg

it happened also with other movies.
Must be some codec problem .
Uninstall codecs u have installed and try to encode . If it's OK then try to install one of them , try to encode , if it's OK then install one more until
u find damaged codec .
I hope this'll help .
bman
Reply With Quote
  #5  
07-06-2003, 09:15 AM
Bchteam Bchteam is offline
Free Member
 
Join Date: Jan 2003
Posts: 275
Thanks: 0
Thanked 0 Times in 0 Posts
Have look at this thread.

http://www.kvcd.net/forum/viewtopic.php?t=4836

It has NOTHING to do with any codec.

The Motion Adaptive Script seems to have problems with animated films.
Reply With Quote
  #6  
07-06-2003, 10:49 AM
bman bman is offline
Free Member
 
Join Date: Apr 2002
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
U are absolutely right Bchteam!!!
I checked my last encoded 3 films and guess what ???
2 of them I've encoded with last script ( TemporalSmoother in it ) and I clearly see jittering,posterization and even two frames (one on another )artifacts .
1 of movies I've made with DialHot's script ( TemporalCleaner ) in it and I can defenetly say that script with TemporalSmoother Just SUCKS
So mush artifacts on scene changes - How Could'nt I see them before ???
I have to do new encodes of those movies with DialHot's script ( with a little tweack ) and I just hate this .
@ KWAG
It's worth to pay attention to this posts cos must be some bug in MA script with TemporalSmoother as we are getting starnge artifacts :
bman
Reply With Quote
  #7  
07-06-2003, 10:53 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
@zes,

Post your script
I think I know where the problem is, but I need to see your script

-kwag
Reply With Quote
  #8  
07-06-2003, 10:56 AM
Bchteam Bchteam is offline
Free Member
 
Join Date: Jan 2003
Posts: 275
Thanks: 0
Thanked 0 Times in 0 Posts
@ Bman

Were your Encodes animated/Cartoon Films or regular films with real actors ???
Reply With Quote
  #9  
07-06-2003, 11:18 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
I think the problem is related to the scenechange and/or mode parameters on TemporalSmoother.
Example: TemporalSoften(int clip, int radius, int luma_threshold, int chroma_threshold [, int scenechange] [, int mode])
Right now, scenechange is set to 0, and mode is set to 2 on the current script. The effects you are seeing, were previously visible on regular films, when the scenechange value was not 0. The mode parameter is either 1 or 2.
So please try setting the mode to 1, and load your.avs script in vdub, and slide to those scenes that are causing problems. If a value of 1 or 2 don't eliminate the problem, try the same but with a scene change value of 1.
The current line in the script is this:
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) ,0, 2)")
So the last two parameters are the scenechange followed by the mode (0, 2)
I can't test this because I don't have any Anime material on hand right now.

-kwag
Reply With Quote
  #10  
07-06-2003, 12:09 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
I think this problem is related to "Hybrid" material
I can not reproduce the problem, and I can't see that on ANY of my encodes
But they all have been 23.976 FILM encodes. So this is probably related to a "Field" problem on the material. If "Force FILM" was used on DVD2AVI, I would try creating the .d2v again WITHOUT "Force FILM", and using Telecide() and Decimate() after the source line.

-kwag
Reply With Quote
  #11  
07-06-2003, 12:37 PM
Bchteam Bchteam is offline
Free Member
 
Join Date: Jan 2003
Posts: 275
Thanks: 0
Thanked 0 Times in 0 Posts
I tried what you suggested, Kwag.

I changed this Line

Code:
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) ,0, 2) ")
to

Code:
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) ,1, 1) ")
There's no more ghosting at all...

But, on some scenes, the blurring is very visible. But I don't know if that is related with the TemporalSoften Problem. Can you tell me ???
Reply With Quote
  #12  
07-06-2003, 12:54 PM
bman bman is offline
Free Member
 
Join Date: Apr 2002
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Bchteam
@ Bman

Were your Encodes animated/Cartoon Films or regular films with real actors ???
All 3 movies are regular films : Ocean 11 , The Foreigner , City by the see
I'll check KWAG's suggestion too , maybe it's really source problem
bman
Reply With Quote
  #13  
07-06-2003, 01:02 PM
zes zes is offline
Free Member
 
Join Date: May 2003
Location: Antwerp, Belgium
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to zes
Code:
## DLL Section ## 
# 
LoadPlugin("C:\VIDEOCONV\Filters\MPEG2Dec3.dll") 
LoadPlugin("C:\VIDEOCONV\Filters\GripFit_YV12.dll") 
LoadPlugin("C:\VIDEOCONV\Filters\STMedianFilter_25.dll") 
LoadPlugin("C:\VIDEOCONV\Filters\asharp.dll") 
LoadPlugin("C:\VIDEOCONV\Filters\unfilter_25.dll") 
LoadPlugin("C:\VIDEOCONV\Filters\undot.dll")
LoadPlugin("C:\VIDEOCONV\Filters\vsfilter.dll")
# 
#### 

## Defined Variables and Constants ## 
# 
MaxTreshold = 1.50 
nf =  0 # Current frame. 
# 
#### 

## Main section and static filters ### 
# 
AviSource("C:\VIDEOCONV\iceage.avi") 
# 
undot() 
Limiter() 
asharp(2, 4) 
GripCrop(528, 480, overscan=2, source_anamorphic=false)
Textsub("C:\VIDEOCONV\iceage.ssa")
GripSize(resizer="BicubicResize") 
STMedianFilter(8, 32, 0, 0 ) 
MergeChroma(blur(MaxTreshold)) 
MergeLuma(blur(0.2)) 
# 
# 

## Linear Motion Adaptive Filtering ## 
# 
# ( 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 ? \ 
unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \ 
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) ,0, 2) ")

# 
# 
# 

GripBorders() 
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker! 
Limiter() 

# 
# 
## Functions ### 

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


# 
####
It's the latest optimal script with added lines for textsub, and an .avi as source. (just for the record, these artifacts are not visible or non-existant in the .avi)
when i load the .avs in virtualdub it says avisynth gave an error in 0x0etc
Reply With Quote
  #14  
07-06-2003, 01:19 PM
Bchteam Bchteam is offline
Free Member
 
Join Date: Jan 2003
Posts: 275
Thanks: 0
Thanked 0 Times in 0 Posts
@ zes

Just this Line

Code:
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) ,0, 2) ")
to

Code:
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) ,1, 1) ")
Then everything will be fine...
Reply With Quote
  #15  
07-06-2003, 01:40 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
excuse me to "jump",

in Thu Jul 03, 2003 2:38 pm
http://www.kvcd.net/forum/viewtopic....r=asc&start=96
and in
Thu Jul 03, 2003 3:59 pm
http://www.kvcd.net/forum/viewtopic.php?t=4717&start=96
and few days ago,before this posts but i can't find now where they are.

i was talking about ""breathing" in each second".
can someone help me to post a sample with 1,19mb in forum?
i send to your mail..someone help me to find it...
maybe is the same cause.
seems it have to be with the same problem.

thanks in advance.

@ zes
the shots shows the exact points and in the sample.mpg are clear too.
thanks for "comfort"!
Reply With Quote
  #16  
07-06-2003, 03:08 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
@Bchteam,

Thanks for trying it out
I guess that was the problem. I just tried it on NTSC Film, and it looks fine. This was not visible on pure FILM movies. So it was probably the "Method=2" parameter that caused the problem
I'm double checking this just before I update the script

-kwag
Reply With Quote
  #17  
07-06-2003, 03:11 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 Bchteam

But, on some scenes, the blurring is very visible. But I don't know if that is related with the TemporalSoften Problem. Can you tell me ???
If you're talking specially about the scene just before scene change being more blurred, that's the way it's supposed to work

-kwag
Reply With Quote
  #18  
07-06-2003, 03:20 PM
Bchteam Bchteam is offline
Free Member
 
Join Date: Jan 2003
Posts: 275
Thanks: 0
Thanked 0 Times in 0 Posts
Will the Final File Size increase or decrease, When I change the Temporal Soften Settings from (0,2) to (1,1)
Reply With Quote
  #19  
07-06-2003, 03:30 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 Bchteam
Will the Final File Size increase or decrease, When I change the Temporal Soften Settings from (0,2) to (1,1)
I don't think It's going to do any difference. The glitch probably accounted for less than .5 % of the complete movie. So I wouldn't worry about CQ changes at all. You might want to try prediction on your source again, just to see if there are any differences, but I really doubt it

-kwag
Reply With Quote
  #20  
07-06-2003, 04:17 PM
Peter1234 Peter1234 is offline
Free Member
 
Join Date: Feb 2003
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
Kwag,

Changing from

TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) ,0, 2) ")

to

TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) ,1, 1) ")

also got rid of the glitches I was getting when using DirectShowSource with type-1 DV files.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Flashlight underwater scene - too many block-artifacts? gamma Video Encoding and Conversion 1 05-14-2004 01:08 PM
Avisynth: Green pixelation artifacts on Xvid via Avisynth? rs008f Avisynth Scripting 10 03-23-2004 09:33 PM
Avisynth: Something weird in mpg when testing .AVS file WOWIEGURL Avisynth Scripting 4 03-08-2004 04:08 AM
Avisynth: Interlace artifacts or phase-shifting? ozjeff99 Avisynth Scripting 0 04-29-2003 10:15 PM
KVCD: Scene Changes artifacts? Pike Video Encoding and Conversion 7 07-24-2002 10:40 AM

Thread Tools



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