Upscale
- jt_x
- Joined: Wed Oct 17, 2007 10:13 am
Re: Upscale
that's good. If you can't tell the difference then it looks good either way right ?Tsiahiv wrote:[...] but I can't really tell the difference [...]
I don't know. What looks better ?Tsiahiv wrote:[...] Is it worth it? [...]
here is an example of what I work on currently:
Spoiler :
Does it look good in most scenes upscaled ? some scenes might look worse than others, some details are not meant to be upscaled and can look worse ...
code for right part:
Code: Select all
MPEG2Source("I:\Movies_2\extracted 1\Hentai\Soredemo DVDs\Vol1\dgindex.d2v")#.info
#Deinterlacing:
QTGMC() # very slow
SelectEven() # Add this line to keep original frame rate, leave it out for smoother doubled frame rate
# Your favourite 8-bit denoiser here, doing the main job
denoised = dfttest (sigma=16)
# Restores a bit of noise
mt_lutxy (last, denoised, expr="x y < y 1 - x y > y 1 + y ? ?", y=3, u=3, v=3)
super = last.MSuper ()
super_a = denoised.MSuper ()
# You could also reuse the vectors found in a previous processing stage
vf1 = super_a.MAnalyse (isb=false, delta=1, overlap=4, blksize=16)
vb1 = super_a.MAnalyse (isb=true, delta=1, overlap=4, blksize=16)
# Turns remaining noise into 16-bit gradients
cf1 = MCompensate (super, vf1, thSAD=200)
cb1 = MCompensate (super, vb1, thSAD=200)
Interleave (cf1, last, cb1)
dfttest (sigma=1.0, tbsize=3, lsb=true)
SelectEvery (3, 1)
# Additional smoothing pass and back to 8 bits
GradFun3 (thr=0.25, lsb_in=true)
Spline36Resize(848,480)
Code: Select all
MPEG2Source("I:\Movies_2\extracted 1\Hentai\Soredemo DVDs\Vol1\dgindex.d2v")#.info
#Deinterlacing:
QTGMC() # very slow
SelectEven() # Add this line to keep original frame rate, leave it out for smoother doubled frame rate
# Your favourite 8-bit denoiser here, doing the main job
denoised = dfttest (sigma=16)
# Restores a bit of noise
mt_lutxy (last, denoised, expr="x y < y 1 - x y > y 1 + y ? ?", y=3, u=3, v=3)
super = last.MSuper ()
super_a = denoised.MSuper ()
# You could also reuse the vectors found in a previous processing stage
vf1 = super_a.MAnalyse (isb=false, delta=1, overlap=4, blksize=16)
vb1 = super_a.MAnalyse (isb=true, delta=1, overlap=4, blksize=16)
# Turns remaining noise into 16-bit gradients
cf1 = MCompensate (super, vf1, thSAD=200)
cb1 = MCompensate (super, vb1, thSAD=200)
Interleave (cf1, last, cb1)
dfttest (sigma=1.0, tbsize=3, lsb=true)
SelectEvery (3, 1)
# Additional smoothing pass and back to 8 bits
GradFun3 (thr=0.25, lsb_in=true)
AnimeUpscale(FullHD=false, ConvertMatrix=true, doSharpening=false)
KNLMeansCL(D=0, A=2, h=1.2, device_type="GPU") # light preset
lsfmodlight(strength=100).fastlinedarkenmod(strength=80,thinning=15)
- Tsiahiv
- Joined: Sun May 24, 2015 1:33 pm
Re: Upscale
Thanks. Yeah I was trying to upscale some Bleach and Naruto for some projects later on this year. Half the shows are in 480 and the other half is in 720p so it makes it a bit strange in terms of coherence. You're editing hentai? Lmaooo. I don't think it's possible to avoid the artifacts at this point.
jt_x wrote:that's good. If you can't tell the difference then it looks good either way right ?Tsiahiv wrote:[...] but I can't really tell the difference [...]
I don't know. What looks better ?Tsiahiv wrote:[...] Is it worth it? [...]
here is an example of what I work on currently:it highly depends on what your intentions are, like what do you want to accomplish with the video ?Spoiler :
Does it look good in most scenes upscaled ? some scenes might look worse than others, some details are not meant to be upscaled and can look worse ...
code for right part:code for left part:Code: Select all
MPEG2Source("I:\Movies_2\extracted 1\Hentai\Soredemo DVDs\Vol1\dgindex.d2v")#.info #Deinterlacing: QTGMC() # very slow SelectEven() # Add this line to keep original frame rate, leave it out for smoother doubled frame rate # Your favourite 8-bit denoiser here, doing the main job denoised = dfttest (sigma=16) # Restores a bit of noise mt_lutxy (last, denoised, expr="x y < y 1 - x y > y 1 + y ? ?", y=3, u=3, v=3) super = last.MSuper () super_a = denoised.MSuper () # You could also reuse the vectors found in a previous processing stage vf1 = super_a.MAnalyse (isb=false, delta=1, overlap=4, blksize=16) vb1 = super_a.MAnalyse (isb=true, delta=1, overlap=4, blksize=16) # Turns remaining noise into 16-bit gradients cf1 = MCompensate (super, vf1, thSAD=200) cb1 = MCompensate (super, vb1, thSAD=200) Interleave (cf1, last, cb1) dfttest (sigma=1.0, tbsize=3, lsb=true) SelectEvery (3, 1) # Additional smoothing pass and back to 8 bits GradFun3 (thr=0.25, lsb_in=true) Spline36Resize(848,480)
that part in the middle is just some debanding taken from here: http://avisynth.nl/index.php/Dither_toolsCode: Select all
MPEG2Source("I:\Movies_2\extracted 1\Hentai\Soredemo DVDs\Vol1\dgindex.d2v")#.info #Deinterlacing: QTGMC() # very slow SelectEven() # Add this line to keep original frame rate, leave it out for smoother doubled frame rate # Your favourite 8-bit denoiser here, doing the main job denoised = dfttest (sigma=16) # Restores a bit of noise mt_lutxy (last, denoised, expr="x y < y 1 - x y > y 1 + y ? ?", y=3, u=3, v=3) super = last.MSuper () super_a = denoised.MSuper () # You could also reuse the vectors found in a previous processing stage vf1 = super_a.MAnalyse (isb=false, delta=1, overlap=4, blksize=16) vb1 = super_a.MAnalyse (isb=true, delta=1, overlap=4, blksize=16) # Turns remaining noise into 16-bit gradients cf1 = MCompensate (super, vf1, thSAD=200) cb1 = MCompensate (super, vb1, thSAD=200) Interleave (cf1, last, cb1) dfttest (sigma=1.0, tbsize=3, lsb=true) SelectEvery (3, 1) # Additional smoothing pass and back to 8 bits GradFun3 (thr=0.25, lsb_in=true) AnimeUpscale(FullHD=false, ConvertMatrix=true, doSharpening=false) KNLMeansCL(D=0, A=2, h=1.2, device_type="GPU") # light preset lsfmodlight(strength=100).fastlinedarkenmod(strength=80,thinning=15)
- jt_x
- Joined: Wed Oct 17, 2007 10:13 am
Re: Upscale
yeah in this case it might be hard to avoid upscaling ...Tsiahiv wrote:Thanks. Yeah I was trying to upscale some Bleach and Naruto for some projects later on this year. Half the shows are in 480 and the other half is in 720p so it makes it a bit strange in terms of coherence.
Yes I do In fact I just recently announced like 3 together (NSFW)Tsiahiv wrote: You're editing hentai? Lmaooo.
yeah some artifacts might remain. Be sure to try out some spatial denoiser. I'd suggest using KNLMeansCL it worked well for me so far.Tsiahiv wrote: I don't think it's possible to avoid the artifacts at this point.
- l33tmeatwad
- Joined: Wed Feb 16, 2005 3:22 pm
- Location: Christiansburg, VA
- Contact:
Re: Upscale
Just a comment on the sources specifically, Naruto and Bleach in the early seasons when it was animated in SD tended to have a lot of light colored/blurry lines and neither source really upscales that great. My script works better with digitally animated shows that tend to have more defined lines and with older cel animated sources that don't have much grain/noise.
Software & Guides: AMVpack | AMV 101 | AviSynth 101 | VapourSynth 101
PixelBlended Studios: Website | Twitter | YouTube
PixelBlended Studios: Website | Twitter | YouTube