logo Sign In

Any Suggestions for Better Uprez to HD?

Author
Time
My initial approach didn't give me the results I was hoping for. This first image was the result of a convoluted process involving a DVCPro tape deck which upscales DV to 1080i.
http://img261.imageshack.us/img261/3861/hd1400uprezct4.jpg


Red Giant Instant HD Uprez in Premiere Pro using an additional sharpen (the red, blue and green specs are there because I was using a trial software version).
http://img184.imageshack.us/img184/1434/redgiantuprezjv5.jpg


VirtualDubMod HD Uprez Output Frame Export using resize, deinterlace, general convolution and maybe 1 other thing (can't remember right now).
http://img184.imageshack.us/img184/3846/virtualdubmoduprezgh8.jpg


I really wanna use some uprezzed footage to create new shots for my edit, but I'm starting to fear that I might not be able to.

Can I expect it to get any better than either Red Giant or VirtualDubMod?
Author
Time
I can't elaborate on it right now as it's pretty late, but I'd recommend using the following Avisynth filters and functions:


Denoising with MVDeGrain2

nnediresize2x for 2x enlargement on both horizontal and vertical axis

Spline36Resize for resizing to final resolution

LimitedSharpenFaster with SMode=4 and Strength between 200 and 300


In that order
Author
Time
Thanks, Byakko! I'll keep that in mind. Adywan pointed me in the direction of an actual Hi-Def source for Episode 3. The Avisynth filters and functions might come in handy though.
Author
Time
Please forgive my AVS n00bness, but I've taken your advice above and have come up with the following script. Does this look about right?


----------
loadplugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\trickyloaders\mvtools.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\nnedi.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MT_MAskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrain.dll")

function MVDegrain2i(clip "source", int "overlap", int "dct", int "idx")
{
overlap=default(overlap,0) # overlap value (0 to 4 for blksize=8)
dct=default(dct,0) # use dct=1 for clip with light flicker
idx=default(idx,1) # use various idx for different sources in same script
fields=source.SeparateFields() # separate by fields
backward_vec2 = fields.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=overlap, idx = idx,dct=dct)
forward_vec2 = fields.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=overlap, idx = idx,dct=dct)
backward_vec4 = fields.MVAnalyse(isb = true, delta = 4, pel = 2, overlap=overlap, idx = idx,dct=dct)
forward_vec4 = fields.MVAnalyse(isb = false, delta = 4, pel = 2, overlap=overlap, idx = idx,dct=dct)
fields.MVDegrain2(backward_vec2,forward_vec2,backward_vec4,forward_vec4,thSAD=400,idx=idx)
Weave()
}

function nnediresize2x(clip c, bool pY, bool pU, bool pV)
{
v = c.nnedi(dh=true,Y=pY,U=pU,V=pV).turnleft()
v = v.nnedi(dh=true,Y=pY,U=pU,V=pV).turnright()
return v
}

function nnediresize_YUY2(clip c)
{
cy = c
cu = c.utoy()
cv = c.vtoy()
cy = nnediresize2x(cy,true,false,false)
cu = nnediresize2x(cu,true,false,false)
cv = nnediresize2x(cv,true,false,false)
return ytouv(cu,cv,cy)
}

function nnediresize_YV12(clip c)
{
return nnediresize2x(c,true,true,true)
}

source=mpeg2source("c:\probe.d2v").Crop(0,72,0,-72).spline36resize(1920,820)
mvdegrain2i(source,4,0,1)

LimitedSharpenFaster(Smode=4,strength=250)
----------

Author
Time
Indeed there is - I got a very useful PM from Byakko that helped me finish off my AVS. I've seen very good results so far - obviously it still doesn't quite hold up to the more detailed HD footage, but it does sharpen everything up and blend pretty seemlessly.

Here's my AVS script:

-----

loadplugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\degrainmedian.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\nnedi.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\trickyloaders\mvtools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MT_MAskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrain.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\LeakKernelDeint.dll")

function MVDegrain2i(clip "source", int "overlap", int "dct", int "idx")
{
overlap=default(overlap,0) # overlap value (0 to 4 for blksize=8)
dct=default(dct,0) # use dct=1 for clip with light flicker
idx=default(idx,1) # use various idx for different sources in same script
fields=source.SeparateFields() # separate by fields
backward_vec2 = fields.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=overlap, idx = idx,dct=dct)
forward_vec2 = fields.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=overlap, idx = idx,dct=dct)
backward_vec4 = fields.MVAnalyse(isb = true, delta = 4, pel = 2, overlap=overlap, idx = idx,dct=dct)
forward_vec4 = fields.MVAnalyse(isb = false, delta = 4, pel = 2, overlap=overlap, idx = idx,dct=dct)
fields.MVDegrain2(backward_vec2,forward_vec2,backward_vec4,forward_vec4,thSAD=400,idx=idx)
Weave()
}

function nnediresize2x(clip c, bool pY, bool pU, bool pV)
{
v = c.nnedi(dh=true,Y=pY,U=pU,V=pV).turnleft()
v = v.nnedi(dh=true,Y=pY,U=pU,V=pV).turnright()
return v
}

function nnediresize_YUY2(clip c)
{
cy = c
cu = c.utoy()
cv = c.vtoy()
cy = nnediresize2x(cy,true,false,false)
cu = nnediresize2x(cu,true,false,false)
cv = nnediresize2x(cv,true,false,false)
return ytouv(cu,cv,cy)
}

function nnediresize_YV12(clip c)
{
return nnediresize2x(c,true,true,true)
}

function Soothe(clip sharp, clip orig, int "keep")
{
Assert(sharp.width == orig.width && sharp.height == orig.height,
\ "Soothe: clip dimentions must match!")
keep = default(keep, 24)
keep = (keep>100) ? 100 : (keep<0) ? 0 : keep
KP = string(keep)
diff = mt_makediff(orig,sharp)
diff2 = diff.temporalsoften(1,255,0,32,2)
diff3 = mt_lutxy(diff,diff2, "x 128 - y 128 - * 0 < x 128 - 100 / " + KP
\ + " * 128 + x 128 - abs y 128 - abs > x " + KP
\ + " * y 100 " + KP + " - * + 100 / x ? ?")
return( mt_makediff(orig,diff3,chroma="copy first") )
}


source=mpeg2source("sensor.d2v")


mvdegrain2i(source,4,0,1)
dull=last
sharp=dull.LimitedSharpenFaster(SMode=4,Strength=250)
Soothe(sharp,dull,25)
Crop(0,72,0,-72)
spline36resize(1920,820)


LimitedSharpenFaster(Smode=4,strength=250)

AssumeFPS(23.976)

------

Author
Time
thanx solo21,

now if i can figure out how to use it!!!!

later
-1

[no GOUT in CED?-> GOUT CED]

Author
Time
Here's what you need:

- AVI Synth latest version installed (http://avisynth.org)
- VirtualDubMod installed (virtualdubmod.sourceforge.net)
- various AVI Synth plugins. Once you have it installed, check to see if the files that I load at the top of the script are in the 'plugins' directory. If not, Google them and download them.

Then all you need to do is copy the above script and paste it into Notepad. Save it as a '.AVS' file rather than text - your system should recognise this as an AVISynth file.

The only line you'll need to modify is the following - simply link to your target file:

source=mpeg2source("sensor.d2v")


Then open up the AVS in VirtualDubMod and save it out in whatever format you choose. If you're going to be using this uprez'd footage in an edit, I'd recommend a lossless AVI format - Huffy, etc.

Author
Time
 (Edited)

thanx solo21,

got all the filters,
installed everything,...
but it crashed on limitedSharpenFaster function,
so i got that also from :

http://avisynth.org/mediawiki/LimitedSharpen

which had further dependencies....(crashed on simpleAverage function)..

so now i'm trying to debug that..
-------------------------------------
ok, got everything working, had to replace some functions
with the equivalent mt_* versions, and then it ran..

hmmm..my first working script...lets see how some results come
out...i'll let you know..

later
-1

[no GOUT in CED?-> GOUT CED]

Author
Time

note, will be returning to this thread shortly..

 

later

-1

[no GOUT in CED?-> GOUT CED]

Author
Time

ok, i've played around with it,

and i'm trying it out with the new version of the gout

stabilization script...

 

let's see how it goes..

later

-1

[no GOUT in CED?-> GOUT CED]

Author
Time

Sounds nice.

What codec will you use, MPEG2 or x264?

Please post some screenshots later.

Author
Time
Oldschooljedi said:

Sounds nice.

What codec will you use, MPEG2 or x264?

Please post some screenshots later.

 

 i'm having a lot of trouble with virtualdubMod 1.5.4.1, and trying to

save .h264 or mpg2, with the latest ffdshow, it crashes every time

with any settings, changes make no difference.....

for now, i'm saving as a very high (4k rate) with xvid... i'm going to try some

other filters..... or write a separate script to output the results..

 

yes, i'll post some screenshots when i get some results..

later

-1

[no GOUT in CED?-> GOUT CED]

Author
Time
 (Edited)

i've also been playing around with this program,

super resolution:

======================

http://www.thedeemon.com/VideoEnhancer/

 

here's a few samples, of the upsample to 720p...

i still can't get the video output to work though,,

looks promising..

 

on the left is the GOUT using the gforce script,

and the right is the upsampled version..

===============================

http://img291.imageshack.us/img291/6269/uprez720p01lp0.jpg

http://img508.imageshack.us/img508/7264/uprez720p02pm2.jpg

http://img508.imageshack.us/img508/7500/uprez720p03mf9.jpg

http://img388.imageshack.us/img388/8528/uprez720p04dy2.jpg

 

later

-1

 

 

[no GOUT in CED?-> GOUT CED]

Author
Time

ok,

here's some results using solo 21's script for

upscaling to 720p... (i will have shots comparing it

adywans version 1080p->720p) later on..

 

fox logo:

=============================================

gout 1

-------

http://img186.imageshack.us/img186/5766/gout01jk1.jpg

 

gout 1 crop section

-------------------------------------------------

http://img55.imageshack.us/img55/375/g720p01cropii4.jpg

 

gout 1 -> (simple pixel resizing to 720p)

-------------------------------------------------

http://img512.imageshack.us/img512/2854/gout01720resizecropei8.jpg

 

solo 21 ->  gout 1 upscaling to 720p

-------------------------------------------------

http://img55.imageshack.us/img55/7104/g720p01cropfv9.jpg

 

later

-1

[no GOUT in CED?-> GOUT CED]

Author
Time

here's some more results using solo 21's script for

upscaling to 720p...

 

lucas logo:

=============================================

gout 2

-------

http://img55.imageshack.us/img55/5600/gout02pr4.jpg

 

gout 2 crop

-------

http://img357.imageshack.us/img357/5334/gout02cropxo2.jpg

 

gout 2 => simple resize 720p

-------

http://img357.imageshack.us/img357/3104/gout02resizecropcc7.jpg

 

solo21 -> gout 2 upscaling 720p

-------

http://img357.imageshack.us/img357/3711/g720p02croprh5.jpg

later

-1

[no GOUT in CED?-> GOUT CED]

Author
Time
 (Edited)

here's some more results using solo 21's script for

upscaling to 720p...

 

a long time ago:

=============================================

gout 3

-------

http://img353.imageshack.us/img353/2682/gout03yz1.jpg

 

 

gout 3 crop

-------
http://img353.imageshack.us/img353/5339/gout03cropzp7.jpg

 

 

gout 3 => simple resize 720p

-------
http://img353.imageshack.us/img353/8385/gout03cropresizewx2.jpg

 

 

solo21 -> gout 3 upscaling 720p

-------
http://img357.imageshack.us/img357/1019/g720p03cropil7.jpg

 

 

 

 

later

-1

[no GOUT in CED?-> GOUT CED]

Author
Time
 (Edited)

here's some more results using solo 21's script for

upscaling to 720p...  with a comparison to

adywans (1080p->720p) ..

[****NOTE: of course there will be a color change,

and different aspect ratio....]

 

star wars logo:

=============================================

gout 4

-------

http://img357.imageshack.us/img357/4553/gout87904iv1.jpg

 

 

gout 4 crop

-------
http://img353.imageshack.us/img353/1852/gout87904croptg2.jpg

 

 

gout 4 => simple resize 720p

-------
http://img353.imageshack.us/img353/8475/gout87904cropresizecm6.jpg

 

 

solo21 -> gout 4 upscaling 720p

-------
http://img357.imageshack.us/img357/3301/g720p04cropresizedx9.jpg

 

adywan -> gout 4 1080p->720p
-------
http://img353.imageshack.us/img353/76/a720p04x125ratiocropch7.jpg

 

ok  , enough with the logos, lets move onto the images!

 

later

-1

[no GOUT in CED?-> GOUT CED]

Author
Time
 (Edited)

here's some more results using solo 21's script for

upscaling to 720p...

 

star destroyer:

=============================================

gout 5

-------

http://img353.imageshack.us/img353/9960/gout424005nw1.jpg

 

 

gout 5 crop

-------
http://img357.imageshack.us/img357/2241/gout424005cropfw3.jpg

 

 

gout 5 => simple resize 720p

-------
http://img353.imageshack.us/img353/1759/gout424005cropresizehf2.jpg

 

 

solo21 -> gout 5 upscaling 720p

-------
http://img201.imageshack.us/img201/3212/g720p05cropfz4.jpg


gout 5 full image 720p
------

http://img201.imageshack.us/img201/2994/g720p05hr6.th.jpghttp://img201.imageshack.us/images/thpix.gif

 

adywan -> gout 5 1080p->720p
-------
http://img222.imageshack.us/img222/8242/a720p05x125ratiocroplb5.jpg

 

adywan 720p full image:

----------

http://img201.imageshack.us/img201/9739/a720p05ev7.th.jpghttp://img201.imageshack.us/images/thpix.gif

 

later

-1

 

[no GOUT in CED?-> GOUT CED]

Author
Time
 (Edited)
negative1 said:

here's some more results using solo 21's script for

upscaling to 720p...

star destroyer:

=============================================


gout 5 full image 720p
------

http://img201.imageshack.us/img201/2994/g720p05hr6.th.jpghttp://img201.imageshack.us/images/thpix.gif

 

later

-1

 

How did you do that?

GOUT -> Solo 21-script

or

GOUT->g-force-script->Solo 21-script?

 

Author
Time
Oldschooljedi said:
negative1 said:

How did you do that?

GOUT -> Solo 21-script

or

GOUT->g-force-script->Solo 21-script?

 

 

 oops... you're right, that's what i meant..

 

later

-1

[no GOUT in CED?-> GOUT CED]

Author
Time

here's some more results using solo 21's script for

upscaling to 720p...

 

r2d2 and c3po:

=============================================

gout 6

-------

http://img523.imageshack.us/img523/5303/gout480506dl8.jpg

 

 

gout 6 crop

-------
http://img184.imageshack.us/img184/1776/gout480506croplf6.jpg

 

 

gout 6 => simple resize 720p

-------
http://img184.imageshack.us/img184/4061/gout480506cropresizeap3.jpg

 

 

solo21 -> gout 6 upscaling 720p

-------
http://img523.imageshack.us/img523/8796/g720p06cropnh2.jpg

 

adywan -> gout 6 1080p->720p
-------
http://img523.imageshack.us/img523/3839/a720p06cropgi9.jpg

 

 

later

-1

[no GOUT in CED?-> GOUT CED]

Author
Time

here's some more results using solo 21's script for

upscaling to 720p...

 

rebel trooper:

=============================================

gout 7

-------

http://img523.imageshack.us/img523/7084/gout631507rn1.jpg

 

 

gout 7 crop

-------
http://img146.imageshack.us/img146/2343/gout631507cropvz6.jpg

 

 

gout 7 => simple resize 720p

-------
http://img184.imageshack.us/img184/7945/gout631507resizecropzz1.jpg

 

 

solo21 -> gout 7 upscaling 720p

-------
http://img146.imageshack.us/img146/7809/g720p631507cropdh1.jpg

 

adywan -> gout 7 1080p->720p
-------
http://img146.imageshack.us/img146/4030/a720p07ratiocropcq1.jpg

 

 

later

-1

[no GOUT in CED?-> GOUT CED]

Author
Time

So where is this you keep mentioning, solo 21's script?

Author
Time
 (Edited)
dark_jedi said:

So where is this you keep mentioning, solo 21's script?

 

 post #6 above.. and #8

 

but i had to make modifications to make it work, see post #9

as i mentioned above..

 

later

-1

[no GOUT in CED?-> GOUT CED]