Update app.py
Browse files
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}))',
|
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}))',
|
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')
|