Log in

View Full Version : Help on upscaling an anime


Khyinn
7th January 2014, 14:07
Hi,

First, i want to precise that this is for my own usage.

I want to upscale an anime to 720p. I have RAWs from DVD. I want my encode matches this quality (or better but i don't think it's possible to do better) :

http://puu.sh/6cDgc.jpg

Currently, that's what i have :

http://puu.sh/6cDhQ.jpg

Colors aren't good but this can be easily tweaked with tweak() :) Crop isn't good too but that's not a problem i can't deal with :)

My encode has a lot of "blur", probably the result of the upscale.

Here is my script (probably as bad as my experience...) :

FFMpegSource2("C:\Enco\046.mkv", vtrack = -1, atrack = -1, timecodes="timecodes_file.txt")
ConvertToYV12()
ConvertAudioTo16Bit()
SetMTMode(2)
Tdecimate(CycleR=3, Cycle=5)
AssumeFPS(23.976, true)
clip1=Trim(2663, 16063).crop(0,56,-0,-56).nnedi3_rpow2(rfactor=2,cshift="spline36resize",fwidth=1280,fheight=720,ep0=5)
clip2=Trim(16064, 16412).crop(0,0,-0,-112).nnedi3_rpow2(rfactor=2,cshift="spline36resize",fwidth=1280,fheight=720,ep0=5)
clip3=Trim(16413, 32920).crop(0,56,-0,-56).nnedi3_rpow2(rfactor=2,cshift="spline36resize",fwidth=1280,fheight=720,ep0=5)
clip4=Trim(32921, 32991).crop(0,36,-0,-36).nnedi3_rpow2(rfactor=2,cshift="spline36resize",fwidth=1280,fheight=720,ep0=5)
clip1++clip2++clip3++clip4
RemoveGrain()
fft3dfilter()
Deblock()
LSFmod(defaults="slow", strength=200)
DeHalo_alpha_2BD()
return(last)

Here is a 15sec sample to make some tests :

Download 15sec sample (https://mega.co.nz/#!dIh20ZQZ!Dn3hVji1OCcYG6sjH8uYISGMS3lyXfQ5OP-N6VSA2Uo)

Please, can anyone help me improve this ? :)

feisty2
7th January 2014, 15:12
delete removegrain,fft3dfilter,deblock use mdegrain instead
delete lsfmod use awarp4 instead

Khyinn
7th January 2014, 16:57
Thanks for your suggestion but i've tried replacing what you said by :

super = MSuper(pel=2, sharp=1)
backward_vec2 = MAnalyse(super, isb = true, delta = 2, overlap=4)
backward_vec1 = MAnalyse(super, isb = true, delta = 1, overlap=4)
forward_vec1 = MAnalyse(super, isb = false, delta = 1, overlap=4)
forward_vec2 = MAnalyse(super, isb = false, delta = 2, overlap=4)
MDegrain2(super, backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400)
aWarp4(nnedi3_rpow2(rfactor=2).Spline36Resize(width*4, height*4, 0.25, 0.25), aSobel().aBlur(), depth=3)

Seems to produce very same result.

Maybe you can give me some details ?

Guest
7th January 2014, 17:23
What is the source of the encode whose quality you wish to match?

Khyinn
7th January 2014, 18:02
It's a transport stream of the anime wich has been aired in japan. But they haven't aired all episodes so i have to use DVD source to encode the others.

Guest
7th January 2014, 18:27
OK. Please post links to corresponding unprocessed source samples of both the TS and the VOB that we may use to analyze your issue. You may cut them with DGSplit, upload them to (e.g.) mediafire.com, and post the links here.

Have you considered the possibility that the TS may have been sourced from higher resolution masters, and so the two may not be comparable in the way that you assume, i.e., it's unlikely that the TS broadcast originated from a DVD? Just because you desire a certain upsampling result doesn't mean that it is necessarily achievable. Finally, we have many threads here on quality upsampling; what is the need for yet another one?

One more question: where did you get the DVD "RAW"? You have used an MKV in your script and the link you gave is an MP4. That raises big red flags for us. If you can't give us a VOB fragment, the thread will likely be closed for rule 6.

Khyinn
7th January 2014, 18:45
Thanks for your answer.

You're probably right about the TS sourced from higher resolution masters.

My only real problem is the "white" pixels (not really white but i don't know who to say that in english, you probably see what i mean) between the character's mouth.
Assuming that i can't produce exactly the same quality, i'm wondering if i can at least correct this.
I've tried some dehaloing scripts but it's not really good or i'm probably doing it wrong.
Then, some blur can be corrected with line thinning but produces more "halo".

EDIT : i have french DVDs that are crap compared to jap DVds, that's why i've downloaded JAP DVD MKVs. I can provide VOB fragments of my own DVDs but they aren't exactly the same as those MKVs.

Sorry if this is against the rules, feel free to close this thread.

Guest
7th January 2014, 18:56
Please read and follow our forum rules:

http://forum.doom9.org/forum-rules.htm

You put our forum in jeopardy with threads like this. Thank you for your understanding.