Skip to content

Instantly share code, notes, and snippets.

@adamvr
Last active December 26, 2015 05:29
Show Gist options
  • Save adamvr/7100750 to your computer and use it in GitHub Desktop.
Save adamvr/7100750 to your computer and use it in GitHub Desktop.
#!/bin/sh
cat | # read filenames from stdin
sed "s/^\(.*\)$/'\1'/" | # wrap each in single quotes
sed 's/^/file /' | # prepend file directive
ffmpeg -f concat -i - -acodec copy -vcodec copy "$1" # encode and store result on args[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment