|
|
Hey, I recently filtered a anime music video for a friend. He only had the actual mpeg and not the project or the raw which made it difficult. I so how pulled of a decent encode, however know I lost the script in a reformat . Anyways I tryed to remodel the script and no luck.ConvertToYV12()
Tweak(bright=5, cont=.95, sat=1.4, hue=0, coring=false)
Levels(0, 1.1, 255, 0, 255)
hqdn3d(2)
awarpsharp
crop(8,0,-4,0)
sharpResize(720,480)Here is a sample of the video , if someone could remodel or do the script that would be so much appericated.
Can someone please give me a hand.
you're resizing a 352x240 video to 720x480?
Why?
I'll try to give it a go soon. What can you tell me in advance about it?
Will sorry, I not trying to resize back i'm leaveing it as is. It was dvd source, then he used mjpeg to edit and exported as mjpeg and then used vdub to cut of the mjpeg logo. He not a codec guy . If you got any other questions feel free to post thanx again Chainmax it very much appericated.
I wasn't trying to be mean or anything just wondering.
I got something that was remotely watchable useing the following:
Code:
# apparently I forgot to decimate the source down to 23.976 fps, I'd
#suggest:
#tdecimate(mode=1)
DirectShowSource(quot;C:\Documents and Settings\Marc\Desktop\test.mpgquot;)
converttoyv12()
degrainmedian(mode=1)
removegrain(mode=17)
fluxsmoothst()
hqdn3d(2)
ffdshow(quot;defaultquot;) #spp deblocking about %28-%36 strength
crop(8,0,-4,0)
lanczos4resize(720,480)
awarpsharp(depth=24, bluclevel=4)
removegrain(mode=18)
fluxsmoothst()
It's still kind of blurry and a good amount of detail was lost. It's the first filterset that came to mind really. I'm sure there's a better way to do it, but I don't do a lot of upsizing.
Here's the sample recompressed w/ x264 revision 389 at 700kbps:
vid.php?file=...leanupTest.mp4
No no, I totually apperciated your help Dryfire that was a error ( the resizeing) on my part. Sorry, Seems very blurring ya but clean , that script was so prefect I wish I never lost it, O well, Maybe I make something better, going to keep playing around, If you could Do another try on the script Dryfire that would be most appericated. thanx again
-Gavin
I think I managed to remove pretty much all blocking. I'll post an encode soon.
thanx appericated, If you could possibley post the whole encode, or send the encode to me or show the scirpt that would be most appericated thanx again.
-Gavo
Heres my script:
Code:
LoadPlugin(quot;D:\Media\Plugins\SmoothD.dllquot;)
LoadPlugin(quot;D:\Media\Plugins\WarpSharp.dllquot;)
LoadPlugin(quot;D:\Media\Plugins\MipSmooth.dllquot;)
Import(quot;D:\Media\Plugins\LimitedSharpen().avsquot;)
AviSource(quot;D:\Cleanup\Uncompressed.aviquot;)
FFdshow(quot;Deblock2quot;)#SPP Deblocking at strength 15 with soft threshold
FFdshow(quot;resizequot;)#spline resize to 720*480
smoothd(2)
MipSmooth()
FFdshow(quot;Deblockquot;)#SPP Deblocking at strength 25 with soft threshold
Warpsharp()
LimitedSharpen()
WarpSharp()
LimitedSharpen(lmode=2)#this is optional and adds a bit of sharpness in the background
#LimitedSharpen(lmode=2)#this is optional and adds a bit of sharpness in the background
Heres an encoded sample:Test
the raw script output is imo a lot better then that.
And another script from me.
Code:
deblock()
eedi2().turnleft().eedi2().turnright()
a = repair(last.deen(quot;a2dquot;,1,9,11), last.deen(quot;a2dquot;,1,9,11).unfilter(-60,-60),2,1,1)
mask = YV12lUTxy(last, a, yexpr=quot;y x lt; 0 255 ?quot;, uexpr=quot;xquot;, vexpr=quot;xquot;)
maskedmerge(a,last,mask)
deen(quot;a2dquot;,4,5,7)
ttempSmooth()
repair(last, last.unfilter(-44,-44),1,1,1)
deen(quot;a3dquot;,2,3,7)
#sharping + cropping + second resizingSlow, not so optimized and a bit washed, but the result looks not so bad.
There all are for very smooth, I not to concerned about the artifacts I just want the sharpness to see be there. It hard to do I know. It just seems whatever you do you oversmooth it. Hmmm Still very nice job but I dont know what to do about this oversmoothness
So you just want it to be sharp. Ok, then try these scripts.
A bit sharper:
Code:
LoadPlugin(quot;D:\Media\Plugins\SmoothD.dllquot;)
LoadPlugin(quot;D:\Media\Plugins\WarpSharp.dllquot;)
LoadPlugin(quot;D:\Media\Plugins\MipSmooth.dllquot;)
Import(quot;D:\Media\Plugins\LimitedSharpen().avsquot;)
AviSource(quot;D:\Cleanup\Uncompressed.aviquot;)
smoothd(1)
FFdshow(quot;resizequot;)#spline resize to 720*480
smoothd(1)
MipSmooth()
Warpsharp()
smoothd(1)
LimitedSharpen()
WarpSharp()
LimitedSharpen(lmode=2)MipSmooth()
Warpsharp()
WarpSharp()
LimitedSharpen(lmode=2)
A lot Sharper:
Code:
LoadPlugin(quot;D:\Media\Plugins\SmoothD.dllquot;)
LoadPlugin(quot;D:\Media\Plugins\WarpSharp.dllquot;)
LoadPlugin(quot;D:\Media\Plugins\MipSmooth.dllquot;)
Import(quot;D:\Media\Plugins\LimitedSharpen().avsquot;)
AviSource(quot;D:\Cleanup\Uncompressed.aviquot;)
FFdshow(quot;resizequot;)#spline resize to 720*480
smoothd(1)
MipSmooth()
Warpsharp()
smoothd(1)
LimitedSharpen()
WarpSharp()
LimitedSharpen(lmode=2)MipSmooth()
Warpsharp()
LimitedSharpen()
WarpSharp()
LimitedSharpen(lmode=2)Just a small change gives the output a good sharpness
Code:
deblock()
eedi2().turnleft().eedi2().turnright()
a = repair(last.deen(quot;a2dquot;,1,9,11), last.deen(quot;a2dquot;,1,9,11).unfilter(-60,-60),2,1,1)
mask = YV12lUTxy(last, a, yexpr=quot;y x lt; 0 255 ?quot;, uexpr=quot;xquot;, vexpr=quot;xquot;)
maskedmerge(a,last,mask)
deen(quot;a2dquot;,2,5,7)
ttempSmooth()
repair(last, last.unfilter(-33,-33),1,1,1)
deen(quot;a3dquot;,2,3,7)
LimitedSharpen()
#maybe also fastlinedarken + cropping + resizingHow about this?
(OT) Momonster, thanks for the idea. I just used:
Code:
deblock()
eedi2().turnleft().eedi2().turnright()
lanczosresize(width/2,height/2)
on this horrific Cinepak (gag) music video, and it looks amazing! Slooooooooooow but awesome. I still have to throw random other filters on top but it's a great base. I'm going to have to get the others off my ozzy CDs now!
Here's my script:Code:
SetMemoryMax(Yourmem/2)
LoadPlugin(quot;X:\wherever\CNR2.dllquot;)
LoadPlugin(quot;X:\wherever\MaskTools.dllquot;)
LoadPlugin(quot;X:\wherever\DCTFilter.dllquot;)
LoadPlugin(quot;X:\wherever\DGDecode.dllquot;)
Import(quot;X:\wherever\DeBlock_QED.avsquot;)
LoadPlugin(quot;X:\wherever\SSETools.dllquot;)
LoadPlugin(quot;X:\wherever\RemoveGrain.dllquot;)
LoadPlugin(quot;X:\wherever\Repair.dllquot;)
Import(quot;X:\wherever\LRemoveDust.avsquot;)
LoadPlugin(quot;X:\wherever\EEDI2.dllquot;)
LoadPlugin(quot;X:\wherever\aWarpSharp.dllquot;)
Import(quot;X:\wherever\LimitedSharpen_(modded-27Nov2005).avsquot;)DirectShowSource(quot;X:\wherever\test.mpgquot;,fps=29.97,audio=false)
ConvertToYV12()
Cnr2(quot;xxxquot;,4,5,255)
Levels(0,1.1,255,16,235)
DeBlock_QED()
LRemoveDust_YV12(17,2)
Crop(8,0,-4,0)
TurnRight().EEDI2().TurnLeft()
EEDI2()
Lanczos4Resize(720,480)
ffdshow(quot;defaultquot;) lt;-- go to quot;video decoder configurationquot;, enable postprocessing, check quot;SPP deblockingquot; and set processing strength at 60%
aWarpSharp(depth=16,cm=1)
LimitedSharpen(SMode=4,LMode=3,Strength=300,wide=true)
If you want more sharpness, you can add an extra sharpening step (MSharpen, WarpSharp like it's been recommended here) right after the cropping, and/or substitute Lanczos4Resize for GaussResize(720,480,p) with p set to something between 80 and 100. If you do that, you might also want to change DeBlock_QED from default settings to (quant1=30,quant2=60) or higher, and/or increase SPP's strength by steps of 10%.
As an alternative to LRemoveDust_YV12(17,2), you should try DeGrainMedian(limitY=5,limitUV=7,mode=0), as it might remove more artifacting without taking away so much detail. |
|