Skip to content

Instantly share code, notes, and snippets.

@maonx
Last active November 7, 2015 15:21
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 maonx/d223c5ffda5480b467e3 to your computer and use it in GitHub Desktop.
Save maonx/d223c5ffda5480b467e3 to your computer and use it in GitHub Desktop.
Convert or concat videos by ffmpeg

Convert or concat videos by ffmpeg

concat flv format

generate inputs.txt,example flv files

printf "file '%s'\n" *.flv > inputs.txt

concat flv

ffmpeg -f concat -i inputs.txt -c copy output.flv

concat flv , convert mp4

ffmpeg -f concat -i inputs.txt -c copy output.mp4

https://trac.ffmpeg.org/wiki/Concatenate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment