SPACERUNNER99 commited on
Commit
504809d
·
verified ·
1 Parent(s): c8006c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -379,7 +379,7 @@ def process_video(url, type):
379
  video = VideoFileClip(input_video)
380
  image_clip = ImageClip(image_path).with_duration(1)
381
  # Set the position and size of the image (optional)
382
- image_clip = image_clip.with_position(("center", "center")).resize(height=video.size[1])
383
  first_video = CompositeVideoClip([video.with_start(1), image_clip])
384
  input_video = input_video_name+"_cover.mp4"
385
  input_video_name = input_video.replace(".mp4", "")
 
379
  video = VideoFileClip(input_video)
380
  image_clip = ImageClip(image_path).with_duration(1)
381
  # Set the position and size of the image (optional)
382
+ image_clip = image_clip.with_position(("center", "center")).resized(height=video.size[1])
383
  first_video = CompositeVideoClip([video.with_start(1), image_clip])
384
  input_video = input_video_name+"_cover.mp4"
385
  input_video_name = input_video.replace(".mp4", "")