Skip to content

Instantly share code, notes, and snippets.

@junmakii
Created May 30, 2015 05:36
Show Gist options
  • Select an option

  • Save junmakii/e2b52af67dd115444731 to your computer and use it in GitHub Desktop.

Select an option

Save junmakii/e2b52af67dd115444731 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
if [[ $# -lt 2 ]]; then
echo "${0} <file_dir> <output>"
fi
ffmpeg -f concat -i <(for f in $1/*; do echo "file '$PWD/$f'"; done) -c copy $2
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment