gnosticdev commited on
Commit
bc09d0c
·
verified ·
1 Parent(s): 90d3598

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1197,7 +1197,7 @@ def crear_video(prompt_type, input_text, musica_file=None):
1197
  if not output_path or not isinstance(output_path, str):
1198
  logger.critical(f"output_path no es válido: {output_path}")
1199
  raise ValueError("El nombre del archivo de salida no es válido.")
1200
- try:
1201
  video_final.write_videofile(
1202
  filename=output_path,
1203
  fps=24,
@@ -1205,7 +1205,9 @@ def crear_video(prompt_type, input_text, musica_file=None):
1205
  codec="libx264",
1206
  audio_codec="aac",
1207
  preset="medium",
1208
- logger='bar'
 
 
1209
  )
1210
  except Exception as e:
1211
  logger.critical(f"Error al escribir el video final: {str(e)}", exc_info=True)
 
1197
  if not output_path or not isinstance(output_path, str):
1198
  logger.critical(f"output_path no es válido: {output_path}")
1199
  raise ValueError("El nombre del archivo de salida no es válido.")
1200
+ try:
1201
  video_final.write_videofile(
1202
  filename=output_path,
1203
  fps=24,
 
1205
  codec="libx264",
1206
  audio_codec="aac",
1207
  preset="medium",
1208
+ logger='bar',
1209
+ bitrate="2000k",
1210
+ ffmpeg_params=['-vf', 'scale=1280:720']
1211
  )
1212
  except Exception as e:
1213
  logger.critical(f"Error al escribir el video final: {str(e)}", exc_info=True)