Skip to content

Instantly share code, notes, and snippets.

@tochev
Created June 1, 2014 16:35
Show Gist options
  • Save tochev/62cb67b66b0416884b42 to your computer and use it in GitHub Desktop.
Save tochev/62cb67b66b0416884b42 to your computer and use it in GitHub Desktop.
watch ustream.tv using vlc
#!/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