moviepy.video.io.ffmpeg_tools.ffmpeg_extract_subclip#
- moviepy.video.io.ffmpeg_tools.ffmpeg_extract_subclip(inputfile, start_time, end_time, outputfile=None, logger='bar')[source]#
Makes a new video file playing video file between two times.
- Parameters:
inputfile (str) -- Path to the file from which the subclip will be extracted.
start_time (float) -- Moment of the input clip that marks the start of the produced subclip.
end_time (float) -- Moment of the input clip that marks the end of the produced subclip.
outputfile (str, optional) -- Path to the output file. Defaults to
<inputfile_name>SUB<start_time>_<end_time><ext>.