Created
June 1, 2014 16:35
-
-
Save tochev/62cb67b66b0416884b42 to your computer and use it in GitHub Desktop.
watch ustream.tv using vlc
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 | |
# | |
# ustream2vlc.sh http://ustream.tv/CHANNEL | |
# watch ustream.tv using vlc | |
# | |
# NOTE: iphone quality only | |
set -x | |
set -e | |
CHANNEL_ID=$(wget "$1" -q -O - | sed -n 's/.*<meta name="ustream:channel_id" content="\([0-9]*\)".*/\1/p') | |
vlc "http://iphone-streaming.ustream.tv/uhls/$CHANNEL_ID/streams/live/iphone/playlist.m3u8" vlc://quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment