pcdoido2 commited on
Commit
a8e682a
·
verified ·
1 Parent(s): 0dd8991

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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
- # if res_random:
383
- # w = random.choice([720, 960, 1080])
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",