Back Forum Reply New

Non-Standard frame rate possibly vfr animation

I have a Disney animation source that I would like to remove all of the duplicate frames from and then encode into a variable frame rate mkv.  Right now I am doing it with a script that looks like this:

Code:
#  PLUGINS
LoadPlugin(quot;C:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dllquot;)
LoadPlugin(quot;C:\PROGRA~1\GORDIA~1\AviSynthPlugins\Decomb521VFR1.3_PPro-P3.dllquot;)
LoadPlugin(quot;C:\PROGRA~1\GORDIA~1\AviSynthPlugins\NiceFPS.dllquot;)

#  SOURCE
mpeg2source(quot;C:\Work\Beauty and the Beast\Beauty and the Beast.d2vquot;, idct=0)

#  IVTC
oldcount=framecount # this line must be before decimation
Decimate(mode=4, threshold=1.0, progress=true, timecodes=quot;timecodes01.txtquot;, vfrstats=quot;stats01.txtquot;)
oldfps=framerate
averagefps=(float(framecount)/float(oldcount))*oldfps
assumefps(averagefps).nicefps()

#  IVTC
oldcount=framecount # this line must be before decimation
Decimate(mode=4, threshold=1.0, progress=true, timecodes=quot;timecodes02.txtquot;, vfrstats=quot;stats02.txtquot;)
oldfps=framerate
averagefps=(float(framecount)/float(oldcount))*oldfps
assumefps(averagefps).nicefps()

...
Continuing on with another 8 Decimate passes.

Now before you get on my case for doing multiple decimate passes let me explain my reasoning.

I was following this guide: VariableFram...create-vfr-mkv

Which gave me the impression that one of those IVTC blocks would remove all of the duplicate frames and supply the timecodes for the frames to keep everything copesetic.  However, just for kicks I ran the output of the script they suggested through another essentially identitical script and low and behold it removed more frames.  Am I missing something here?  Am I removing none duplicate frames?  Is there a way to do this without all of those decimate passes?

Note: The MPEG2 source has already been through one round of IVTC in DGIndex to take it from 29.970 to 23.976

i'll answer with someone else's words:

showthread.ph...859#post765859

there's a filter that drops duplicates (frames whose difference is less than a threshold that you set), and outputs an mkv timecode file that you use when muxing the mkv.

Thanks.  DeDup told me exactly what I needed to know.

Essentially that I was decimating away content.
¥
Back Forum Reply New