Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
|
@@ -34,7 +34,7 @@ async def compress_video(
|
|
| 34 |
(
|
| 35 |
ffmpeg
|
| 36 |
.input(video_url)
|
| 37 |
-
.output(file_path, vf=f"scale={resolution}", crf=crf, vcodec=
|
| 38 |
.global_args("-threads", "0")
|
| 39 |
.overwrite_output()
|
| 40 |
.run()
|
|
|
|
| 34 |
(
|
| 35 |
ffmpeg
|
| 36 |
.input(video_url)
|
| 37 |
+
.output(file_path, vf=f"scale={resolution}", crf=crf, vcodec=codec, preset=preset, f=format)
|
| 38 |
.global_args("-threads", "0")
|
| 39 |
.overwrite_output()
|
| 40 |
.run()
|