Spaces:
Sleeping
Sleeping
Update video2.py
Browse files
video2.py
CHANGED
|
@@ -62,16 +62,4 @@ def video_func(id, lines):
|
|
| 62 |
output_dir=CLIPS_DIR # Add your output directory here
|
| 63 |
)
|
| 64 |
print(f"Created {clip_file}")
|
| 65 |
-
|
| 66 |
-
def video_com(lines):
|
| 67 |
-
video_path = f"/tmp/video_{uuid.uuid4().hex}.mp4"
|
| 68 |
-
for id in range(len(lines)):
|
| 69 |
-
video_func(id,lines)
|
| 70 |
-
print(id,lines[id])
|
| 71 |
-
clips = []
|
| 72 |
-
for id in range(len(lines)):
|
| 73 |
-
clip = f"/app/data/video/clip{id}.mp4"
|
| 74 |
-
clips.append(clip)
|
| 75 |
-
|
| 76 |
-
video_path = rust_combiner.combine_clips(clips)
|
| 77 |
-
return video_path
|
|
|
|
| 62 |
output_dir=CLIPS_DIR # Add your output directory here
|
| 63 |
)
|
| 64 |
print(f"Created {clip_file}")
|
| 65 |
+
return f"/app/data/video/clip{id}.mp4"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|