Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- YT=`which yt`
- if [ -z "$YT" ]; then
- YT="`dirname $0`/yt"
- fi
- if [ -z "$YT" ]; then
- echo "ERROR: could not find yt script" 1>&2
- exit 1
- fi
- TOTHEORA=`ffmpeg2theora`
- if [ -z "$TOTHEORA" ]; then
- echo "ERROR: could not find ffmpeg2theora" 1>&2
- exit 1
- fi
- wget -O"/tmp/youtube.2theora.flv" "`$YT "$*"`"
- ffmpeg2theora "/tmp/youtube.2theora.flv"
- mv "/tmp/youtube.2theora.ogg" "./youtube.ogg"
- rm -f "/tmp/youtube.2theora.flv"
Add Comment
Please, Sign In to add comment