ming vor 3 Jahren
Ursprung
Commit
b08a75a7e4
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      main.py

+ 3 - 3
main.py

@@ -598,13 +598,13 @@ def anchor_video_v2(name,text_content, image_urls):
     w.SetVideoOptions(True, "libx264", openshot.Fraction(30000, 1000), 1280, 720,
         openshot.Fraction(1, 1), False, False, 3000000)
     w.Open()
-
+    progress = 100
+    ws.send(str(progress))
     #may change duration into t.info.duration
     for n in range(int(t.info.fps)*int(head_duration+main_timer+ED_duration)):
         f=t.GetFrame(n)
         w.WriteFrame(f)
-    progress = 100
-    ws.send(str(progress))
+    
     
     t.Close()
     w.Close()