PDA

View Full Version : Capture challenge, optimizing the script.


gavo
19th May 2005, 07:29
Sorry to say, my friend captured a video in 480x352. This will give any deinterlacer some trouble. Sadly there isn't the time, to redo the project. I however have tryed my best to make a script that will hide some of these deinterlaceing problems.

My script is

ConvertToYUY2(interlaced=true)
Letterbox(0,6)
fielddeinterlace()
cnr2
pixiedust(5)
Tweak(bright=8, cont=.95, sat=1.5, hue=7, coring=false)
Levels(0, 1.1, 255, 0, 255)
ColorYUV(off_y=-20, gain_y=0)
#ColorYUV(levels="PC->TV")
Undot
LimitedSharpen(Lmode=6)
unfilter(-30,-30)
ConvertToYV12()
awarpsharp

From my personal testing, I have found fielddeinterlace to work the best with this video. Below are some video samples of the raw and filtered video. If someone could kindly take the time to improve or redo the script. It would be greatly apperiated.

Rough unfiltered sample,
divx/xvid download (http://s39.yousendit.com/d.aspx?id=3LBBZ74D49OL61CESCV0NCA63V)

Avs encoded sample,
divx/xvid download (http://s39.yousendit.com/d.aspx?id=18X9SRW7608D73AKYXIT4WP67C)

gavo
19th May 2005, 09:47
cmon I'm begging you HELP ME

Inc
19th May 2005, 12:35
Posting at 07:30 in the morning means that less members could be active in here - not mention the members in the US. etc where there was still night ---- didnt you think about that? :rolleyes:

Anyhow ....

1. Do use the letterbox command at the end using at least (8,8,8,8)
2. Fielddeinterlace is an anxient method, try the newer filters like Tdeint()
3. LimitedSharpen() followed by a blurring Unfilter() and again sharpened by using awarpsharp is not logic.

Didée
19th May 2005, 13:11
Sidenote:

Lmode=6 would be a good choice for LimitedSharpen -- if it would exist. However I know only of Lmode's 1 & 2 ... :)

gavo
20th May 2005, 02:02
What would be a more logical script to use?

gavo
20th May 2005, 07:32
Re optimized script
ConvertToYUY2(interlaced=true)
Letterbox(8,8,8,8)
Tdeint()
cnr2
pixiedust(5)
unfilter(-25,-25)
Tweak(bright=6, cont=.95, sat=1.5, hue=7, coring=false)
Levels(0, 1.2, 255, 0, 255)
ColorYUV(off_y=-20, gain_y=0)
#ColorYUV(levels="PC->TV")
Undot
LimitedSharpen(Lmode=2)
ConvertToYV12()
awarpsharp

sh0dan
20th May 2005, 13:18
Easy optimization:

crop(8,8,-8,-8)
ConvertToYUY2(interlaced=true)
Tdeint()
cnr2()
pixiedust(5)
ConvertToYV12()
unfilter(-25,-25)
Tweak(bright=6, cont=.95, sat=1.5, hue=7, coring=false)
ColorYUV(off_y=-20, gain_y=0, gamma_y=52)
Undot()
LimitedSharpen(Lmode=2)
awarpsharp()
addborders(8,8,8,8)

* Crop and add borders later instead of letterbox
* Convert to YV12 earlier. Faster for color correction and probably most of the other filters.
* Skip levels and adjust gamma in coloryuv instead.

gavo
20th May 2005, 16:49
thank you very much sh0dan, Could someone suggest maybe different filter or is the script acceptable for the footage?

Boulder
20th May 2005, 18:25
Should be faster this way:

crop(8,8,-8,-8)
Tdeint()
cnr2()
ConvertToYUY2()
pixiedust(5)
ConvertToYV12()
unfilter(-25,-25)
Tweak(bright=6, cont=.95, sat=1.5, hue=7, coring=false)
ColorYUV(off_y=-20, gain_y=0, gamma_y=52)
Undot()
LimitedSharpen(Lmode=2)
awarpsharp()
addborders(8,8,8,8)

I would replace PixieDust with LRemoveDust and thus be able to stay in YV12 throughout the process, it's also faster than PixieDust. You can find it at the RemoveGrain thread.

Inc
20th May 2005, 18:47
I even would blow out that blurring unfilter() as it makes limited sharpen its proper work harder or even impossible.


crop(8,8,-8,-8)
Tdeint()
cnr2()
LRemoveDust(4,2) # I dont know now the best settings for you so just try
Tweak(bright=6, cont=.95, sat=1.5, hue=7, coring=false)
ColorYUV(off_y=-20, gain_y=0, gamma_y=52)
Undot()
LimitedSharpen(Lmode=2)
awarpsharp()
addborders(8,8,8,8)

gavo
21st May 2005, 08:58
I kept unfilter as the blur effect seemed to help. I added depan in order to stop shakeing in the video. I however, dont know if I should put it at the end or beginning of the script. I'm also not sure if I should use it Before or after deinterlaceing and filtering? Frames 7670-8744, I want to disable the filter. As in this scene the shakes are used to build effect. I'm thinking that you would use trim, but I'm not 100% sure. I also a bit confused on some custom settings for deshake. I tryed,

ConvertToYUY2()
crop(8,8,-8,-8)
fielddeinterlace()
cnr2()
pixiedust(5)
unfilter(-30,-30)
Tweak(bright=4, cont=.95, sat=1.5, hue=7, coring=false)
ColorYUV(off_y=-20, gain_y=0, gamma_y=52)
Super8Equal
Undot()
LimitedSharpen(Lmode=2)
i=converttoYV12()
addborders(8,8,8,8)
mdata=DePanEstimate(i)
DePanStabilize()
awarpsharp()

gavo
21st May 2005, 21:22
I've also added Super8Equal and it seems to give black around the edges. How do I stop this. What exactly is the point of Super8Equal. I am showing this through a projector. Will the black areas be gone when it is shown? Please help

gavo
21st May 2005, 21:23
:confused:

communist
21st May 2005, 21:48
Originally posted by gavo
I've also added Super8Equal and it seems to give black around the edges. How do I stop this. What exactly is the point of Super8Equal. I am showing this through a projector. Will the black areas be gone when it is shown? Please help
I dont know what Super8Equal is but if you dont know either why are you using it (especially if it creates unwanted results)? :confused:

gavo
22nd May 2005, 07:50
Through it help out in color correction.