junma commited on
Commit
c1f28d4
·
verified ·
1 Parent(s): 676984e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -57,13 +57,13 @@ def get_meta_from_video(Seg_Tracker, input_video, scale_slider, checkpoint):
57
  try:
58
  ffmpeg.input(input_video, hwaccel='cuda').output(
59
  os.path.join(output_dir, '%07d.jpg'), q=2, start_number=0,
60
- vf=rf'select=not(mod(n\,{frame_interval}))', fps_mode='vfr'
61
  ).run()
62
  except:
63
  print(f"ffmpeg cuda err")
64
  ffmpeg.input(input_video).output(
65
  os.path.join(output_dir, '%07d.jpg'), q=2, start_number=0,
66
- vf=rf'select=not(mod(n\,{frame_interval}))', fps_mode='vfr'
67
  ).run()
68
 
69
  first_frame_path = os.path.join(output_dir, '0000000.jpg')
 
57
  try:
58
  ffmpeg.input(input_video, hwaccel='cuda').output(
59
  os.path.join(output_dir, '%07d.jpg'), q=2, start_number=0,
60
+ vf=rf'select=not(mod(n\,{frame_interval}))', vsync='vfr'
61
  ).run()
62
  except:
63
  print(f"ffmpeg cuda err")
64
  ffmpeg.input(input_video).output(
65
  os.path.join(output_dir, '%07d.jpg'), q=2, start_number=0,
66
+ vf=rf'select=not(mod(n\,{frame_interval}))', vsync='vfr'
67
  ).run()
68
 
69
  first_frame_path = os.path.join(output_dir, '0000000.jpg')