PDA

View Full Version : avs script (picture is kind of dotty) please help!??


kimi_mo
14th September 2004, 13:25
hey,
i have my avs script and i started encoding and it looked good on the
preview in virtualdub but when the finished one came out it looked
pretty rubbish :)
you can see how it looked below
it was kind of dotty and not clear and the colours were a bit weird
so please can you hel me with a good filter and help me with the
proccess of it so i can get my avs script to encode with a nice
video quality,
my script used to be really long with about 20 filters and 3 avs
scripts attached,
but the problem with that was it just simply took too long
the quality was good but seriously,
it took me longer than 24 hours to encode a 23 minute episode
so im looking to shorten the script so it works as good but in faster
time,
the script im using now works in about 2 hours
so if i could just add a couple of filters to stop my problem it
would be great.
as i cant wait 24 hours to finish
because im not allowed to keep my computer on over night
so please help me thank you very much :)

Heres the problems with my video:
http://cloud369.t35.com/ALLEN_SCHAZAR_NOT_CLEAR.JPG
It would really like it to look like this
Which o print screened from my dvd:-
http://cloud369.t35.com/p/ALLEN_SCHAZAR_CLEAR.JPG
sometimes it gets alot worse than that(1st picture)
and it is pretty poor,
so id be gratefull for someone to help me here
thanks,
Script i used for the first bad qual video:-

#
# PLUGINS
LoadPlugin("C:\avs\MPEG2Dec3.dll")
LoadPlugin("C:\avs\decomb.dll")
LoadPlugin("C:\avs\Convolution3DYV12.dll")
LoadPlugin("C:\avs\VSFilter.dll")
LoadPlugin("C:\avs\RemoveDirt.dll")
#
# SOURCE
mpeg2source("C:\escaflowne project\episode_03\escaflowne_03.d2v")
#
# TRIM
#
# IVCT
Telecide().Decimate(5)
#
# CROPPING
crop(0,0,720,480)
#
# DEINTERLACING
FieldDeinterlace()
#
# SUBTITLES
#
# RESIZING
BicubicResize(640,464,0.333,0.333)
#
# DENOISING
mergechroma(blur(1.3))
#
# CONVOLUTION 3D
Convolution3d(preset="animeHQ")
#
TextSub("C:\cloud.ssa")
#
removedirt(mthreshold=4*255,athreshold=18,soscillation=10,doscillation=255,dist=2,tolerance=12,show=0)
#
function cleaning(video)
{
firstpass=RemoveDirt(video)
cleaned=RemoveDirt(video, neighbour=firstpass)

return cleaned
}
----------------------------------------------------------------

Please Help Me!!
thanks very much for your time
;)

Ark
14th September 2004, 13:49
I cannot see the pictures on my PC...

And for what can I see you use GK to encode, and from your informations seems that is an encoder problem, not an avisynth problem.

If in preview the video is right for you, and in the final encode it's not, is a codec fault.

So tell me what codec you're using (DivX, XviD, Wmv, Vp6, Real...) and what settings are used too

kimi_mo
14th September 2004, 15:10
i am using XVID,
but thats not what i meant sorry
i mean,
the final encode looks crap
and looks rubbish when i preview aswell
i meant the encodes i did before worked ok
but it was just FAR TOOO SLOW
so i just need to choose the right filters
to make the picture not do dotty
and dusty

thanks for your reply
please help again
thanks ;)

Mug Funky
14th September 2004, 16:22
i can't see the pictures either... not sure where the dots would be coming from just by reading the script though.

here's a shortened version of the script without redundancies:


LoadPlugin("C:\avs\MPEG2Dec3.dll")
LoadPlugin("C:\avs\decomb.dll")
LoadPlugin("C:\avs\Convolution3DYV12.dll")
LoadPlugin("C:\avs\VSFilter.dll")
LoadPlugin("C:\avs\RemoveDirt.dll")

mpeg2source("C:\escaflowne project\episode_03\escaflowne_03.d2v")

Telecide().Decimate(5)

#FieldDeinterlace()
# no need to deinterlace unless telecide isn't working properly

BicubicResize(640,464,0.333,0.333)
# 0.333 is the default, so there's no need to express it.
# i use 0,0.5 for more sharpness, but it doesn't matter much

#mergechroma(blur(1.3))
# this line probably doesn't have much effect on the output
# as a much stronger denoiser comes next

Convolution3d(preset="animeHQ")

removedirt(mthreshold=4*255,athreshold=18,soscillation=10,doscillation=255,
\dist=2,tolerance=12,show=0)
# check current removedirt docs - soscillation and doscillation are obsolete

TextSub("C:\cloud.ssa")
# subs go after processing, or they'll interfere
# with denoisers and stuff


there's some notes in the script too.

hmm... escaflowne is a digital animation isn't it? probably hybrid film and 30p?

well, the thing about digital animations is they are perfectly clean, and thus the only processing you need to do is get rid of the mpeg-2 blocks from the original DVD source. if you've got a perfectly clean source, then denoising will only reduce detail, which you probably don't want (and a good video codec will have a better idea of what detail to remove than a denoiser in most cases).

i haven't seen escaflowne, but the previews look interesting. something about a tarot girl and some space robots? :)

one thing on subs - it's probably best to keep them separate and have them render at playback. this keeps video bitrate down and allows you to change the subs at will. the Vobsub directshow filter will do ssa subs.

as for dots? i can't say where they'd come from looking at the above script.

Didée
14th September 2004, 17:01
Well, I've seen the pics before they disappeared ;)

The source picture looked pretty much noise-free to me, but had a blurry overall appearance. It doesn't give the impression of being a job for RemoveDirt().

The processed picture ... reminded me of XviD's "film effect" decoder option *whistle*


My guess: soft deblocking through mpeg2dec3 (moderate_h ~ 45, _v ~ 60, no deringing), a weak temporalsoften, followed by SSXSharpen or LimitedSharpen.
But perhaps it's a different story when the frames are in motion.


edit:

I transfered those pics from my browser cache to imageshack.

source:
http://img89.exs.cx/img89/19/ALLEN_SCHAZAR_CLEAR.jpg

processed:
http://img89.exs.cx/img89/73/ALLEN_SCHAZAR_NOT_CLEAR.jpg

kimi_mo
14th September 2004, 17:14
thanks for that,
and for posting my pictures ;P
but im quite new to avisynth
My guess: soft deblocking through mpeg2dec3 (moderate_h ~ 45, _v ~ 60, no deringing), a weak temporalsoften, followed by SSXSharpen or LimitedSharpen.
So it would be a great help if you could show me how to use these filters
or where i can find out

and thanks alot for your help

dbzgundam
15th September 2004, 01:38
Originally posted by Mug Funky
hmm... escaflowne is a digital animation isn't it? probably hybrid film and 30p?

Hell no! Escaflowne is good ol' cel animation completely film. (At least it should be)