View Full Version : Jaggy edges on DVB source
K0zi
4th December 2007, 12:21
Hi,
I have been recording a lot of DVB material recently. I'm familiar with Avisynth and x264 CLI, but still there are some clips that I can't handle properly.
Here is some sample:
http://rapidshare.com/files/73386863/hot_chicks1.rar.html
http://rapidshare.com/files/73387202/hot_chicks2.rar.html
and the screens:
source; cropped and resized to 688x432
http://img147.imageshack.us/img147/1732/osmysourcevy4.th.png (http://img147.imageshack.us/my.php?image=osmysourcevy4.png)
tdeint()
http://img527.imageshack.us/img527/2315/osmytdeintfe1.th.png (http://img527.imageshack.us/my.php?image=osmytdeintfe1.png)
yadif()
http://img136.imageshack.us/img136/7877/osmyyadiffi4.th.png (http://img136.imageshack.us/my.php?image=osmyyadiffi4.png)
I would be grateful for any help in preparing a script that would keep all the detail and simultaneously remove the noise and artifacts.
Thanks in advance.
ajk
4th December 2007, 13:40
yadif() followed by nnedi() seems to do a pretty good job of getting rid of the aliasing, mcbob().nnedi().selecteven() slightly better still.
Here is a test with mcbob and nnedi (http://rapidshare.de/files/37971331/mcbobnnedi.avi.html), you may want to put some more effort into denoising and other processing than in this clip though.
TheRyuu
4th December 2007, 18:37
After MCBob or yadif, it there are still jaggies, you can try this:
o = last
Assumeframebased().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)
K0zi
21st December 2007, 00:35
Thanks :thanks:
I've tried both suggestions and I think that MCBob()+wizboy11's script produce slightly sharper image. But the speed... 0.4 fps :rolleyes:
There's another problematic clip with similar artifacts.
Sample:
http://rapidshare.com/files/77977763/SAMPLE.rar.html
yadif().nnedi() seems to do quite good job, however I have no idea how to remove the blending (ghosting?). It's a late 40's european film turned out into low budget NTSC DVD. Shall I use Didee's restore24 script? (if yes, what parameters to use?)
Didée
21st December 2007, 02:05
For restoring blending from 29.97i NTSC, I would rather go for MRestore instead of Restore24. Not sure anymore about PAL sources, but for NTSC sources MRestore definetly now has the edge.
Regarding wizboy11's script: that code is pretty much the same which gets used when MCBob is called with "ediPost=2". (Default is "ediPost=1").
And a warning into the blue: when you're going to process fieldblended sources, do NOT use MCbob for bobbing. It won't do any good there. (It's not possible to successfully motion-compensate a blended field against a clean field.)
K0zi
21st December 2007, 23:27
tdeint(mode=1).MRestore(mode=0,chroma=true) or
yadif(mode=1).MRestore(mode=0,chroma=true)
Even though I end up with 25 fps, there are still some blended frames left in the output; any suggestions to setup it any better?
Didée
22nd December 2007, 01:06
Thats a ConvertFPS-style conversion. Neither MRestore nor Restore24 can handle those. Best bet would be RestoreFPS by mg262. Good luck.
K0zi
23rd December 2007, 19:42
:thanks:
RestoreFPS(25,0) solves the problem :)
Now I've got to get rid of blocking somehow... :p
K0zi
29th December 2007, 12:31
I've got another problematic clip...:rolleyes:
25 fps, interlaced. I've tried tdeint, yadif and mcbob and they all produce strange artifacts in some scenes. I don't even know how it's called, looks like a burnt-out tape:confused:
There are blended frames in some scenes, so I guess that's the issue. However, unblend doesn't remove all artifacts. Any ideas?
Source:
http://img341.imageshack.us/img341/8845/etapsourcekb1.th.png (http://img341.imageshack.us/my.php?image=etapsourcekb1.png)
yadif():
http://img149.imageshack.us/img149/1249/etapartifactsik9.th.png (http://img149.imageshack.us/my.php?image=etapartifactsik9.png)
yadif(mode=1).unblend().selecteven():
http://img165.imageshack.us/img165/674/etapyadifunblendmj6.th.png (http://img165.imageshack.us/my.php?image=etapyadifunblendmj6.png)
as above; some artifacts are still visible:
http://img80.imageshack.us/img80/9799/etapartifacts2unblendqv5.th.png (http://img80.imageshack.us/my.php?image=etapartifacts2unblendqv5.png)
Didée
29th December 2007, 13:14
Not the fault of any deinterlacer or blend-remover. The artefacts are already present in the original fields of the source.
The cause of the artefacts is not possible to decide from those screens, it could be anything: just a denoiser that acted too strong; could be a mocomp'ed framerate converter was used that didn't manage hiding/revealing areas corrrectly; could be the source was already blended and someone tried to remove the blends. Or anything else.
In any case, those artefacts look like it will be close to impossible to remove them.
K0zi
1st March 2008, 18:39
...and another clip with screwed edges. I've tried the script from this thread, as well as nnedi(), but without success.
Is it possible to fix it? Thanks in advance.
Sample: http://rapidshare.com/files/89636941/sample2.rar.html
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.