Skip to content

A clumsy video auto duplication remove and frame interpolate script (mainly for 24fps cfr animation with dup-frames)

Notifications You must be signed in to change notification settings

Mr-Z-2697/ddfi-rife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

中文说明

ddfi

dedup frame interpolate

A clumsy video auto duplication remove and frame interpolate script (mainly for 24fps cfr animation with dup-frames (by dup-frames I mean the shot on twos, threes and etc. things)

The basic idea:

  1. Remove duplicated frames (resulting a vfr video that technically has minimal fps 8)
  2. Interpolate 8x (to ensure minimal fps parts will be above 60fps after interpolation)
  3. Extract timestamps from de-dupped video, then calculate the timestamps of interpolated frames
  4. "Correct" the interpolated video with caculated timestamps
  5. Convert to 60fps cfr video

(yeah, its basically just simply excuting commands automatically except new-timestamps calculating part)
(this is old concept and is not how the script now operates, but the general idea is the same)

Usage:

run ddfi2.py -h or python ddfi2.py -h for detail

Example:

left: this script(rife ver.) | right: use rife directly (2-pass, with mvtools to make 24->96->60)

comp.mp4

Downsides:

more visible artifacts because you are actually interpolating frames instead of f***ing with same frames over and over

rife ver.: IMG svp ver.: IMG

About

A clumsy video auto duplication remove and frame interpolate script (mainly for 24fps cfr animation with dup-frames)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages