Skip to content

Instantly share code, notes, and snippets.

@Katee
Created June 18, 2015 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Katee/4ac34723d0f7ed0fb5c5 to your computer and use it in GitHub Desktop.
Save Katee/4ac34723d0f7ed0fb5c5 to your computer and use it in GitHub Desktop.
Creating a concatenated video with ffmpeg
file 'video.mp4'
file 'video.mp4'
INPUT_VIDEO=$1
INTERMEDIATE_VIDEO=loop.avi
OUTPUT_VIDEO=output.avi
ffmpeg -y -f concat -i video_list.txt -c copy $INTERMEDIATE_VIDEO
ffmpeg -y -i $INTERMEDIATE_VIDEO -c:v mpeg4 -q:v 2 -vtag xvid $OUTPUT_VIDEO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment