Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

risefmopnemen.bash

By: a guest on Aug 1st, 2012  |  syntax: Bash  |  size: 0.39 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2.  
  3. MAP=`zenity --file-selection --directory`      
  4. echo "Werkmap is $MAP"
  5. cd "$MAP"
  6.  
  7. for BESTAND in *
  8. do
  9. echo "Gevonden: $BESTAND"
  10. done
  11.  
  12. echo "Begint nu met omzetten naar iPod-leesbare .mp4's"
  13.  
  14. for BESTAND in *
  15. do
  16. ffmpeg -i "$BESTAND" -b 300 -qmin 3 -qmax 5 -g 300 -ab 128000 -s 320:240 -aspect 4:3 "$BESTAND-iPod.mp4"
  17. done
  18.  
  19. echo "Taken succesvol afgerond op `date +%Hu%M`"