Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def clip_video_segment(input_video_path, start_time, duration):
|
|
| 46 |
'ffmpeg', '-y', '-ss', str(start_time), '-i', input_video_path,
|
| 47 |
'-t', str(duration), '-c', 'copy', output_video_path
|
| 48 |
])
|
| 49 |
-
|
| 50 |
return output_video_path
|
| 51 |
|
| 52 |
def encode_to_video_fast(frames, fps):
|
|
@@ -218,7 +218,7 @@ def analyze_video_file(prompt, video_path, chatbot):
|
|
| 218 |
chunk = 0
|
| 219 |
|
| 220 |
# Create a thread pool for concurrent processing
|
| 221 |
-
with ThreadPoolExecutor(max_workers=
|
| 222 |
futures = []
|
| 223 |
|
| 224 |
while not stop_capture:
|
|
|
|
| 46 |
'ffmpeg', '-y', '-ss', str(start_time), '-i', input_video_path,
|
| 47 |
'-t', str(duration), '-c', 'copy', output_video_path
|
| 48 |
])
|
| 49 |
+
print('input_video_path', input_video_path)
|
| 50 |
return output_video_path
|
| 51 |
|
| 52 |
def encode_to_video_fast(frames, fps):
|
|
|
|
| 218 |
chunk = 0
|
| 219 |
|
| 220 |
# Create a thread pool for concurrent processing
|
| 221 |
+
with ThreadPoolExecutor(max_workers=4) as executor:
|
| 222 |
futures = []
|
| 223 |
|
| 224 |
while not stop_capture:
|