Skip to content

Instantly share code, notes, and snippets.

@jasonraimondi
Created October 15, 2015 02:27
Show Gist options
  • Save jasonraimondi/746e3afae4d8694ee1c1 to your computer and use it in GitHub Desktop.
Save jasonraimondi/746e3afae4d8694ee1c1 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# Clips a video file and removes audio
#
# $1 - the path to the movie we're converting.
# $2 - destination of the clipped result
# $3 - the start time of the finished product.
# This can be in seconds, or it also accepts the "hh:mm:ss[.xxx]" format.
# $4 - the duration of the video sequence.
# This can be in seconds, or it also accepts the "hh:mm:ss[.xxx]" format.
#
#
# movieme <path> <destination> <start-time> <duration>
ffmpeg -i $1 -acodec copy -vcodec copy -an -ss $3 -t $4 $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment