Log in

View Full Version : Choosing deintelacing method for mixed content


rtjnyoface
9th July 2011, 11:36
I've got a Caillou dvd with mixed content on it. The actual cartoons are 4 progressive, 1 interlaced. Then, the "shorts" are fully interlaced. I'm more concerned about the actual cartoons than the shorts so I'd rather use something that addresses that. I think I could use tdecimate on the whole thing can't I (of course not caring what happens to the fully interlaced bits)? I think it's really an R5 dvd (damn amazon.com lol). Any suggestions on my possibilities?

Temuthril
9th July 2011, 12:12
You could use different filters for each part, instead of one deinterlacer for the whole package.

Overdrive80
9th July 2011, 16:42
I've got a Caillou dvd with mixed content on it. The actual cartoons are 4 progressive, 1 interlaced. Then, the "shorts" are fully interlaced. I'm more concerned about the actual cartoons than the shorts so I'd rather use something that addresses that. I think I could use tdecimate on the whole thing can't I (of course not caring what happens to the fully interlaced bits)? I think it's really an R5 dvd (damn amazon.com lol). Any suggestions on my possibilities?

You can try create a VFR file with animeIVTC, tfm or dedup. Or use QTGMC for CFR file with motion calculation.

rtjnyoface
9th July 2011, 19:34
You could use different filters for each part, instead of one deinterlacer for the whole package.

That sounds great...now where can I learn to do that? lol. And once I do use two different filters how do I go about their different frame rates? I"m guessing another filter but wow that's some energy spent for some children's cartoons.

Temuthril
9th July 2011, 22:08
AviSynth file:
DGDecode_MPEG2Source("C:\video.d2v")
original = last

original
Trim(1,5000)
Deinterlacing filter
AssumeFPS(30000, 1001)
a = last

original
Trim(6001,9500)
IVTC
AssumeFPS(30000, 1001)
b = last

a++b

And when muxing to mkv, use a timecode file:
# timecode format v1
Assume 29.970030
5001,7801,23.976024

This should give you a vfr video with the IVTC'd part playing at correct frame rate.

I haven't tested this myself, and there are probably better or easier ways to do it, but this is how I'd attempt it myself. The calculations might be wrong as well in the example.

EDIT: AssumeFPS fixed, thanks for pointing that out.

Gavino
9th July 2011, 23:07
AssumeFPS(30000/1001)
Should be AssumeFPS(30000, 1001)
30000/1001 will use integer division giving a result of 29.

You could have used 30000.0/1001 to get floating point, but using the two parameter form is the most accurate.

rtjnyoface
10th July 2011, 10:19
So I'm basically cutting the different pieces that I want into different videos (via placing cuts in the avs file) to encode them and then remuxing them when they are all done?

Temuthril
10th July 2011, 12:36
This would give you a single file (I'm assuming your source is a single file as well, according to your second post). The trims are used to specify sections to use certain filters for, instead of applying them to the whole video.

You use the timecode file when muxing to tell the resulting file to play certain parts of the file at different framerates.

manono
11th July 2011, 03:07
The actual cartoons are 4 progressive, 1 interlaced. Then, the "shorts" are fully interlaced.
Without samples any proposed scripts are just guesses and, personally, I don't think any of them proposed so far will apply to your videos. I could easily be wrong, of course, but only untouched samples can show us what you have.

rtjnyoface
12th July 2011, 10:39
Been reaaaally busy here. But here is a clip. Let me know what you think. I'd appreciate learning something new :). I personally have never come across this type of interlacing.

http://www.mediafire.com/?v3vu7abotc27wxq

manono
12th July 2011, 11:08
What kind of interlacing? There's nothing out of the ordinary here, given that it's animation. Just the usual (for anime):

TFM()
TDecimate(Mode=1)

should do nicely.

rtjnyoface
12th July 2011, 11:43
I'm used to telecined (3:2) anime content then I suppose as I've not seen this before (not much experience with anime though other than dora/diego which all the disks have been the same). But...

Mode 1 = Exactly like mode 0, except instead of decimating the M most similar frames, frames are decimated from the longest remaining strings of duplicates. The duplicate detection uses the dupThresh parameter. This mode is the correct type of decimation for anime and other sources where frames are repeated 2, 3 or 4 times in a row, and also supports blend
decimation of video (30p) with hybrid = 1.

I should've kept reading up. I probably would've spent more time looking for the answer myself. Thanks for the responses.

edit: what framerate will this leave me with?

manono
12th July 2011, 12:03
edit: what framerate will this leave me with?
Hehe, you could always try it and see.

It doesn't display that common 3 progressive/2 interlaced pattern because of the duplicate frames common to animations. But even in your sample, where it's drawn at 24fps rather than the lower framerates elsewhere, you see that 3/2 pattern briefly. Go to about the 5 second mark where the kid leaves the frame and start advancing a frame at a time.

Me, I'd be much more interested in seeing a sample of the interlaced shorts you mentioned earlier.