Log in

View Full Version : Decimating question


Troc
12th November 2020, 20:51
Hello, I'm trying to decimate a video (remove duplicate/close enough to duplicate frames). However, upon trying MDEC 2, I've ran into an error saying "Cannot open dfile.txt". I read the readme and still don't know what dfile is supposed to be. I created a txt file titled dfile.txt myself and pointed to it and now it says "incompatible number of frames".

Is there a decimating filter out there that's more recommended? I would like to know. :/ Either Avisynth 64bit or Virtualdub.

FranceBB
12th November 2020, 21:50
How about TDecimate()?
If the video is progressive, there are dups and you know exactly the original framerate, then you can just use:
TDecimate(mode=2, rate=whatever)
where "whatever" is the original framerate of the file, like 23.976, 25, 29.970 etc.
Whenever I have to decimate a video, TDecimate is my de facto choice. ;)

http://avisynth.nl/index.php/TIVTC/TDecimate

StainlessS
12th November 2020, 23:24
MDec2() is a bit unforgiving, given eg 1 in 6 frames removed, so output framerate must be Rate=5/6 of input framerate,
no margin for error, must be exact or outputs "incompatible number of frames" just as you describe.
I only really did the plug for myself, and I pretty much never use NTSC stuff so intended for 25FPS really. I
only released as somebody asked for Multidecimate source so I just posted what I had been using myself, ie MDec2.
[There never was any source posted for multidecimate which worked only for YUY2 (or maybe only YV12, can remember)]

Troc
13th November 2020, 00:05
How about TDecimate()?
If the video is progressive, there are dups and you know exactly the original framerate, then you can just use:
TDecimate(mode=2, rate=whatever)
where "whatever" is the original framerate of the file, like 23.976, 25, 29.970 etc.
Whenever I have to decimate a video, TDecimate is my de facto choice. ;)

http://avisynth.nl/index.php/TIVTC/TDecimate

I'm getting a 404. :/
https://web.archive.org/web/20160606103302/http://bengal.missouri.edu/~kes25c/TIVTCv105.zip

kedautinh12
13th November 2020, 00:13
I'm getting a 404. :/
https://web.archive.org/web/20160606103302/http://bengal.missouri.edu/~kes25c/TIVTCv105.zip

Your link download is old ver, please use new ver:
https://github.com/pinterf/TIVTC/releases