Here is how to take pictures and videos. Log into the Raspberry Pi Zero into PiGlass using SSH from your phone.

Download: file
cd piglass

sudo python

You will need an SSH client program on your phone or computer to remote access your Raspberry Pi Zero. I suggest you try JuiceSSH for Android.

You will need to know the Raspberry Pi Internet Protocol (IP) address to put in your SSH program to connect the two.

Here is a video of the setup process for JuiceSSH:

Once you have a connection, you can issue commands to the PiGlass.

Here are the keys which control

Z: zoom in

X: zoom out

C: zoom in all the way/zoom out all the way

N: zoom to inital setting

P: take picture

V: start video/stop video

T: toggle text on/off

Q: quit

If you have the Dropbox app on your phone you can see pictures as soon as they are uploaded, below is a video taken with PiGlass

LiveStreaming to YouTube

Download and install ffmpeg 3.1.1

Download: file

dpkg -i ffmpeg_3.1.1-1_armhf.deb

Create script called and copy the following code into it. Your YouTube key goes at the end where it says rtmp:// KEY GOES HERE

Download: file
raspivid -rot 270 -o - -t 0 -fps 30 -b 6000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp:// YOUTUBE KEY GOES HERE

How to get your key:

Go to

Scroll down to encoder setup and then go to Stream name/key and click reveal copy and paste the key into the script.

Run and you should be livestreaming to youtube!

This guide was first published on May 17, 2018. It was last updated on May 17, 2018.

This page (Pictures and Video Livestreaming) was last updated on Jan 23, 2021.

Text editor powered by tinymce.