Created
June 18, 2015 14:45
-
-
Save Katee/4ac34723d0f7ed0fb5c5 to your computer and use it in GitHub Desktop.
Creating a concatenated video with 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
file 'video.mp4' | |
file 'video.mp4' |
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
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