Guest User

Untitled

a guest
Feb 21st, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. YT=`which yt`
  4. if [ -z "$YT" ]; then
  5. YT="`dirname $0`/yt"
  6. fi
  7. if [ -z "$YT" ]; then
  8. echo "ERROR: could not find yt script" 1>&2
  9. exit 1
  10. fi
  11.  
  12. TOTHEORA=`ffmpeg2theora`
  13. if [ -z "$TOTHEORA" ]; then
  14. echo "ERROR: could not find ffmpeg2theora" 1>&2
  15. exit 1
  16. fi
  17.  
  18. wget -O"/tmp/youtube.2theora.flv" "`$YT "$*"`"
  19. ffmpeg2theora "/tmp/youtube.2theora.flv"
  20. mv "/tmp/youtube.2theora.ogg" "./youtube.ogg"
  21. rm -f "/tmp/youtube.2theora.flv"
Add Comment
Please, Sign In to add comment