Last active
August 7, 2017 22:47
-
-
Save juzam/79a196fa1f0c46dafb93 to your computer and use it in GitHub Desktop.
Stream Ustream.tv ISS live video feed locally without using web player, re-encode the stream as audio only (using livestreamer and vlc)
This file contains hidden or 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
# prerequisites: livestreamer http://docs.livestreamer.io/ with ustream plugin (python-librtmp required) | |
# video lan client: http://www.videolan.org/ | |
# grab the video stream and expose the stream locally as is on port 8082 | |
livestreamer http://www.ustream.tv/channel/9408562 worst --player-continuous-http --player-external-http --player-external-http-port 8082 | |
# grab the locally streamed video feed and transcode it audio only (mp3,16k/s,44100) | |
vlc -vvvv http://livestreamerip:8082 --loop --no-sout-video --sout-keep --sout '#gather:transcode{vcodec=none,acodec=mp3,ab=16,channels=1,samplerate=44100}:http{mux=raw,dst=:8083}' | |
# after running both livestreamer and transcoding vlc you can point a client (e.g. vlc on a windows laptop) to the url http://transcodingvlcip:8083 to play the audio only feed. | |
# this setup work pretty well on a rapsberry pi2 | |
# bonus: you can change the url livestreamer points to, in order to get a different stream. this is not limited to the iss ustream live feed obviously |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment