Skip to content

Instantly share code, notes, and snippets.

@ipha
Created November 7, 2019 22:53
Show Gist options
  • Save ipha/bff8202836d996c71df8cb925144c9c8 to your computer and use it in GitHub Desktop.
Save ipha/bff8202836d996c71df8cb925144c9c8 to your computer and use it in GitHub Desktop.
#!/bin/bash
for f in "$1"/*; do
echo "file '$f'" >> "$1".list
done
ffmpeg -f concat -safe 0 -i "$1".list -c copy "$1".mkv
rm "$1".list
echo -ne "Delete folder $1? (y/N) "
read -r delete
case $delete in
"y" | "Y" )
rm -r "$1"
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment