Skip to content

Instantly share code, notes, and snippets.

@romech
Created June 28, 2021 09:49
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 romech/95585203a2c50a936c17c1461a842799 to your computer and use it in GitHub Desktop.
Save romech/95585203a2c50a936c17c1461a842799 to your computer and use it in GitHub Desktop.
Concatenate videos from current directory, sorted by time ascending
ls -tr1 | while read line; do echo file \'$line\'; done | ffmpeg -protocol_whitelist file,pipe -f concat -i - -c copy ../output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment