Guest User

Untitled

a guest
Jul 22nd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. #! /bin/bash
  2. # rename and then recombine the audio stuff
  3.  
  4. date=$1
  5. counter=10000
  6. deslength=1
  7. for f in audio*.wav; do
  8. let "counter+=1"
  9. let "deslength+=1"
  10. mv $f audio${counter:1}.wav
  11. done
  12.  
  13. # is this is done right i might not have to calculate anything but for now i think i do??
  14. # capture should work by capturing one 2 second clip of audio for every 10 frames of video...
  15.  
  16. #desiredlength=122
  17. echo deslength=$deslength
  18. numbersnips=$counter
  19.  
  20. #$crossfade_duration=1.25
  21.  
  22. mv audio0001.wav mix2.wav
  23.  
  24. # mix all the snips...
  25. for f in audio*.wav; do
  26. echo "snip $f"
  27. sleep 2
  28. # add snip*.mov to file mix2.wav
  29. ~/crossfade_cat.sh 1.00 mix2.wav $f yes yes
  30. # output of crossfade.cat is mix.wav
  31. mv mix.wav mix2.wav
  32. done
  33. sox mix2.wav soundtrack.mp3
  34. new_length=`sox --info -D mix2.wav | cut -d"." -f1`
  35.  
  36. echo "new length = $new_length"
Add Comment
Please, Sign In to add comment