Last active
July 7, 2021 21:54
-
-
Save michaelahlers/700eae34973dcb972ffd8269f834a927 to your computer and use it in GitHub Desktop.
Don't escape single quotes around paths
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
#!/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