fnp
/
audio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96f739b
)
Faster video cutting.
author
Radek Czajka
<rczajka@rczajka.pl>
Fri, 22 May 2020 12:19:51 +0000
(14:19 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 22 May 2020 12:19:51 +0000
(14:19 +0200)
src/youtube/utils.py
patch
|
blob
|
history
diff --git
a/src/youtube/utils.py
b/src/youtube/utils.py
index
3dbab09
..
6c95c69
100644
(file)
--- a/
src/youtube/utils.py
+++ b/
src/youtube/utils.py
@@
-52,7
+52,7
@@
def video_from_image(img_path, duration, fps=25, cache=True):
def cut_video(video_path, duration):
return process_to_file(
- ['ffmpeg', '-y', '-i', video_path, '-t', str(duration)],
+ ['ffmpeg', '-y', '-i', video_path, '-t', str(duration)
, '-c', 'copy'
],
'cut-',
'.mkv'
)