PDA

View Full Version : Bob deinterlacing - is this script good?


Jumbie
12th October 2006, 18:22
Hi guys. Was hoping from some advice as I'm not very experienced with deinterlacing and it was suggested to me in another thread that a bob would perhaps be suited to my needs.

Previously I was just using leakkerneldeint and discarding one of the fields.

The following script was generated for me by MeGUI (I added the SetMTMode and ConvertToYV12) but it also read my test DV clip as being a mixed source when I don't think it is that.


SetMTMode(2,2)
DirectShowSource("clip.avi",fps=29.97000002997,audio=false)
ConvertToYV12()
edeintted = last.AssumeBFF().SeparateFields().SelectEven().EEDI2(field=-1)
TDeint(order=0,full=false,edeint=edeintted)
#crop
#resize
Convolution3D("movielq") # Heavy Noise

The thing is that I'm not really sure what it's doing with the edeint and tdeint commands.

I've tried Mvbob but it is way too slow (even without the convolution3D denoiser) and I can't spare that much time so I was looking for something else.

The footage I am working with is DV from a Sony DCR-PC330 camcorder and is bottom field first. Can anyone tell me if the above script is okay (it works pretty fast giving around 25 fps on 1st pass x264 encode vs around 3 fps with mvbob) or if there is a better way to do it. Just to be clear, I want to go from 30i -> 60p (I don't even know if the above script generated by MeGui is doing that or if it's resulting in 30p instead; the SelectEven() command makes me think it might be discarding one of the fields). The output will only viewed on a computer monitor.

Thanks in advance.

[edit]

I've also tried TomsMoComp(0,15,1) with what appears to be decent results and pretty good speed.

[/quote]

IceManTX
12th October 2006, 18:46
I really think that for the best possible advice you need to really make it easier for people here by giving more information.

Now I'm a noob myself and learning fast but I'd say uploading 15-30 minutes of your "home movie" for me to evaluate would really help in giving you the best possible advice. :D ;)

Jumbie
12th October 2006, 22:06
I really think that for the best possible advice you need to really make it easier for people here by giving more information.

Now I'm a noob myself and learning fast but I'd say uploading 15-30 minutes of your "home movie" for me to evaluate would really help in giving you the best possible advice. :D ;)

lol, I think this is the wrong site for that. :D

Guess you saw my original post the other day huh? hehehe

Chainmax
13th October 2006, 03:01
The current favorites are MVBob, SecureDeint and TDeint+EEDI2 (in that order) IIRC.

Jumbie
13th October 2006, 03:17
The current favorites are MVBob,

Yeah, I used MVBob and it gave good results but was way too slow. A 1 minute clip took over 1/2 hour to encode using the HQ-Slow x264 profile. Most of my stuff will be over an hour long and I can't be without my computer for 30 hours at a stretch as it's my only machine at the moment and is a laptop that I take back and forth to class with me.

SecureDeint

Never even heard of this. Guess it's search time. Don't much feel like studying at the moment anyway. It's been a looooong day.

TDeint+EEDI2 (in that order) IIRC.
Well, this is what MeGUI put in the script I included in my first post. But I don't know how to use it properly.

More searching I guess.

Thanks for the reply Chainmax.

Chainmax
13th October 2006, 03:29
Glad to be of help, Jumbie :).

SecureDeint is part of the MVBob package, from what I read its a bit softer that MVBob but a bit faster, so still very slow. If you want a good tradeoff between speed and quality, TDeint+EEDI2 is the way to go. Usage is like this:

For TFF Clips:
Interp = SeparateFields().EEDI2(field=3)
TDeint(mode=1,order=1,edeint=Interp)

For BFF Clips:
Interp = SeparateFields().EEDI2(field=2)
TDeint(mode=1,order=0,edeint=Interp)

In order to know if your clip is Top Field First or Bottomn Field First, you have to use this script:

Source loading
AssumeXFF().SeparateFields()

Where X = B or T. Step through the video in VDub and see which options runs smooth.

Jumbie
13th October 2006, 03:39
Glad to be of help, Jumbie :).

It is very appreciated.

SecureDeint is part of the MVBob package, from what I read its a bit softer that MVBob but a bit faster, so still very slow.

Slow is not good. :(

Funny though, I've downloaded the MVBob package and don't see a SecureDeint .dll or function anywhere in it.

If you want a good tradeoff between speed and quality, TDeint+EEDI2 is the way to go. Usage is like this:

For TFF Clips:
Interp = SeparateFields().EEDI2(field=3)
TDeint(mode=1,order=1,edeint=Interp)

For BFF Clips:
Interp = SeparateFields().EEDI2(field=2)
TDeint(mode=1,order=0,edeint=Interp)

In order to know if your clip is Top Field First or Bottomn Field First, you have to use this script:

Source loading
AssumeXFF().SeparateFields()

Where X = B or T. Step through the video in VDub and see which options runs smooth.

Thanks so much Chainmax. I know my clip is BFF so will give that command a try. I was just in the middle of searching for it. :)

WorBry
13th October 2006, 08:40
Funny though, I've downloaded the MVBob package and don't see a SecureDeint .dll or function anywhere in it.


In the latest MVBob package (14.09.06) Scharfis_Brain has changed the name of the SecureDeint function to SecureBob.

foxyshadis
13th October 2006, 08:51
SecureBob by default runs at approximately the same speed as the first script you posted. Of course, that's significantly slower than TDeint, TomsMoComp, or LeakKernelDeint, but it might be fast enough still.

In fact, it's very similar to TDeint+EEDI2, and can use any other deinterlacer (with type=) for a big speedup at the cost of quality, but it almost always improves the output vs the deinterlacer alone, without Securebob.

halsboss
13th October 2006, 09:54
In the latest MVBob package (14.09.06) Scharfis_Brain has changed the name of the SecureDeint function to SecureBob.
Oh dear, guess I'll have to search for the link to MVBob package (14.09.06).

Edit: Hmm, didn't find the thread (too many references to MVBob), but did come across http://home.arcor.de/scharfis_brain/mvbob/

Edit2: Hmm, maybe this was the thread ? http://forum.doom9.org/showthread.php?p=875476#post875476 ? If it is, for some reason the web site's different to Scharfi's sig link to http://md2.boerde.de/scharfi/

2Bdecided
13th October 2006, 11:28
Most of my stuff will be over an hour long...

You're just bragging now! :D

scharfis_brain
13th October 2006, 17:46
http://home.arcor.de/scharfis_brain/mvbob/mvbob.rar contains the newest version I made public
http://home.arcor.de/scharfis_brain/mvbob/mvbob-sources.rar contains the previous version of mvbob.
http://md2.boerde.de/scharfi/ was my personal blog but it is offline...

nibbles
15th October 2006, 01:16
For speed and quality, it's hard to beat LeakKernelBob, which is part
of the LeakKernelDeint plugin, maybe 4x faster than TDeint+EEDI2:

AssumeBFF().LeakKernelBob( order=0, threshold=2 )


But the trick is to find the right threshold value for the amount
of combing you have. For TDeint, you adjust mThreshL and
mThreshC. I have to use values around 1 or 2 for my captures:

Interp = AssumeBFF().SeparateFields().EEDI2(field=3)
TDeint( mode=1, order=1, edeint=Interp, mthreshL=1, mthreshC=2 )


At this point I still haven't learned if mvbob or securebob are
overkill for projects that are going to be reinterlaced anyway.
But I think they help the next stage denoisers/sharpeners by
giving them a better edge to work with. Good luck, nibs

halsboss
15th October 2006, 08:34
http://home.arcor.de/scharfis_brain/mvbob/mvbob.rar contains the newest version I made public
http://home.arcor.de/scharfis_brain/mvbob/mvbob-sources.rar contains the previous version of mvbob.
http://md2.boerde.de/scharfi/ was my personal blog but it is offline...

Thanks. You've made incredibly useful and fascinating contributions over a period of time... I rely on them.

Cheerio

Jumbie
15th October 2006, 15:10
Thanks for the replies guys. Got a bunch of ideas to try and play with. I just have the time to do so.

Cheers.

- Jumbie