jschwab21 commited on
Commit
8798a47
·
verified ·
1 Parent(s): 43f5151

Update video_processing.py

Browse files
Files changed (1) hide show
  1. 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=2.2):
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