Spaces:
Sleeping
Sleeping
Update video_processing.py
Browse files- video_processing.py +1 -1
video_processing.py
CHANGED
@@ -66,7 +66,7 @@ def download_video(url):
|
|
66 |
def sanitize_filename(filename):
|
67 |
return "".join([c if c.isalnum() or c in " .-_()" else "_" for c in filename])
|
68 |
|
69 |
-
def find_scenes(video_path, downscale_factor=
|
70 |
video_manager = VideoManager([video_path])
|
71 |
scene_manager = SceneManager()
|
72 |
scene_manager.add_detector(ContentDetector(threshold=33)) # Adjusted threshold for finer segmentation
|
|
|
66 |
def sanitize_filename(filename):
|
67 |
return "".join([c if c.isalnum() or c in " .-_()" else "_" for c in filename])
|
68 |
|
69 |
+
def find_scenes(video_path, downscale_factor=10):
|
70 |
video_manager = VideoManager([video_path])
|
71 |
scene_manager = SceneManager()
|
72 |
scene_manager.add_detector(ContentDetector(threshold=33)) # Adjusted threshold for finer segmentation
|