Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Your configuration stuff should go here - replace these with whatever you want
- SRC="/home/abc/public_html/vids/toriko/[A-Destiny] Toriko - 051-100 (848x480 H264 AAC)"
- DEST="/home/abc/public_html/vids/toriko/51-100"
- DEST_EXT=mp4
- HANDBRAKE_CLI=HandBrakeCLI
- PRESET="iPhone & iPod Touch"
- # The meat of the script
- for FILE in `ls "$SRC"`
- do
- filename=$(basename $FILE)
- extension=${filename##*.}
- filename=${filename%.*}
- $HANDBRAKE_CLI -i "$SRC"/$FILE -o "$DEST"/$filename.$DEST_EXT --preset="$PRESET"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement