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. |
![]() |
#6 | Link |
Retired AviSynth Dev ;)
![]() Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
|
You could look at ffdshow's msharpen implementation. I attached the source of the sharpen filters. There is a C and assembler version a little down. Look at my warpsharp port, if you'd like to see how the different variables are mapped.
I converted Warpsharp/Xsharpen, but didn't want to release msharpen, since you said you were working on it yourself. Edit: I should not that the attachment only contains a source file.
__________________
Regards, sh0dan // VoxPod Last edited by sh0dan; 14th January 2003 at 08:54. |
![]() |
![]() |
![]() |
#8 | Link |
Retired AviSynth Dev ;)
![]() Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
|
No - I didn't - the code from ffdshow isn't pretty, but it seems to do the job well. It only processes luma, but for sharpening, that's probably better. There might be some pitch issues, since ffdshow assumes input pitch = output pitch.
__________________
Regards, sh0dan // VoxPod |
![]() |
![]() |
![]() |
#10 | Link | |
Guest
Join Date: Jan 2002
Posts: 21,901
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#11 | Link |
easily bamboozled user
Join Date: Sep 2002
Location: Atlanta
Posts: 373
|
Sorry to bump this old thread, but I have another question concerning where in my script I should use the MSharpen filter. Specifically, my question is whether I should use it before or after convolution3d. I just want to be sure that I don't inadvertantly screw up the quality (even if it isn't noticeable, I just want to be on the safe side).
Here's my script: Code:
LoadPlugin("C:\Program Files\GordianKnot\mpeg2dec.dll") LoadPlugin("C:\Program Files\GordianKnot\Avisynth2\plugins\Decomb.dll") LoadPlugin("C:\Program Files\GordianKnot\Avisynth2\plugins\MSharpen.dll") LoadPlugin("C:\Program Files\GordianKnot\Avisynth2\plugins\Convolution3D.dll") mpeg2source("C:\Akira\akira_part1_init_02.d2v") FieldDeinterlace() Convolution3d(preset="animeLQ") MSharpen(threshold=15) BicubicResize(512,288) |
![]() |
![]() |
![]() |
#12 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
I don't like MSharpen after FieldDeinterlace because it amplifies residual combing. Better to do it this way:
SeparateFields() MSharpen() Weave() FieldDeinterlace() Convolution3d() BicubicResize() I think it's OK before Convolution3d() as long as you use a reasonable threshold for MSharpen(). The areas you want Convolution3d() to clean up are the non-edge areas of MSharpen(). |
![]() |
![]() |
![]() |
#13 | Link |
easily bamboozled user
Join Date: Sep 2002
Location: Atlanta
Posts: 373
|
Thanks, I'll try that. Although, after using forced-FILM there aren't very many combed frames, and the ones that are are often in such dark and noisy scenes that after resizing, the frame already looks like it was compressed in mpeg4
![]() |
![]() |
![]() |
![]() |
#14 | Link | |
Guest
Join Date: Jan 2002
Posts: 21,901
|
Quote:
|
|
![]() |
![]() |
![]() |
#16 | Link | |
Retired AviSynth Dev ;)
![]() Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
|
Did you modify it to only sharpen luma in YV12, or is it just a leftover from the older YUY2 documentation:
Quote:
__________________
Regards, sh0dan // VoxPod |
|
![]() |
![]() |
![]() |
#17 | Link | |
Guest
Join Date: Jan 2002
Posts: 21,901
|
Quote:
The new help file also needs to say Version 1.10 also. Did you miss that? ![]() Thanks again for submitting this improvement. |
|
![]() |
![]() |
![]() |
#19 | Link |
TotalEclipseOfTheBrain
Join Date: Sep 2002
Posts: 347
|
Hi Neuron,
hmmm... I get a green screen with this one : LoadPlugin("C:\video\avsfilters\yv12\MPEG2Dec3.dll") LoadPlugin("C:\video\avsfilters\yv12\msharpen.dll") mpeg2source("F:\tests\vts_01.d2v",cpu=0,idct=2) Crop(26,76,668,424) MSharpen() BicubicResize(448,320,0,0.5) AddBorders(16,128,16,128) Something with cropping values I guess ? Regards, FuPP. Using avs 2.51 build 04/04 |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|