Spaces:
Paused
Paused
Update pipeline.py
Browse files- pipeline.py +4 -0
pipeline.py
CHANGED
@@ -233,6 +233,10 @@ def create_combined_output_subprocess(input_video, output_audio, output_video):
|
|
233 |
audio_duration = get_media_duration(output_audio)
|
234 |
|
235 |
speed_factor = calculate_speed_factor(video_duration, audio_duration)
|
|
|
|
|
|
|
|
|
236 |
print(f"Speed factor: {speed_factor}")
|
237 |
|
238 |
try:
|
|
|
233 |
audio_duration = get_media_duration(output_audio)
|
234 |
|
235 |
speed_factor = calculate_speed_factor(video_duration, audio_duration)
|
236 |
+
if speed_factor < 0.5:
|
237 |
+
speed_factor = 0.5
|
238 |
+
if speed_factor > 100:
|
239 |
+
speed_factor = 100
|
240 |
print(f"Speed factor: {speed_factor}")
|
241 |
|
242 |
try:
|