X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/f9eae91a6d2d175b2f227d7ea04ddd5994e9a95a..4a8e96ac1f0a7c451d6d8ec28c773d2df76bb086:/src/youtube/utils.py?ds=sidebyside diff --git a/src/youtube/utils.py b/src/youtube/utils.py index 3dbab09..6c95c69 100644 --- 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' )