Browse Source

Fix filter separator

Joe Ceresini 3 years ago
parent
commit
c33e65fe9a
1 changed files with 6 additions and 4 deletions
  1. 6 4
      powerhour.sh

+ 6 - 4
powerhour.sh

@@ -29,14 +29,16 @@ done
 
 # next loop over those clips and shrink them appropriately
 for i in $(seq 0 59); do
-  infile="clip-$i.wav"
-  outfile="clip-$i-adj.wav"
-  tempo=$(eval printf 'atempo=0.95\;%.0s' {1..$i})
+  outfile="clip-$i.wav"
+  infile="_$outfile.tmp"
+  mv $outfile $infile
+  tempo=$(eval printf 'atempo=1.1,%.0s' {1..$i} | sed 's/,$//')
   $FFMPEG -i $infile -filter:a "$tempo" -vn $outfile
+  rm $infile
 done
 
 # stitch em together
 # Using a file here because i need to access it in docker
 >_concat; for i in $(seq 0 59); do echo "file clip-$i-adj.wav" >>_concat; done
 
-ffmpeg -f concat -safe 0 -i _concat -c copy powerhour.wav
+$FFMPEG -f concat -safe 0 -i _concat -c copy powerhour.wav