Skip to content

slice video

Jim Carr edited this page Jan 4, 2022 · 2 revisions

Description

Extracts a slice of an input video. Handy for creating clips from a larger video.

Requirements

  • Python 3
    • argparse package for Python 3 (pip3 install argparse)
  • ffmpeg

Usage

Example, extracting a video slice from source.mp4, starting at 5 seconds into the input video, and ending at 27 seconds into the input video:

slice-video.py -f source.mp4 -s 00:00:05 -e 00:00:27

The output will be written to source_output.mp4.

Clone this wiki locally