Skip to content

Instantly share code, notes, and snippets.

@m4p
Created January 18, 2015 16:50
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 m4p/8f6b99da59d331bc13b2 to your computer and use it in GitHub Desktop.
Save m4p/8f6b99da59d331bc13b2 to your computer and use it in GitHub Desktop.
#!/bin/bash
NAME=$1
PWD=`pwd`
ffmpeg -f concat -i <(find . -type f -name "${NAME}*.flv" | cut -c 2- | awk "{print \"file '\" \"${PWD}\" \$0 \"'\"}") -c copy "$NAME.m4v"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment