======= HOWTO stream ISS HDEV on the desktop background ======
In case you haven't noticed yet, NASA has put a new experiment on the International Space Station, which is called [[http://www.nasa-usa.de/mission_pages/station/research/experiments/917.html| High Definition Earth Viewing (HDEV)]]. You can watch it online via [[http://www.ustream.tv/channel/iss-hdev-payload|ustream]]. The experiment's primary purpose is to generate long-term test data, if cheap off-the-shelf consumer HD cameras can be used in space instead of extremely expensive purpose-built "space" cameras. As a benefit, now all people can watch the world from above, in near-realtime, so thank you guys for sharing.
{{:mission:log:2014:07:07:iss-hdev-stream-capture-backview2.jpg|ISS HDEV live capture}}
Playing stuff in a browser is cool, but having it play in mplayer(2)/mpv seems way more flexible (and can also benefit from GPU video offloading). To grab the stream from ustream you can use [[https://github.com/chrippa/livestreamer]], which works very well.
{{:mission:log:2014:07:07:iss-drawing.png|ISS Schematic}}
**mplayer2 based Systems**
$ livestreamer -Q http://www.ustream.tv/channel/iss-hdev-payload best --player "mplayer2 -nosound"
**MPV based Systems**
$ livestreamer -Q http://www.ustream.tv/channel/iss-hdev-payload best --player "mpv --no-audio"
The next level is to use [[https://github.com/lrewega/xwinwrap|xwinwrap]] to put the stream on your desktop, instead of a static image. When you've got alpha blending/compositing in your terms (xterm/urxvt etc.) you can even see it in the background of your shells (way awesome).
When you've installed livestreamer and xwinwrap, just call it like this:
**mplayer2 based Systems**
$ livestreamer -Q http://www.ustream.tv/channel/iss-hdev-payload best \
--player "./xwinwrap -ni -fs -s -st -sp -b -nf -- mplayer2 -wid WID -nosound"
**MPV based Systems**
$ livestreamer -Q http://www.ustream.tv/channel/iss-hdev-payload best \
--player "./xwinwrap -ni -fs -s -st -sp -b -nf -- mpv --wid 0 --no-audio"
You can use our [[https://github.com/apollo-ng/xfce-planet|xfce-planet script]], if you want to keep track of the ISS position on another monitor:
{{:mission:log:2014:07:07:iss-orbit.jpg|}}
Be advised though, the [[mission:log:2015:04:21:my-favorite-place-to-watch-the-sun-set|view is spectacular]] (especially, when you've got it on the wall with a projector) and tends to hypnotize everyone in the room, while they're grasping the beauty of our planet and forgetting all the superfluous, puny and made up problems, mankind needlessly still seems to fight with.
{{tag>software xwinwrap livestreamer iss hdev mplayer stream grab}}
{{keywords>Apollo-NG apollo next generation hackerspace hacker space development makerspace fablab diy community open-resource open resource mobile hackbus software xwinwrap livestreamer iss hdev mplayer stream grab}}
~~DISCUSSION~~