TrySomePi
Posts: 4
Joined: Tue Sep 13, 2016 2:23 pm
Location: Washington, DC
Contact: Website

Model 3B and Livestreamer 1.12.2

Tue Sep 13, 2016 3:01 pm

Short version:
Model 3B can't directly stream the ISS feed from Ustream because apparently the latest version of livestreamer isn't available for it.
But a Pi Zero can run the latest version! Is there a fix for livestreamer on the 3B?

Detailed version:

Doing...

Code: Select all

sudo apt-get install livestreamer
..on a Pi Zero installs version 1.12.2.

EDIT: This is incorrect, as I later learned. The default install is 1.10.2, and update/upgrade doesn't change this. Must use pip to upgrade to 1.12.2

To update with pip, do:

Code: Select all

pip install livestreamer -U
END EDIT

Verified using...

Code: Select all

livestreamer -V
Installing livestreamer on a Model 3B using the same command line yields version 1.10.2, also verified with -V.

Running...

Code: Select all

sudo apt-get upgrade livestreamer 
on the 3B reports 1.10.2 is the latest version.

Is my 3B a liar or just confused?

I can stream the ISS feed from Ustream just fine on the Zero. But the 3B with the older livestream version can't find any streams.

How to upgrade? Or alternately, is there another solution on the 3B for capturing the ISS livestream and passing it to omxplayer?
Last edited by TrySomePi on Thu Sep 15, 2016 8:54 am, edited 3 times in total.

fredoll
Posts: 226
Joined: Thu Jan 10, 2013 10:30 am

Re: Model 3B and Livestreamer 1.12.2

Tue Sep 13, 2016 3:28 pm

you need to update and upgrade to get the latest version

sudo apt-get update && sudo apt-get upgrade
Last edited by fredoll on Wed Sep 14, 2016 7:27 am, edited 1 time in total.

User avatar
topguy
Posts: 5407
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Model 3B and Livestreamer 1.12.2

Tue Sep 13, 2016 4:28 pm

I will suggest "sudo apt-get dist-upgrade" even.

TrySomePi
Posts: 4
Joined: Tue Sep 13, 2016 2:23 pm
Location: Washington, DC
Contact: Website

Re: Model 3B and Livestreamer 1.12.2

Tue Sep 13, 2016 7:21 pm

Sorry for not mentioning it in the original post, but yes, did that.

Began with a clean install of 2016-05-27-raspian-jessie, then did the full monty - update, upgrade, dist-upgrade (which changed nothing, it was already fully updated).

Livestreamer still stuck at v1.10.2, no joy.

User avatar
rpdom
Posts: 13902
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Model 3B and Livestreamer 1.12.2

Tue Sep 13, 2016 7:31 pm

Version 1.10.2-1 of livestreamer is the current one in Raspbian Jessie.

You won't get a later one without some fiddling to either use the version 1.12.2-1 in Raspbian Stretch (the "testing" release), or compiling from source.

gkreidl
Posts: 5893
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Model 3B and Livestreamer 1.12.2

Wed Sep 14, 2016 2:18 am

You can always install the latest version using pip.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

TrySomePi
Posts: 4
Joined: Tue Sep 13, 2016 2:23 pm
Location: Washington, DC
Contact: Website

Re: Model 3B and Livestreamer 1.12.2

Wed Sep 14, 2016 1:54 pm

gkreidl wrote:You can always install the latest version using pip.

The winner and champion! THANK YOU, you made my day!

Updating via pip indeed did the trick. The command is:

Code: Select all

pip install livestreamer -U
I must've done the same on the Pi Zero somewhere along the line, have been fiddling with it as time allows for a few months now.

For anyone else trying this, here are the scripts I'm using to access the ISS livestreams. Script for the ISS Zveyda module camera:

Code: Select all

#!/bin/bash
while true
do
    livestreamer http://ustream.tv/channel/live-iss-stream best --player omxplayer --fifo --player-args "--win \" 640 0 640 480\" {filename}"

done
Columbus module camera:

Code: Select all

#!/bin/bash
while true
do
    livestreamer http://ustream.tv/channel/iss-hdev-payload best --player omxplayer --fifo --player-args "--win \" 1280 0 1280 720\" {filename}"

done
You only need to adjust the window numbers in each script for your monitor. These have been very reliable with livestreamer 1.12.2. Enjoy!

TrySomePi
Posts: 4
Joined: Tue Sep 13, 2016 2:23 pm
Location: Washington, DC
Contact: Website

Re: Model 3B and Livestreamer 1.12.2

Mon Oct 03, 2016 6:22 pm

UPDATE:

If you are working with a fresh install of NOOBS 1.9.3, which includes the new Pixel interface, install livestreamer from Preferences > Add / Remove Software.

When that's done, open a terminal window and enter:

Code: Select all

sudo pip install livestreamer --upgrade
This will bring it up to the latest version.

Return to “Troubleshooting”