Skip to content

Instantly share code, notes, and snippets.

@tairov
Created April 30, 2019 13:52
Show Gist options
  • Save tairov/35df86022e1de5520b7f8027e325ccd0 to your computer and use it in GitHub Desktop.
Save tairov/35df86022e1de5520b7f8027e325ccd0 to your computer and use it in GitHub Desktop.
cut video with ffmpeg
#!/usr/bin/env bash
# INPUT_SRC=input.mp4
INPUT_SRC=input.mp4
START_TIME=00:39:51
END_TIME=00:40:29
echo Start processing
ffmpeg -ss $START_TIME -i $INPUT_SRC -acodec copy -vcodec copy -c copy -to $END_TIME output2.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment