Cut a part of a movie - or Python for Monty Python
- bdata3
- Mar 17, 2020
- 1 min read
Updated: Apr 6, 2020
Well, you want to send a small snap of a movie - let's say in Whatsapp - for example, part of Life of Brian - because you want to prove a point or whatever - so how do you start it in the 5040th second?
download the movie (google it ...) and using the following python code to crap the wanted sean:
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
ffmpeg_extract_subclip("/Users/allcloud/Downloads/Brien.mp4", 5040, 5091, targetname="/Users/allcloud/Downloads/JudeaS.mp4")

Comments