digidau commited on
Commit
1b0cd4f
·
verified ·
1 Parent(s): 67c193e

Update background.py

Browse files
Files changed (1) hide show
  1. background.py +7 -9
background.py CHANGED
@@ -26,15 +26,13 @@ def generate_background(images, output_path):
26
  temp_videos.append(temp_video)
27
 
28
  vf = (
29
- "scale=3840:2160:force_original_aspect_ratio=increase,"
30
- "crop=3840:2160,"
31
- f"zoompan="
32
- f"z='1+0.30*on/{total_frames}':"
33
- f"x='(iw-iw/zoom)/2':"
34
- f"y='(ih-ih/zoom)/2':"
35
- f"d={total_frames}:"
36
- "s=3840x2160:"
37
- f"fps={fps},"
38
  "scale=1920:1080:flags=lanczos"
39
  )
40
 
 
26
  temp_videos.append(temp_video)
27
 
28
  vf = (
29
+ "scale=4800:2700:force_original_aspect_ratio=increase,"
30
+ "crop=4800:2700,"
31
+ "crop="
32
+ "'3840+960*t/16':"
33
+ "'2160+540*t/16':"
34
+ "'(iw-(3840+960*t/16))/2':"
35
+ "'(ih-(2160+540*t/16))/2-120*t/16',"
 
 
36
  "scale=1920:1080:flags=lanczos"
37
  )
38