Merge pull request #3 from ftitreefly/master

Create vimeo-combine.sh
This commit is contained in:
Tusko Trush 2020-03-20 19:27:59 +02:00 committed by GitHub
commit 80f47b70fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
vimeo-combine.sh Normal file
View file

@ -0,0 +1,10 @@
# A candy bash for combine videos
# code by ftitreefly
# 2020-03-19
ls parts/*.m4a parts/*.m4v | sed 's/.m4a//g;s/.m4v//g;s/parts\///g' | uniq | \
awk '{print "echo Runing Task "NR" - " $0}{m4a="parts/"$0".m4a";m4v="parts/"$0".m4v";mp4="converted/"$0".mp4"; printf("ffmpeg -y -loglevel quiet -i \"%s\" -i \"%s\" -c copy \"%s\"\n", m4a, m4v, mp4) }' \
> combine.sh
chmod +x combine.sh
./combine.sh