Log in

View Full Version : Please paste me a good script to encode cartoons


uozzap
11th October 2005, 18:39
I'm trying various filter but with no good results...
In too fast scenes i still have ghost effect..
Please help me :script:
I get my cartoons via sat...pleaaaase

Revgen
11th October 2005, 20:26
I'd advise you to revise your post.

People who beg and plead without explaining their problem intelligently usually will not get their questions answered.

Pookie
12th October 2005, 17:11
LoadPlugin("fft3dfilter.dll")
LoadPlugin("tdeint.dll")


avisource("d:\source.avi").Converttoyv12()

spline36resize(1920,1080)

FFT3DFilter(sigma=3,beta=1,plane=0,sharpen=0.4)
FFT3DFilter(sigma=3,beta=1,plane=1,sharpen=0.4)
FFT3DFilter(sigma=3,beta=1,plane=2,sharpen=0.4)

tdeint(mode=-1,type=3).turnleft().tdeint(mode=-1,type=3).turnright()

spline36resize(720,480).spline36resize(1920,1080).spline36resize(720,480)


#Look into adding PixieDust if you need more noise reduction ;)

Mug Funky
13th October 2005, 11:29
I get my cartoons via sat...pleaaaase

analog or digital? a lot of TV stations run their analog satellite stuff through a pretty agressive temporal filter which causes a lot of ghosting. with digital satellite it could even be some kind of ill-conceived pre-compression filter to make the low bitrate go further.

also what you might be seeing is the ghosting caused by standards-conversion (usually referred to here as "field blending").

of course a worst-case scenario would be a combination of both standards-conversion and temporal smoothing. usually the same machine will do both, so it's relatively likely that this could happen.

but without a decent description of your source (an un-filtered sample in either q2 Xvid interlaced, or your capture format would be very helpful) there's not much we can help you with.

uozzap
13th October 2005, 12:30
I'd advise you to revise your post.

People who beg and plead without explaining their problem intelligently usually will not get their questions answered.

Oh sorry
I would know how to improve my encodes..

this is the script I use

# PLUGINS
LoadPlugin("C:\PLUG\MPEG2Dec3.dll")
LoadPlugin("C:\PLUG\DGDecode.dll")
LoadPlugin("C:\PLUG\mpasource.dll")

LoadPlugin("C:\plug\tomsmocomp.dll")
# SOURCE

video=MPEG2Source("C:\plug\spongebob.d2v",cpu=4,moderate_h=30,moderate_v=60,iPP=true,idct=6)
#audio=DirectShowSource("C:\plug\audio.wav")
#AudioDub(video,audio)

TomsMoComp(video,-1,5,1)

# RESIZING
LanczosResize(520,384)


# DENOISE
TemporalSoften(7,7,5,mode=2,scenechange=10)

uozzap
13th October 2005, 12:40
analog or digital? a lot of TV stations run their analog satellite stuff through a pretty agressive temporal filter which causes a lot of ghosting. with digital satellite it could even be some kind of ill-conceived pre-compression filter to make the low bitrate go further.

also what you might be seeing is the ghosting caused by standards-conversion (usually referred to here as "field blending").

of course a worst-case scenario would be a combination of both standards-conversion and temporal smoothing. usually the same machine will do both, so it's relatively likely that this could happen.

but without a decent description of your source (an un-filtered sample in either q2 Xvid interlaced, or your capture format would be very helpful) there's not much we can help you with.


Digital...
I know i have to deinterlace video, I have field blending problems too..
source video PAL, 25fps of course at 704x576...
I don't know how to check if it's yuv,rgb etc etc

Guest
13th October 2005, 13:51
Don't load mpeg2dec3.dll if you are using dgdecode.dll.

Please post a link to a short unprocessed source clip that is typical of your video. Without that, it's almost impossible to help you very much.

uozzap
17th October 2005, 11:35
here a 15MB clip..

http://itaemule.altervista.org/clip.mpg

Guest
17th October 2005, 14:27
That appears to be frame blending. Please accept my condolences. :)

uozzap
18th October 2005, 11:15
no way ? :(

uozzap
19th October 2005, 20:40
why if do i use this script i have no ghost effect

# PLUGINS
#LoadPlugin("C:\PLUG\MPEG2Dec3.dll")
LoadPlugin("C:\PLUG\DGDecode.dll")
LoadPlugin("C:\PLUG\mpasource.dll")
LoadPlugin("C:\plug\tomsmocomp.dll")
# SOURCE

video=MPEG2Source("C:\plug\simpson.d2v",cpu=4,moderate_h=30,moderate_v=60,iPP=true,idct=6)
audio=DirectShowSource("C:\plug\audio.wav")
AudioDub(video,audio)

KernelDeint(order=1,threshold=7)

# RESIZING
LanczosResize(520,384)


# DENOISE
TemporalSoften(7,7,5,mode=2,scenechange=10)



and if i use this script i have it ?

# PLUGINS
#LoadPlugin("C:\PLUG\MPEG2Dec3.dll")
LoadPlugin("C:\PLUG\DGDecode.dll")
LoadPlugin("C:\PLUG\mpasource.dll")
#LoadPlugin("C:\plug\tomsmocomp.dll")
LoadPlugin("C:\plug\LeakKernelDeint.dll")
LoadPlugin("C:\plug\fft3dfilter.dll")
# SOURCE

video=MPEG2Source("C:\plug\spongebob.d2v",cpu=4,moderate_h=30,moderate_v=60,iPP=true,idct=6)
#audio=DirectShowSource("C:\plug\audio.wav")
#AudioDub(video,audio)

LeakKernelDeint(video,order=1,threshold=7)

Lanczos4Resize(520,384)

FFT3dFilter(sigma=2.0, plane=0, bt=2, bh=40 ,bw=40, measure=false,degrid=1)
FFT3dFilter(sigma=3.0, plane=1, bt=2, bh=40 ,bw=40, measure=false,degrid=1)
FFT3dFilter(sigma=3.0, plane=2, bt=2, bh=40 ,bw=40, measure=false,degrid=1)

Guest
19th October 2005, 20:48
You're not using the same input file! One uses simpson.d2v and one uses spongebob.d2v. Could be that one is frame-blended and one is not.

uozzap
20th October 2005, 10:48
ops the filename is not corrected but i used the same filename!
what could it be ?

hey what are differences between a temporal soften and a spatial soften ?

And when should i use one or another one ?

Guest
20th October 2005, 13:44
Temporal smoothes across time; spatial smoothes across space.

If you are doing cartoons, I would use an edge-protected spatial smoother, such as MSmooth.

uozzap
20th October 2005, 17:38
Thanks :D

and should i use it after TemporalSoften ?

Guest
20th October 2005, 18:04
TemporalSoften will cause ghosting. I would use MSmooth by itself.

Chainmax
20th October 2005, 23:39
I have a script that gives me results I really like on animated VHS captures. I can post it if you want, but bear in mind that it only considers either interlaced or telecined source, as I don't know how to deal with blends (and am waiting for the next version of restore24 anyway).