jbilcke-hf HF staff commited on
Commit
930facd
1 Parent(s): d7766f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -205,7 +205,15 @@ def interpolate_video_frames(input_file_path, output_file_path, output_fps=hardc
205
  # old value:
206
  # interpolation_filter = f'minterpolate=fps={output_fps},setpts={scale_factor}*PTS'
207
  # new value:
208
- interpolation_filter = f'minterpolate=mi_mode=mci:mc_mode=obmc:vsbmc=1:mb_size=8:fps={output_fps},setpts={scale_factor}*PTS'
 
 
 
 
 
 
 
 
209
 
210
  cmd = [
211
  'ffmpeg',
 
205
  # old value:
206
  # interpolation_filter = f'minterpolate=fps={output_fps},setpts={scale_factor}*PTS'
207
  # new value:
208
+ interpolation_filter = f'minterpolate=mi_mode=mci:mc_mode=obmc:me=hexbs:vsbmc=1:mb_size=4:fps={output_fps}:scd=none,setpts={scale_factor}*PTS'
209
+ #- `mi_mode=mci`: Specifies motion compensated interpolation.
210
+ #- `mc_mode=obmc`: Overlapped block motion compensation is used.
211
+ #- `me=hexbs`: Hexagon-based search (motion estimation method).
212
+ #- `vsbmc=1`: Variable-size block motion compensation is enabled.
213
+ #- `mb_size=8`: Sets the macroblock size.
214
+ #- `fps={output_fps}`: Defines the output frame rate.
215
+ #- `scd=none`: Disables scene change detection entirely.
216
+ #- `setpts={scale_factor}*PTS`: Adjusts for the stretching of the video duration.
217
 
218
  cmd = [
219
  'ffmpeg',