Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,13 +12,13 @@ from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
|
|
| 12 |
# —————————————————————————————————————————————————
|
| 13 |
|
| 14 |
title = "Scene Edit Detection"
|
| 15 |
-
description = "Gradio demo of PyScene scenedetect, to automatically find every shots in a video sequence,
|
| 16 |
|
| 17 |
# —————————————————————————————————————————————————
|
| 18 |
|
| 19 |
# SET INPUTS
|
| 20 |
video_input = gr.Video(source="upload", format="mp4", label="Video Sequence", mirror_webcam=False)
|
| 21 |
-
threshold = gr.Slider(label="Threshold pixel
|
| 22 |
|
| 23 |
# —————————————————————————————————————————————————
|
| 24 |
|
|
|
|
| 12 |
# —————————————————————————————————————————————————
|
| 13 |
|
| 14 |
title = "Scene Edit Detection"
|
| 15 |
+
description = "Gradio demo of PyScene scenedetect, to automatically find every shots in a video sequence, give you timecode in/out for each shot, save each shot as a splitted mp4 video chunk for you to download, then display a thumbnail for each shot as a gallery output"
|
| 16 |
|
| 17 |
# —————————————————————————————————————————————————
|
| 18 |
|
| 19 |
# SET INPUTS
|
| 20 |
video_input = gr.Video(source="upload", format="mp4", label="Video Sequence", mirror_webcam=False)
|
| 21 |
+
threshold = gr.Slider(label="Threshold pixel comparison: if exceeded, triggers a scene cut. Default: 27.0", minimum=15.0, maximum=40.0, value=27.0)
|
| 22 |
|
| 23 |
# —————————————————————————————————————————————————
|
| 24 |
|