Log in

View Full Version : Dv Pal Conversion With Asharp


freelock7
18th August 2004, 16:39
I have a problem with asharp script.
When I try to encode my avi DV file (from DV PAL capture in 720x576) with this filter, I have a half picture with bad colors (red and yellow). The other part is right.
When I choose Unfilter, I have no problem about it.
The problem seems to come from interlaced source that asharp can't decode correctly.
Why this filter can't work and not the others?
Thanks for help.

freelock7
19th August 2004, 17:14
Fixed error script:
--------------------------------------------------
loadplugin("C:\Program Files\AviSynth 2.5\dgdecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\convolution3d.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\UnFilter_Avisynth_2.5_Alpha\unfilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\deen.dll")
loadplugin("C:\Program Files\AviSynth 2.5\asharp.dll")
aviSource("C:\Documents and Settings\All Users\Documents\Pinnacle Studio\Captured Video\Video1.avi")
Convolution3d(preset="movieLQ")
unfilter(50,50)
SeparateFields()
Weave()
ConvertToRGB32()
RGBAdjust(1, 1, 1.2, 1)#ce filtre nécessite une conversion RGB en entrée#
converttoyv12()
tweak(hue=1,bright=3)
deen()
asharp(2,2,0.5,hqbf=true)


----------------------------------
Works fine!
*(Asharp need yv12 conversion)

scharfis_brain
19th August 2004, 17:45
this script will totally destroy the interlacing.

better use:
avisource("blah-PAL-DV.avi")

converttoyuy2(interlaced=true)
SeparateFields()
Convolution3d(preset="movieLQ")
weave()
converttoyv12(interlaced=true)

separatefields()
unfilter(50,50)
tweak(hue=1,bright=3)
deen()
asharp(2,2,0.5,hqbf=true)
Weave()
ConvertToRGB32(interlaced=true)
RGBAdjust(1, 1, 1.2, 1)#ce filtre nécessite une conversion

there should be NO conversion to YV12 be nesessary, cause PAL-DV is already YV12, so try to figure out, how to get YV12 data from avisource without any conversion
(maybe using another codec may help)
also try to use another temporal denoiser that supports YV12.

also every processing has to be done between separatefields & weave

a separatefields() directly followed by weave() is totally nonsense!

freelock7
20th August 2004, 16:25
Thank you for help scharfis_brain.
With these changes, the picture is very clean and sharp without noise.:)