Update app.py
Browse files
app.py
CHANGED
@@ -379,10 +379,8 @@ if st.button("Gerar Vídeo(s)"):
|
|
379 |
vf_af += f",drawtext=text='{encoder_name}':[email protected]:x=10:y=10:fontsize=24"
|
380 |
if usar_glitch:
|
381 |
vf_af += ",blackframe=1:0"
|
382 |
-
|
383 |
-
|
384 |
-
# h = random.choice([1280, 1440, 1920])
|
385 |
-
# vf_af += f",scale={w}:{h}"
|
386 |
if transicoes:
|
387 |
effects = [
|
388 |
"fade=t=in:st=0:d=0.5",
|
|
|
379 |
vf_af += f",drawtext=text='{encoder_name}':[email protected]:x=10:y=10:fontsize=24"
|
380 |
if usar_glitch:
|
381 |
vf_af += ",blackframe=1:0"
|
382 |
+
# 🔒 Garantir resolução 9:16 no Anti-Flop
|
383 |
+
vf_af += ",scale=720:1280:force_original_aspect_ratio=decrease,pad=720:1280:(ow-iw)/2:(oh-ih)/2"
|
|
|
|
|
384 |
if transicoes:
|
385 |
effects = [
|
386 |
"fade=t=in:st=0:d=0.5",
|