View Full Version : Deinterlace problem!


andrew_seul
15th August 2007, 01:04
Hi all:helpful:, I need help with deinterlacing a video . I tryed all filters: IVTC, FieldDeinterlace etc and it doesn't work.

Here it is: FiRST LINK (http://files-upload.com/files/435212/part1.vob)
Mirror:SeCOND LINK (http://www.sendspace.com/file/45tfuc)

Guest
15th August 2007, 02:04
No need to deinterlace at all!

Just get DGMPGDec. Then open it in DGIndex and set Video/Field operation to Forced Film. Save the project and serve the video via Avisynth as described in the Quick Start guide.

The clip has soft pulldown, so you can easily recover the progressive frames.

Or if you are a noob or don't need the power of Avisynth, you can do this:

1. Start VirtualDub MPEG2 (http://fcchandler.home.comcast.net/stable/).
2. In Options/Preferences/MPEG, uncheck Honor "repeat first field" flags
3. Open your VOB.

You'll get the original progressive frames.

TheRyuu
15th August 2007, 16:58
Or you could use something like tfm/tdecimate.
It is part of TIVTC which you can find here. (http://bengal.missouri.edu/~kes25c/#c1)

movie=mpeg2source("C:\test.d2v",info=3) #info=3 is for colormatrix if your using it
assumetff(movie) #change depending on source, tff/bff
movie=tfm(movie,d2v="C:\test.d2v").tdecimate()
movie = ColorMatrix(movie,mode="Rec.709->Rec.601",hints=true,threads=0) #optional colormatrix code

Sometimes I think this produces a better result although they're probably identical to the solution above.
This is the same way that AutoMKV (mpeg4 encoder gui) does it and I think it works very very well.

Guest
15th August 2007, 17:00
It's pointless to use TFM/TDecimate when the stream is soft telecined and force film applies. All it does is introduce possible match errors and slower processing.

TheRyuu
15th August 2007, 17:06
It's pointless to use TFM/TDecimate when the stream is soft telecined and force film applies. All it does is introduce possible match errors and slower processing.

To each his own right? :p

I'll have to check that out then. What would be the difference between a stream that is "soft telecined" opposed to whatever the opposite would be (hard telecined?). Then would tfm/tdecimate come into play?

scharfis_brain
15th August 2007, 17:07
It's pointless to use TFM/TDecimate when the stream is soft telecined and force film applies. All it does is introduce possible match errors and slower processing.

This is only correct, if the source is absolutely 100% soft telecined without a single combed frame.

If there is a doubt, I'd choose 'Honor Pulldown Flags' in DGIndex and use TFM with its advanced d2v-reading options.

You can force tfm/tdecimate to rely on the rff flags.
If a correct 3:2 Pattern is found, TFM won't check for combing.
If not, it will do the analysis and IVTC itself.

scharfis_brain
15th August 2007, 18:16
But you haven't seen the whole movie...
There could be hard telecined parts as well.

Guest
15th August 2007, 18:21
I would inspect the movie. If it was soft telecined throughout, then I would use Force Film.

But feel free to do whatever you want. :)

scharfis_brain
15th August 2007, 18:39
I would inspect the movie. If it was soft telecined throughout, then I would use Force Film.
That is what I'd do, too :)

But if there is the slightest doubt, I'll use tfm().tdecimate() as described above.

andrew_seul
15th August 2007, 19:56
First and second method by neuron didn't work.
Method of wizboy11 is the same problem.
I think the best way is to deinterlace manually with yatta.
My video is NTSC 29.97 16:9. (98.61 FILM)
This part of video is from my first volume of NOIR.

Terranigma
15th August 2007, 20:02
First and second method by neuron didn't work.
Method of wizboy11 is the same problem.
I think the best way is to deinterlace manually with yatta.

You can deinterlace manually with TFM too. Check out the help document on using an override file to manually select frames for deinterlacing. The same can be done with neuron's telecide filter as well.

Guest
15th August 2007, 20:28
First and second method by neuron didn't work. It worked fine for me on the clip you uploaded. What didn't work and why don't you post a clip that shows the problem?

TheRyuu
16th August 2007, 03:30
It worked fine for me on the clip you uploaded. What didn't work and why don't you post a clip that shows the problem?

Worked fine for me too using the tfm/tdecimate option.
This is the clip I got after tfm/tdecimate and a few other fast tweaks and filters:
part1.mkv (http://www.esnips.com/doc/7173a28c-94f7-4827-baaf-b9df72e90eb7/part1)

The filters suit the movie to my taste. Obviously, your taste is not my taste, I'm posting the movie mainly as the example that tfm/tdecimate are working, not about my movie tastes :p

The avs I used is posted below if anyone cares. I think it might need some slight dehaloing too, but I didn't really want to go all out on a sample clip, and dehalo in fft3dfilter wasn't working for me. :)

avs I used if anyone cares:
#plugins (list of plugins follows, I'm not gonna post it)
#LoadPlugin()

#Set Stuff
SetMemoryMax(768)
SetMTMode(2, 2)

#Import (list of avsi files follows, once again, not gonna post the long list)
#Import()

#source
movie = mpeg2source("C:\Documents and Settings\Dragon\My Documents\My Videos\Part1\part1.d2v",info=3)

#deinterlacing (IVTC)
assumebff(movie)
movie = tfm(movie,d2v="C:\Documents and Settings\Dragon\My Documents\My Videos\Part1\part1.d2v").tdecimate()

#colormatrix (after deinterlacing because of IVTC, if it was pure interlaced, would be right after mpeg2source() with interlaced=true option)
movie = ColorMatrix(movie,mode="Rec.709->Rec.601",hints=true,threads=0)
last = movie

#cropping/resizing
crop(4,0,-4,-0)
Spline36Resize(704,400) #keeps MOD16, just use a muxing AR of 16:9 to maintain 16:9 AR

#filters
removegrain(mode=1) #I know, I don't need it
fft3dfilter() #tweak to your tastes, dehalo option didn't seem to work for me, too lazy to tweak dehalo_alpha right now since source might need it (though I saw some haloing)
LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, smode=3, strength=125, overshoot=1, undershoot=1) #I like smode=3 sometimes for anime
FastLineDarkenMOD(thinning=0, strength=50) #some subtle line darkening. Tweak to your taste
ColorYUV(gain_u=10) #boosts the u chroma channel, thought it might need it, probably used a little too much of it, and if fact, source might not even need it
tweak(sat=1.2) #boosts the chroma channels, maybe too strong for the source

Didée
16th August 2007, 07:40
@wizboy11
Huh, that esnips site where you're hosting your sample. :devil:
Not only it requires registration (can't get your sample).
More seriously, the site tried to infect me with "/zedo" malware. Brilliant. :D

andrew_seul
16th August 2007, 09:13
It worked fine for me on the clip you uploaded. What didn't work and why don't you post a clip that shows the problem?

The problem is there in the clip i've uploaded. Probably u dont understand what i have to do with my video. I explain:
I've indexed the vob file, then i loaded d2v file created with dgindex (without option mentioned) in ymc (options: telecide+decimate) then yatta. Finally, when i finished the job with yatta.. I tried to clean up my video with filters. Some frames with interlarce dind't work to deinterlace with yatta (see clip video i've uploaded). I need to clean my video perfectly (no flickering in areas or edges). I want "static" frames if u understand me.Thanks for helping me!

Guest
16th August 2007, 14:20
You don't need all that ymc and yatta stuff for this clip. The simple process I described produces perfect progressive frames. You're creating your own nightmare.

Leak
16th August 2007, 14:30
Some frames with interlarce dind't work to deinterlace with yatta (see clip video i've uploaded).
It might help if you posted screenshots of frames where it "didn't work". But keep in mind that Noir was one of the last series to be animated "traditionally" (i.e. without doing the compositing and editing on a computer) and thus it's not unusual for frames to have small errors that aren't magically repaired by a deinterlacer (or YATTA, for that matter). The same goes for the slight jumps of the frame at scene changes.

TheRyuu
16th August 2007, 15:52
@wizboy11
Huh, that esnips site where you're hosting your sample. :devil:
Not only it requires registration (can't get your sample).
More seriously, the site tried to infect me with "/zedo" malware. Brilliant. :D

I'm not logged in and I can download the file at 1+mB/s.
And I'm not getting any malware waring either with NOD32. Probably a false alarm.

You should be able to download it though.

I like esnips because it free, doesn't require registration to download, and it's fast.

If you seriously don't want to go back there, I've uploaded it on megaupload too:
part1.mkv (http://www.megaupload.com/?d=LLQB18P0)

You don't need all that ymc and yatta stuff for this clip. The simple process I described produces perfect progressive frames. You're creating your own nightmare.

Worked for me too. Only reason I suggest tfm+tdecimate is I don't know whether the whole clip is soft telecined.

The problem is there in the clip i've uploaded. Probably u dont understand what i have to do with my video. I explain:
I've indexed the vob file, then i loaded d2v file created with dgindex (without option mentioned) in ymc (options: telecide+decimate) then yatta. Finally, when i finished the job with yatta.. I tried to clean up my video with filters. Some frames with interlarce dind't work to deinterlace with yatta (see clip video i've uploaded). I need to clean my video perfectly (no flickering in areas or edges). I want "static" frames if u understand me.Thanks for helping me!

You shouldn't need yatta/ymc and if your just starting out on this whole encoding/avisynth, then avoid them right now and use above mentioned ways. Pulldown flags via DGIndex, or the tfm+tdecimate I suggested (which I recommend since I can't tell if the whole movie is soft telecined.

ficofico
20th August 2007, 22:26
I write here for using one post.
I'm trying to encode my dvd "metallica s&m", it's interlaced and gspot said that is bff.

I've used mvbob, mcbob, tdeint ecc ecc, but I wasn't not able to deinterlace properly ,

If i post here a sample, someone can aid me .... thanks

METALLICA S&M (http://ficofico.interfree.it/metallica.rar)

Guest
21st August 2007, 02:09
It has blended fields. See here:

http://www.google.com/search?hl=en&rls=GGLD%2CGGLD%3A2005-08%2CGGLD%3Aen&q=%22blended+fields%22+site%3Aforum.doom9.org&btnG=Search

ficofico
21st August 2007, 08:33
I've used separatdfield but result was very bad. is restore24 a good way to deinterlace well? Or there are more sofisticatd way to do that? Thanks

ficofico
21st August 2007, 12:37
I'm trying restore24, but I have an error:

there is no function named yv12layer in line 75, 131, 462

I've edit the function restore 24 adding this line:

global out=clip.TomsBobSpecial()

under the # PLEASE SET HERE YOUR BOB

Here you can download my avs file:

Metallica avs (http://ficofico.interfree.it/metallica.avs)



My directory plugins it's fully upgraded , and dependencies are present.

Very thanks for aiding me....

Didée
21st August 2007, 12:55
Ah, the big mess.

Get R_Pack (http://forum.gleitz.info/showthread.php?t=31622), and try MRestore.

ficofico
21st August 2007, 15:16
In my script only mrestore? I have try it but interlaced remain.....

ficofico
21st August 2007, 17:09
In my script only mrestore? I have try it but interlaced remain.....

Guest
21st August 2007, 17:19
ficofico, I already deleted one duplicate posting. Stop doing it or you will be struck.

Didée
21st August 2007, 17:29
RTFM. R_Pack comes with a readme. The readme states that you have to use a bobber before calling MRestore, like e.g.

mpeg2source("source.d2v")
TDeint(mode=1)
MRestore()

You also need to figure if the original framerate is 23.976 or 29.97. When feeding 50p into MRestore, it will automatically restore to 23.976fps. In case that the original was 30p, you need to tell MRestore also the appropriate numr & denm numbers.


BTW, it seems you got hold of the most outdated version of Restore24 that could only be found. "TomsBobSpecial" is so old I almost forgot about it. One of the world's worst deinterlacers it has been. :ouch:

ficofico
21st August 2007, 18:23
excuse me neuron2, but i'm posting with my nokia e90, and I've seen that in some case when I post (only once) the post became 2, 3, in one case 4!!! This is my last post with phone here....

Didee, very thanks , when I come home I'll try your suggestion, and I'll search for updated restore24.....

Terranigma
21st August 2007, 19:06
Didee, very thanks , when I come home I'll try your suggestion, and I'll search for updated restore24.....

No Need :D (http://forum.doom9.org/showthread.php?p=968473#post968473)

ficofico
21st August 2007, 22:44
:thanks: