Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
emkademy committed Jan 3, 2022
1 parent 585c2c6 commit 627b988
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions jumpcutter/clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,17 @@ def jumpcut_silent_parts(self, intervals_to_cut):

previous_stop = stop

last_clip = self.clip.subclip(stop, self.clip.duration)
jumpcutted_clips.append(last_clip)
if previous_stop < self.clip.duration:
last_clip = self.clip.subclip(previous_stop, self.clip.duration)
jumpcutted_clips.append(last_clip)
return jumpcutted_clips

def jumpcut_voiced_parts(self, intervals_to_cut):
jumpcutted_clips = []
for start, stop in tqdm(intervals_to_cut, desc="Cutting voiced intervals"):
silence_clip = self.clip.subclip(start, stop)
jumpcutted_clips.append(silence_clip)
if start < stop:
silence_clip = self.clip.subclip(start, stop)
jumpcutted_clips.append(silence_clip)
return jumpcutted_clips


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "jumpcutter"
version = "0.1.5"
version = "0.1.6"
description = "Jumpcut silent parts of your videos automagically"
authors = ["Kivanc Yuksel <emkademy@gmail.com>"]
license="MIT"
Expand Down

0 comments on commit 627b988

Please sign in to comment.