-
Notifications
You must be signed in to change notification settings - Fork 0
slice video
Jim Carr edited this page Jan 4, 2022
·
2 revisions
Extracts a slice of an input video. Handy for creating clips from a larger video.
- Python 3
- argparse package for Python 3 (
pip3 install argparse
)
- argparse package for Python 3 (
- ffmpeg
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.