Advertisement
Guest User

Untitled

a guest
Oct 24th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.52 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Your configuration stuff should go here - replace these with whatever you want
  4. SRC="/home/abc/public_html/vids/toriko/[A-Destiny] Toriko - 051-100 (848x480 H264 AAC)"
  5. DEST="/home/abc/public_html/vids/toriko/51-100"
  6. DEST_EXT=mp4
  7. HANDBRAKE_CLI=HandBrakeCLI
  8. PRESET="iPhone & iPod Touch"
  9.  
  10. # The meat of the script
  11. for FILE in `ls "$SRC"`
  12. do
  13. filename=$(basename $FILE)
  14. extension=${filename##*.}
  15. filename=${filename%.*}
  16.  
  17. $HANDBRAKE_CLI -i "$SRC"/$FILE -o "$DEST"/$filename.$DEST_EXT --preset="$PRESET"
  18.  
  19. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement