Skip to content

Instantly share code, notes, and snippets.

View namoshizun's full-sized avatar
👋

Di Lu namoshizun

👋
View GitHub Profile
@namoshizun
namoshizun / test.py
Created June 11, 2018 10:56
[Python + FFMPEG] change video speed without affecting pitch and/or concatenate multiple clips
from vid_utils import Video, concatenate_videos
videos = [
Video(speed=1.0, path="C:/temp/my_video_1.mp4"),
Video(speed=2.0, path="C:/temp/my_video_2.mp4"),
Video(speed=0.5, path="C:/temp/my_video_3.mp4"),
]
concatenate_videos(videos=videos, output_file=f"C:/temp/output_video.mp4")