Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -66,6 +66,9 @@ def convert_video(video_file, quality, aspect_ratio, video_url, api_key, upload,
|
|
66 |
|
67 |
aspect_ratio = get_aspect_ratio(input_path, aspect_ratio)
|
68 |
|
|
|
|
|
|
|
69 |
for res in resolution:
|
70 |
scale = "-1:" + str(res.replace("p", "")) # we convert '1080p' to '-1:1080'
|
71 |
output_path = get_output_path(input_path, temp_dir, res) # pass the resolution to create a unique output file
|
|
|
66 |
|
67 |
aspect_ratio = get_aspect_ratio(input_path, aspect_ratio)
|
68 |
|
69 |
+
# Check if resolution is a list, if not convert it to a list
|
70 |
+
resolution = [resolution] if not isinstance(resolution, list) else resolution
|
71 |
+
|
72 |
for res in resolution:
|
73 |
scale = "-1:" + str(res.replace("p", "")) # we convert '1080p' to '-1:1080'
|
74 |
output_path = get_output_path(input_path, temp_dir, res) # pass the resolution to create a unique output file
|