Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
6th April 2024, 09:29 | #1 | Link |
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 2,582
|
awarpsharp2 detail shrink
I am trying to rescale the anime 'The dangers in my heart' from BD, as it is too blurred and the black lines are too soft.
Tried both: LoadPlugin("D:\Eseguibili\Media\DGDecNV\DGDecodeNV.dll") DGSource("M:\In\The dangers 1 00000.dgi") Convertbits(16) libplacebo_Resample(1358,764,filter="lanczos") nnedi3CL_rpow2(rfactor=2, nsize=6, nns=4, qual=2, etype=0, cshift="lanczos") Edgelevel(strength=20,bc=10) libplacebo_Resample(1920,1080,filter="lanczos") libplacebo_Deband(iterations=3,temporal=true) fmtc_bitdepth (bits=10,dmode=7) and LoadPlugin("D:\Eseguibili\Media\DGDecNV\DGDecodeNV.dll") DGSource("M:\In\The dangers 1 00000.dgi") Convertbits(16) libplacebo_Resample(1358,764,filter="lanczos") nnedi3CL_rpow2(rfactor=2, nsize=6, nns=4, qual=2, etype=0, cshift="lanczos") aWarpSharp2(thresh=128, blur=2, type=1, depth=4, chroma=4) Edgelevel(strength=20,bc=10) libplacebo_Resample(1920,1080,filter="lanczos") libplacebo_Deband(iterations=3,temporal=true) fmtc_bitdepth (bits=10,dmode=7) The second gives the best results in the line definition but I can't cope with the detail shrink that awarpsharp2 gives. Any help about how to deal with that? Suggested values?
__________________
@turment on Telegram |
10th April 2024, 18:09 | #2 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,391
|
Accidentially, I'm playing with aWarpSharp2 these days, however in the haze circle of natural content with halos and SD>HD upscaling.
You have filters in your script that I've never heard of, seems I'm out of the game for more than just a few days. Regarding aWarpSharp2: 1) read the docs. "type=1 needs 8x more blur passes than type=0" => you should use blur=16 rather than blur=2, or something like that. 2) consider using 1st/2nd derivative warp processing. The "geometrical distortions" of warpsharp are an old story. It can be improved (not perfectly, but often better) by applying a highpass difference map, applying the warp to that highpass, then applying the warped highpass to the lowpass. Like: src = whatever lowpass = src.bicubicresize(half). [removegrain(4)]. bicubicresize(original,1,0) diff = mt_makediff(lowpass,src) diffWarp = diff.aWarpSharp2(...) mt_makediff(lowpass,diffWarp) #.mergechroma(src) I found that this way, halo shrinking & line thinning produce less geometrical distortions in many occasions. Within certain limits. Resize/Blur values need to be adjusted acc. to sources and their special problems. WarpSharp depth still shouldn't be too large, but depth=4 is a reasonable value. Maype, try concatenating a series of aWarpSharp2 with depth=5 + depth=4 + depth=3
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
10th April 2024, 20:45 | #3 | Link | |
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 2,582
|
Quote:
Here and here you can find the difference between original, rescale w/o awarp2 and rescale w/ awarp2. The entire picture seems to be zoomed out and the small details, such as the shining of the eyes get smaller.
__________________
@turment on Telegram |
|
10th April 2024, 21:28 | #4 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,391
|
Wow, that's about the level where you Anime guys always lose me. From that comparison, I don't see any problem with the warpsharp processing. If anything, the small details of the non-warpsharp processed image seem a tiny bit widened, and the warpsharp version puts it just right back. Maybe it's just my weak old eyes, but we're talking about subpixel-differences, aren't we.
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
10th April 2024, 22:51 | #5 | Link |
Registered User
Join Date: Aug 2017
Location: Italy
Posts: 115
|
Welcome back, master!
__________________
A channel on S-VHS / VHS capture and AviSynth restoration https://www.youtube.com/channel/UCMs...h1MmNAs7I8nu4g |
|
|