Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaker authored Nov 25, 2020
1 parent 85472a7 commit db684a2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
21 changes: 10 additions & 11 deletions timeLineSelectionFrameUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,23 @@ def __init__(self, master, controller, *args, **kwargs):

self.timeline_canvas_popup_menu = tk.Menu(self, tearoff=0)

self.timeline_canvas_popup_menu.add_command(label="Add new subclip",command=self.canvasPopupAddNewSubClipCallback)
self.timeline_canvas_popup_menu.add_command(label="Delete subclip",command=self.canvasPopupRemoveSubClipCallback)
self.timeline_canvas_popup_menu.add_separator()
self.timeline_canvas_popup_menu.add_command(label="Clone subclip",command=self.canvasPopupCloneSubClipCallback)
self.timeline_canvas_popup_menu.add_separator()
self.timeline_canvas_popup_menu.add_command(label="Add new interest mark",command=self.canvasPopupAddNewInterestMarkCallback)
self.timeline_canvas_popup_menu.add_separator()

self.timeline_canvas_popup_menu.add_command(label="Nudge to lowest error +- 1s",command=self.canvasPopupFindLowestError1s)
self.timeline_canvas_popup_menu.add_command(label="Nudge to lowest error +- 2s",command=self.canvasPopupFindLowestError2s)
self.timeline_canvas_popup_menu.add_separator()

self.timeline_canvas_popup_menu.add_command(label="Run scene scene change detection",command=self.canvasPopupRunSceneChangeDetection)
self.timeline_canvas_popup_menu.add_separator()

self.timeline_canvas_popup_menu.add_command(label="Clone subclip",command=self.canvasPopupCloneSubClipCallback)
self.timeline_canvas_popup_menu.add_separator()

self.timeline_canvas_popup_menu.add_command(label="Delete subclip",command=self.canvasPopupRemoveSubClipCallback)
self.timeline_canvas_popup_menu.add_command(label="Add new subclip",command=self.canvasPopupAddNewSubClipCallback)






self.timeline_canvas_last_right_click_x=None

Expand Down Expand Up @@ -573,9 +575,6 @@ def canvasPopupAddNewSubClipCallback(self):

self.timeline_canvas_last_right_click_x=None

def canvasPopupRunSceneChangeDetection(self):
self.controller.runSceneChangeDetection()

def canvasPopupFindLowestError1s(self):
self.findLowestErrorForBetterLoop(1.0)

Expand Down
3 changes: 3 additions & 0 deletions webmGeneratorController.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ def __init__(self,initialFiles):
except Exception as e:
print('audoload save failed',e)

def runSceneChangeDetection(self):
self.cutselectionController.runSceneChangeDetection()

def cleanInitialFiles(self,files):
finalFiles = []
for f in files:
Expand Down
3 changes: 3 additions & 0 deletions webmGeneratorUi.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ def __init__(self,controller,master=None):
self.filemenu.add_command(label="Save Project", command=self.saveProject)
self.filemenu.add_separator()

self.filemenu.add_command(label="Run scene change detection", command=self.controller.runSceneChangeDetection)
self.filemenu.add_separator()

self.filemenu.add_command(label="Load Video from File", command=self.loadVideoFiles)
self.filemenu.add_command(label="Load Video from youtube-dl supported url", command=self.loadVideoYTdl)
self.filemenu.add_command(label="Load Image as static video", command=self.loadImageFile)
Expand Down

0 comments on commit db684a2

Please sign in to comment.