Skip to content

Instantly share code, notes, and snippets.

@michaelahlers
Last active July 7, 2021 21:54
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 michaelahlers/700eae34973dcb972ffd8269f834a927 to your computer and use it in GitHub Desktop.
Save michaelahlers/700eae34973dcb972ffd8269f834a927 to your computer and use it in GitHub Desktop.
Don't escape single quotes around paths
#!/bin/bash
IN_FILE="*.mp4"
OUT_FILE="output.mp4"
ffmpeg \
-safe 0 \
-f concat \
-i <(for file in $IN_FILE; do echo "file '$(pwd)/$file'"; done) \
-c copy \
"$OUT_FILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment