Spaces:
Build error
Build error
app.py
CHANGED
|
@@ -180,39 +180,8 @@ def gen_moviepy_gif(start_seconds, end_seconds):
|
|
| 180 |
return gif_img
|
| 181 |
|
| 182 |
|
| 183 |
-
|
| 184 |
-
# Import everything needed to edit video clips
|
| 185 |
-
from moviepy.editor import *
|
| 186 |
-
|
| 187 |
-
# loading video gfg
|
| 188 |
-
clip = VideoFileClip("geeks.mp4")
|
| 189 |
-
|
| 190 |
-
# getting subclip
|
| 191 |
-
clip = clip.subclip(0, 7)
|
| 192 |
-
|
| 193 |
-
# saving the clip
|
| 194 |
-
clip.write_videofile("handmade_gfg.mp4")
|
| 195 |
-
|
| 196 |
-
# showing clip
|
| 197 |
-
clip.ipython_display()
|
| 198 |
-
|
| 199 |
-
# Import everything needed to edit video clips
|
| 200 |
-
from moviepy.editor import *
|
| 201 |
-
|
| 202 |
-
# loading video gfg
|
| 203 |
-
clip = VideoFileClip("geeks.mp4")
|
| 204 |
-
|
| 205 |
-
# getting only first 3 seconds
|
| 206 |
-
clip = clip.subclip(0, 3)
|
| 207 |
-
|
| 208 |
-
# saving video clip as gif
|
| 209 |
-
clip.write_gif("intro_gif.gif")
|
| 210 |
-
|
| 211 |
-
# loading gif
|
| 212 |
-
gif = VideoFileClip("intro_gif.gif")
|
| 213 |
-
|
| 214 |
# showing gif
|
| 215 |
-
gif.ipython_display()
|
| 216 |
|
| 217 |
|
| 218 |
sample_video = ['./ShiaLaBeouf.mp4']
|
|
|
|
| 180 |
return gif_img
|
| 181 |
|
| 182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
# showing gif
|
| 184 |
+
#gif.ipython_display()
|
| 185 |
|
| 186 |
|
| 187 |
sample_video = ['./ShiaLaBeouf.mp4']
|