fffiloni commited on
Commit
75542d6
1 Parent(s): e5ac756

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,7 +6,7 @@ from scenedetect.detectors import ContentDetector
6
 
7
  from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
8
 
9
- outputs = ["json", "video", "video", "video", "video", "video", "video"]
10
  data_outputs = []
11
 
12
  def fn(list):
@@ -23,7 +23,7 @@ def find_scenes(video_path, threshold=27.0):
23
  scene_manager.detect_scenes(video, show_progress=True)
24
  scene_list = scene_manager.get_scene_list()
25
 
26
- outputs.append("json")
27
  data_outputs.append(scene_list)
28
  #print(scene_list)
29
 
@@ -34,7 +34,7 @@ def find_scenes(video_path, threshold=27.0):
34
  target_name = str(i)+"_cut.mp4"
35
  ffmpeg_extract_subclip(video_path, shot_in, shot_out, targetname=target_name)
36
  data_outputs.append(target_name)
37
- outputs.append("video")
38
  #shot_in = scene_list[1][0].get_frames() / scene_list[1][0].get_framerate()
39
  #shot_out = (scene_list[1][1].get_frames() - 1) / scene_list[1][0].get_framerate()
40
  #print(shot_in, shot_out)
 
6
 
7
  from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
8
 
9
+ outputs = ["json", "video", "video", "video", "video", "video", "video", "video"]
10
  data_outputs = []
11
 
12
  def fn(list):
 
23
  scene_manager.detect_scenes(video, show_progress=True)
24
  scene_list = scene_manager.get_scene_list()
25
 
26
+ #outputs.append("json")
27
  data_outputs.append(scene_list)
28
  #print(scene_list)
29
 
 
34
  target_name = str(i)+"_cut.mp4"
35
  ffmpeg_extract_subclip(video_path, shot_in, shot_out, targetname=target_name)
36
  data_outputs.append(target_name)
37
+ #outputs.append("video")
38
  #shot_in = scene_list[1][0].get_frames() / scene_list[1][0].get_framerate()
39
  #shot_out = (scene_list[1][1].get_frames() - 1) / scene_list[1][0].get_framerate()
40
  #print(shot_in, shot_out)