Last active
September 21, 2019 08:59
-
-
Save zfarbp/64fc20c7f100943ae9f38d4c46e23cf9 to your computer and use it in GitHub Desktop.
Bash: Cut/Download part of video via ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VID_URL=$1 | |
VID_OUT_PATH=$2 | |
START_TIME=$3 | |
DURATION_TIME=$4 | |
ffmpeg -ss $START_TIME -i $VID_URL -to $DURATION_TIME -vcodec copy -acodec copy -avoid_negative_ts make_zero $VID_OUT_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment