Skip to content

Commit

Permalink
removed 1.5 times clip length requirement down to 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaiacker committed Dec 28, 2020
1 parent c752e34 commit dbee054
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# randomcut
create a movie with random short clips from video files using moviepy

## install

easy:

```
sudo apt install ffmpeg python
python -m pip install moviepy
```
and then download randomcut.py

## usage


Expand All @@ -27,9 +37,6 @@ optional arguments:
-h, --help show this help message and exit
-r, --recursive recurse into subfolders [default: False]
-v, --verbose set verbosity level [default: 0]
-i RE, --include RE only include paths matching this regex pattern. Note: exclude is given preference over include.
[default: None]
-e RE, --exclude RE exclude paths matching this regex pattern. [default: None]
-V, --version show program's version number and exit
-d path, --dir path directory to find clips in [default: .]
-n NUM, --num NUM max number of clips to use
Expand Down
2 changes: 1 addition & 1 deletion randomcut.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def cut(self):
if self.verbose>0:
print(str(clip_name),e)
continue
if clip.duration<self.clip_length*1.5+self.clip_offset:
if clip.duration<self.clip_length+self.clip_offset:
if self.verbose>1:
print(str(clip_name)," too short:", clip.duration, "s")
clip.close()
Expand Down

0 comments on commit dbee054

Please sign in to comment.