Few days ago I found that there live streaming from International Space Station that available 24h 7 days in a week. It shows earth from a space and looks like brilliant screen saver that you can watch all day long or at least 45 minutes next 45 minutes it is just black screen because it comes to the night side of the earth.
So I have connected my Raspberry PI to TV and setup streaming. There a lot instructions how to archive it:
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 | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get install rtmpdump python-pip | |
sudo pip install livestreamer | |
# to get best resolution | |
sudo apt-get install python-dev | |
sudo apt-get install libffi-dev | |
sudo apt-get install librtmp-dev | |
sudo pip install cffi | |
sudo pip install python-librtmp | |
livestreamer ustream.tv/channel/iss-hdev-payload best -np 'omxplayer -o hdmi -live' |
And maybe because of slow connection my app was always stops playing. But luckily there easy way to fix it (just increase timeout):
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 | |
livestreamer --stream-segment-timeout 100000 --stream-timeout 100000 --http-timeout 100000 ustream.tv/channel/iss-hdev-payload best -np 'omxplayer -o hdmi -live --timeout 100000' |
No comments :
Post a Comment