Skip to content

Instantly share code, notes, and snippets.

@rmoriz
Last active January 13, 2021 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmoriz/68a30c3ab7c5f7fb94ad9a6a54e96594 to your computer and use it in GitHub Desktop.
Save rmoriz/68a30c3ab7c5f7fb94ad9a6a54e96594 to your computer and use it in GitHub Desktop.
#!/bin/sh
# see https://streamlink.github.io/cli.html
# install streamlink and vlc on macos
brew install streamlink
brew cask install vlc
# Method 1
# streamlink will download the stream and forward it to vlc which it starts
streamlink https://www.bloomberg.com/live/us 720p --player=vlc
# Method 2
# streamlink will parse the website and print the m3u8 url which can be opened in vlc (open network) or Safari.
streamlink https://www.bloomberg.com/live/us 720p --stream-url
# https://liveproduseast.global.ssl.fastly.net/us/Channel-USTV-AWS-virginia-1/Source-USTV-1000-1_live.m3u8
@rmoriz
Copy link
Author

rmoriz commented Dec 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment