Log in

View Full Version : Automated Hybrid Decimation


Asrial
19th May 2006, 18:04
First, I don't know if something like this exists since I've been out of the game a pretty long time.

.

I'm looking for someone to create a filter similar to decomb that would allow for an automated decimation of 24fps content while leaving 29fps content alone.

I need this for specific 3/2 sci-fi content (IE: Star Trek).

It HAS been a while so I'm fuzzy on why decomb or dedup (vfr dup) won't work. All I remember is that I tried and never could get them to work efficiently or the way I wanted to, but the following method WOULD work. I'll refresh my memory as best as I can. Essentially, it would work like this...

You set a 'threshold' similar to dup. You set the decimation cycle similar to decomb.

For 3/2 content, every 5 frames will have a duplicate. The only theory I care about is that the duplicate is an EXACT match of the prior/next frame (again, this is for specific use on clean 3/2 sci-fi).

Decomb chugs along and kills the duplicate through decimate, no real problems here. However, it has an extra step where if the frame being killed is not lower than X (the threshold you set) when compared to the prior/next frame, it's not killed. It's left alone.

At this point, the filter would probably have to break the '1 in 5' rule until it gets back onto a proper decimation cycle.

Now, here's the kicker that allows it to work (and as I type this, now I'm remembering why decomb won't work).

The resulting file will need Matroska VFR for playback. This filter would have to make timecodes to allow this.

My brain is getting fuzzy as I think about this. I can't wrap my mind around the concept of playing 24fps AND 30fps in the same file. I forget the process and concept itself, just that it involves VFR. It's been too long, heh.

Though, now rambling, I suppose it's just like any regular VFR encode that has hybrid content. I'm just looking for a filter that can automate the process on a clean 3/2 hybrid source.

Sooooo, any takers?

Guest
19th May 2006, 18:31
Doesn't tritical's stuff (TDeint/TDecimate) support this mode of operation?

tritical
19th May 2006, 19:13
See http://www.avisynth.org/VariableFrameRateVideo. Specifically, the "encoding to vfr (mkv)" section. Both TIVTC and DecombVFR can do automated vfr for matroska with timecode file output.

Asrial
19th May 2006, 19:40
I'll give these two filters a looksee.

Is the DecombVFR your filter DG?

Guest
19th May 2006, 20:44
No, Sir. I believe it is by FalconX et al.

foxyshadis
20th May 2006, 01:59
http://www.avisynth.org/mediawiki/wiki/VFR

This one has some corrections and additions the other doesn't, as mentioned at the top of the page.

Oh, and as far as I know, MeGUI can automate the entire hybrid process, from dvd input to mkv timecode muxing, using the same steps behind the scenes as the guide. You'd have to ask berrinam for specifics, since it's not a widely used feature afaik, but it's a very pleasant one.

Asrial
20th May 2006, 03:21
On a very brief first inspection, TIVTC seems to be doing exactly what I want :)

Thanks for all the links guys!