PDA

View Full Version : how can I delete these artifacts?


fenomeno83
2nd October 2008, 12:33
http://img126.imageshack.us/my.php?image=finitomp40013gi2.jpg

not interlaced!

thanks

Sagekilla
2nd October 2008, 14:39
What artifacts are you talking about? The only thing I can possibly see is you have some aliasing issues. It would help to post a small clip as well.

Didée
2nd October 2008, 14:59
Shot in the blue: based on this here (http://forum.doom9.org/showthread.php?p=916871#post916871), try

TurnLeft()
#--------------------
o = last
AssumeTFF().SeparateFields()
dbl = mt_Average( SelectEven().EEDI2(field=1,maxd=4),
\ SelectOdd() .EEDI2(field=0,maxd=4), U=3,V=3 )
dblD = mt_MakeDiff(o,dbl,U=3,V=3)
shrpD = mt_MakeDiff(dbl,dbl.RemoveGrain(11),U=3,V=3)
DD = shrpD.Repair(dblD,13)

dbl.mt_AddDiff(DD,U=3,V=3)
#--------------------
TurnRight()

*.mp4 guy
2nd October 2008, 15:01
spline36resize(352, 480).spline36resize(640, 480)

Or to be more precise, a horizontal lowpass @ 2.8125, or 2.75 hz (assuming the nyquist frequency is 0.5 hz). For some reason, the source was mastered from a video that was pointresized from 360*480 to 720*480 (or 352 to 704, which is what I actually assumed, to be on the safe side). The spline36 resampling functions like a lowpass filter, but is quicker and is included in the base avisynth functions.

fenomeno83
2nd October 2008, 16:06
Here these is my video (2 version: original and a filtered version with a software)
http://www.mediafire.com/?zokiyym0jyj

Can you post FULL avs script to delete aliasing and get better image quality?thanks :)

another question: can I delete motion artifacts (when move the hand for example)

thankyou very much..you are great :)

fenomeno83
2nd October 2008, 22:14
I used this (I put all plugin also if I don't use :D)

loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\EDIUpsizer.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\EEDI2.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\dfttest.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\corrector.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\depan.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\DePanEstimate.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\DGDecode.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\FFMpegSource.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\RepairS.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\Repair.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\RemoveGrainSSE3.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\RemoveGrainSSE2.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\RemoveGrainS.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\RemoveGrain.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\nnedi.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\mvtools.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\mt_masktools.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\avsmon25a.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\medianblur.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\MaskTools.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\LeakKernelDeint.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\FFT3DFilter.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\RepairSSE3.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\RepairSSE2.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\Motion_12Dec05.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\DctFilter.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\Average_24Oct05.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\degrainmedian.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\gradfun2db.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\fdecimate.dll")
loadplugin("C:\Programmi\Rigenerator-program\rigenerator2\plugins\mt.dll")
import("C:\Programmi\Rigenerator-program\rigenerator2\plugins\seesaw.avs")
import("C:\Programmi\Rigenerator-program\rigenerator2\plugins\LimitedSharpenFaster.avs")
import("C:\Programmi\Rigenerator-program\rigenerator2\plugins\soothe.avs")
import("C:\Programmi\Rigenerator-program\rigenerator2\plugins\MotionProtectedFPS.avs")
import("C:\Programmi\Rigenerator-program\rigenerator2\plugins\Deblock_QED.avs")

ffmpegsource("C:\filtered.mp4")

o = last
AssumeTFF().SeparateFields()
dbl = mt_Average( SelectEven().EEDI2(field=1,maxd=4),
\ SelectOdd() .EEDI2(field=0,maxd=4), U=3,V=3 )
dblD = mt_MakeDiff(o,dbl,U=3,V=3)
shrpD = mt_MakeDiff(dbl,dbl.RemoveGrain(11),U=3,V=3)
DD = shrpD.Repair(dblD,13)

dbl.mt_AddDiff(DD,U=3,V=3)


i opened with virtualdib(works) and encoded in aviu uncompressed, but aliasing doesn't removed!!

*.mp4 guy
3rd October 2008, 01:29
That would be because Didée was completely wrong.


This will fix all of the aliasing and look nice.

ffmpegsource("C:\filtered.mp4")
pointresize(320, 480).turnright().nnedi(dh=true, field=1).turnleft()

This will fix all of the aliasing and be fast

ffmpegsource("C:\filtered.mp4")
pointresize(320, 480).spline36resize(640, 480)


My original assesment of the problem was based on the assumption that the video was from a dvd. Having looked at the actual file (I assume it is from a camera phone) I adjusted the filtering slightly to get rid of more aliasing.

The temporal jitter is caused by the recording device dropping frames at what apear to be random intervals, not as I would have at first assumed, the low framerate. This problem is essentially unfixable with current scripts/plugins. Though it is theoretically possible to detect duplicate frames and replace them with motion interpolated , mocomped frames, I don't know how to go about writing a script to do that.

Didée
3rd October 2008, 15:11
That would be because Didée was completely wrong.

No, I wasn't. My scriptlet showed to embed that AA code into a TurnLeft() ... TurnRight() bracket. fenomeno83 did not put those turn's in his script, so of course it didn't work out. That's not my fault, or is it? ;)

fenomeno83
3rd October 2008, 16:57
That would be because Didée was completely wrong.


This will fix all of the aliasing and look nice.

ffmpegsource("C:\filtered.mp4")
pointresize(320, 480).turnright().nnedi(dh=true, field=1).turnleft()

This will fix all of the aliasing and be fast

ffmpegsource("C:\filtered.mp4")
pointresize(320, 480).spline36resize(640, 480)


My original assesment of the problem was based on the assumption that the video was from a dvd. Having looked at the actual file (I assume it is from a camera phone) I adjusted the filtering slightly to get rid of more aliasing.

The temporal jitter is caused by the recording device dropping frames at what apear to be random intervals, not as I would have at first assumed, the low framerate. This problem is essentially unfixable with current scripts/plugins. Though it is theoretically possible to detect duplicate frames and replace them with motion interpolated , mocomped frames, I don't know how to go about writing a script to do that.

FANTASTIC!!IT WORKS VERY FINE!THAAANKS!
http://www.mediafire.com/?0tnkn0ggbzj

here there is video filtered in 2 version (increase fps to 25 and to 30..no antialiasing applied)..
i'ts possibile delete motion artifacts?

*.mp4 guy
3rd October 2008, 17:39
No, I wasn't. My scriptlet showed to embed that AA code into a TurnLeft() ... TurnRight() bracket. fenomeno83 did not put those turn's in his script, so of course it didn't work out. That's not my fault, or is it? ;)

I apologise, I jumped to a conclusion based on your script being 1 over complicated, and 2 originally being used for deinterlacing artifacts. imo, nnedi is probably better, but your right, what you suggested probably would have worked aswell.

UltraTV
4th October 2008, 00:20
Haha, that's crazy. Sorry this is off topic, I just wanted to say hi to a local Sunnyvalien.