It looks fine after that. Thanks again everyone for helping me (and teaching me)!
+ Reply to Thread
Results 31 to 43 of 43
-
-
Without using AssumeFPS my encoding came out at exactly 50 fps. Maybe a different version of ffVideoSource()? I updated about three months ago.
-
Sorry to bump this old thread of mine, but the problem with the video I have here looks about the same. Hell, they're even the same show.
Difference is, this video is progressive instead of interlaced (576i->480p) and not upscaled. The bitrate is also a bit horrible, causing artifacts.
1. Is there a way to get rid of this:
Script doesn't, with or without SelectEven()
2. Is it possible to reduce more of the compression artifacts? The script does something, but at certain points, it's too blocky (e.g. during fast motion)
Script:
Code:ffVideoSource("input.mkv") MosquitoNR(strength=27) Deblock_QED() AssumeTFF() Crop(10,2,-8,-2) SeparateFields() Weave() QTGMC() LSFMod(defaults="slow") EdgeCleaner(strength=37)
Code:--profile high --level 3.1 --preset veryslow --crf 18 --tune animation
-
In the original PAL video had interlaced titles overlaid onto the progressive frames. Whoever resized the video from 576 lines to 480 lines didn't account for that interlacing so the titles are now a partial blend of the two interlace fields. I don't see any good way of fixing this. You can try blurring combing away but the rest of the picture will get blurry and the combed areas will still look like double exposures. Something like this with sample2.mkv:
Code:ffVideoSource("sample2.mkv") src = last Spline36Resize(width,height/2) vInverse() Spline36Resize(width,height*2) Sharpen(0.0, 0.5) ReplaceFramesSimple(src, last, Mappings="[35 42] [80 96]")
-
Heh, didn't know Avisynth could do that, thanks!
I still have one problem though. With high motion, the image goes to hell due to the fixed bitrate on the source (it also seems that the titles from sample1.mkv are jiddering due to that):
The other two that look right are from a PAL (1st) and NTSC (2nd) DVD. I've lowered the CRF and set qcomp at 0.9. AWarpSharp2 (+toon) makes the video a bit less blurry, but the non-black lines are still blurry or have disappeared completely. Also, when fading from black to color, the image also looks bad.
Are the compression artifacts reversible or is it possible to tone them down a bit?
Code:
Code:ffVideoSource("input.mkv") LSFMod(defaults="slow") AWarpSharp2(depth=11, chroma=3) Toon() Crop(10,2,-8,-2) Dither_convert_8_to_16() gradfun3(lsb=true,lsb_in=true) Ditherpost()
-
I don't think you can really fix the loss of detail from over compression. At least not easily. In some shots you could overlay a clean frame over non-moving parts of the frame. Or maybe you could use a very strong aWarpSharp to clean up some of the rough/blurry edges -- on only the worst frames so as not to mess up the rest of the video.
-
Same show, different problem with deinterlacing. Something is causing (I think) ghosting, see the hair and credits
Before (sample.mkv)
After
Replacing FPSDivisor=2 with SelectEven/Odd doesn't change anything, TFM reduces it a bit but causes aliasing everywhere, the QTMGC Preset Very Slow reduces it without aliasing but the lines are thinner.
Is it QTGMC or is the source just too noisy?
Script:
Code:MPEG2Source("sample.d2v", cpu=6) QTGMC(Preset="Slow", FPSDivisor=2, EZDenoise=3.0, NoisePreset="Slower") MosquitoNR(strength=15) Dither_convert_8_to_16() gradfun3(lsb=true,lsb_in=true) Ditherpost() turnleft() nnedi3(dh=true) turnright() spline36resize(768,576) Crop(2,2,-2,-2) Toon()
-
Yes, QTGMC sometimes leaves ghosts like that. You might be able to fix it by playing with the parameters. The ghost lines are from the prior or next frame so look into the temporal filtering options.
-
-
Which setting was responsible for fixing the ghosting? You can try an anti aliasing filter like Santiag() to fix the aliasing artifacts QTGMC introduced (if you can't find QTGMC settings that get rid of them).