Spaces:
Running
Running
Update app.py
Browse files
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")).
|
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", "")
|