fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Badges on audiobook list.
[audio.git]
/
src
/
youtube
/
utils.py
diff --git
a/src/youtube/utils.py
b/src/youtube/utils.py
index
42ebc91
..
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(
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'
)
'cut-',
'.mkv'
)
@@
-101,6
+101,7
@@
def mux(channels, output_path=None):
args = ['ffmpeg', '-y']
for c in channels:
args.extend(['-i', c])
args = ['ffmpeg', '-y']
for c in channels:
args.extend(['-i', c])
+ args.extend(['-c', 'copy'])
return process_to_file(args, 'mux-', '.mkv', output_path=output_path)
return process_to_file(args, 'mux-', '.mkv', output_path=output_path)