This file contains hidden or 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
#!/usr/bin/env bash | |
# Usage: FFMETADATA=/path/to/metadata FFOUTPUT="My Output File.mp4" ./ffmerge.sh /path/to/*.wav | |
set -eo pipefail | |
# arguments required | |
if [ $# -eq 0 ] | |
then | |
>&2 echo "one or more files required" | |
exit 1 | |
fi | |
filelist=$(mktemp) |
This file contains hidden or 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
#!/usr/bin/env bash | |
# FFMETADATA Chapter generator | |
# Pass multiple media files to this script to generate a generic FFMETADATA file | |
# Usage: ARTIST="My Artist" ALBUM="My Album" ./chapters.sh /path/to/*.wav > my.metadata | |
set -eo pipefail | |
ARTIST="${ARTIST:-ARTIST}" | |
ALBUM="${ALBUM:-ALBUM}" | |
end_stamp=0 | |
begin_stamp=0 | |
i=1 |