Created
May 4, 2016 14:16
-
-
Save shannietron/0a4e5c004f48385dac62522ae418358d to your computer and use it in GitHub Desktop.
Streams youtube videos using youtube-dl and mplayer
This file contains 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
#!/bin/bash | |
while read line | |
do | |
name=$line | |
echo "Playing - $name" | |
youtube-dl -f 141 $name -o - | mplayer - | |
# youtube-dl -x --audio-format mp3 --audio-quality 0 -o "%(title)s.%(ext)s" $name | |
done < $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment