This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def read(): | |
| word = raw_input("Gimme your word:") | |
| if len(word) == 0: | |
| print "You must say something" | |
| return read() | |
| elif not word.isalpha(): | |
| print "It's not a word, honey! (No spaces, numbers allowed...)" | |
| return read() | |
| else: | |
| return word |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Usage: find Harry.Potter.* -name *.mkv -exec convert_dlna_ready_mkv {} ";" | |
| echo "Processing file: $1" | |
| FFMPEG_INFO_FILE='ffmpeg-info' | |
| OUTPUT_FILE=`echo "$1" | sed 's/\(.*\)\.mkv$/\1-lo.mkv/'` | |
| ffmpeg -i "$1" 2>$FFMPEG_INFO_FILE |