Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
d27c119
1
Parent(s):
d23f500
extend zerogpu maximum time to 100 seconds and reduce bitrate
Browse files
LHM/utils/ffmpeg_utils.py
CHANGED
|
@@ -36,7 +36,7 @@ def encodeffmpeg(inputs, frame_rate, output, format="png"):
|
|
| 36 |
os.system(cmd)
|
| 37 |
print("video done!")
|
| 38 |
|
| 39 |
-
def images_to_video(images, output_path, fps, gradio_codec: bool, verbose=False, bitrate="
|
| 40 |
os.makedirs(os.path.dirname(output_path), exist_ok=True)
|
| 41 |
frames = []
|
| 42 |
for i in range(images.shape[0]):
|
|
|
|
| 36 |
os.system(cmd)
|
| 37 |
print("video done!")
|
| 38 |
|
| 39 |
+
def images_to_video(images, output_path, fps, gradio_codec: bool, verbose=False, bitrate="5M"):
|
| 40 |
os.makedirs(os.path.dirname(output_path), exist_ok=True)
|
| 41 |
frames = []
|
| 42 |
for i in range(images.shape[0]):
|