Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ if process_button and source_file and model:
|
|
105 |
sample_interval = max(1, int(orig_fps / output_fps)) if output_fps else 1
|
106 |
|
107 |
# Set fixed output FPS to 2 (500ms per frame = 2 FPS)
|
108 |
-
fixed_output_fps =
|
109 |
|
110 |
st.session_state.start_time = time.time()
|
111 |
frame_count = 0
|
@@ -147,7 +147,7 @@ if process_button and source_file and model:
|
|
147 |
writer = ffmpeg.write_frames(
|
148 |
out_path,
|
149 |
(width, height),
|
150 |
-
fps=fixed_output_fps, # Fixed at
|
151 |
codec='libx264',
|
152 |
pix_fmt_in='bgr24',
|
153 |
pix_fmt_out='yuv420p'
|
|
|
105 |
sample_interval = max(1, int(orig_fps / output_fps)) if output_fps else 1
|
106 |
|
107 |
# Set fixed output FPS to 2 (500ms per frame = 2 FPS)
|
108 |
+
fixed_output_fps = 1
|
109 |
|
110 |
st.session_state.start_time = time.time()
|
111 |
frame_count = 0
|
|
|
147 |
writer = ffmpeg.write_frames(
|
148 |
out_path,
|
149 |
(width, height),
|
150 |
+
fps=fixed_output_fps, # Fixed at 1 FPS (1000ms per frame)
|
151 |
codec='libx264',
|
152 |
pix_fmt_in='bgr24',
|
153 |
pix_fmt_out='yuv420p'
|