Update app.py
Browse files
app.py
CHANGED
@@ -97,12 +97,12 @@ async def procesar_video(video_input, texto_tts, voz_seleccionada):
|
|
97 |
audio_original
|
98 |
)
|
99 |
|
100 |
-
#
|
101 |
target_width = 1280
|
102 |
target_height = 720
|
103 |
video_resized = video_original.resize(height=target_height) # Ajustar altura a 720p
|
104 |
|
105 |
-
#
|
106 |
current_width = video_resized.w
|
107 |
current_height = video_resized.h
|
108 |
|
|
|
97 |
audio_original
|
98 |
)
|
99 |
|
100 |
+
# Mantener la relaci贸n de aspecto original pero ajustar a una resoluci贸n est谩ndar
|
101 |
target_width = 1280
|
102 |
target_height = 720
|
103 |
video_resized = video_original.resize(height=target_height) # Ajustar altura a 720p
|
104 |
|
105 |
+
# Calcular m谩rgenes para llenar 1280x720
|
106 |
current_width = video_resized.w
|
107 |
current_height = video_resized.h
|
108 |
|