Spaces:
Running
Running
Tu Nombre commited on
Commit 路
a2e74fa
1
Parent(s): 6fc1f22
fix crop con fondo blur sin cortar texto
Browse files- cliente_template.py +1 -1
cliente_template.py
CHANGED
|
@@ -175,7 +175,7 @@ async def pipeline():
|
|
| 175 |
size=(clip.w*0.8,None)).set_start(i*t_f).set_duration(t_f).set_pos(("center", {"arriba":0.15,"centro":0.5,"abajo":0.75}.get(CONFIG.get("posicion_subtitulos","abajo"),0.75)), relative=True)
|
| 176 |
for i,t in enumerate(frases)]
|
| 177 |
final = CompositeVideoClip([clip]+txts).set_audio(voz)
|
| 178 |
-
final.write_videofile("out.mp4", fps=
|
| 179 |
log("Video renderizado")
|
| 180 |
STATUS = "Esperando conexi贸n YouTube..."
|
| 181 |
while not os.path.exists("token.json"):
|
|
|
|
| 175 |
size=(clip.w*0.8,None)).set_start(i*t_f).set_duration(t_f).set_pos(("center", {"arriba":0.15,"centro":0.5,"abajo":0.75}.get(CONFIG.get("posicion_subtitulos","abajo"),0.75)), relative=True)
|
| 176 |
for i,t in enumerate(frases)]
|
| 177 |
final = CompositeVideoClip([clip]+txts).set_audio(voz)
|
| 178 |
+
final.write_videofile("out.mp4", fps=30, codec="libx264", preset="ultrafast", logger=None, threads=2)
|
| 179 |
log("Video renderizado")
|
| 180 |
STATUS = "Esperando conexi贸n YouTube..."
|
| 181 |
while not os.path.exists("token.json"):
|