Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
This Readme contains basic info about the RasPiCamcorder 2
by Alex Eames of RasPi.TV

Released under the Creative Commons Attribution 3.0 Unported (CC BY 3.0)

You may do whatever your like with this software. If you release a derivative
it must contain at or near the top of the documentation...

"Based on RasPiCamcorder scripts by Alex Eames of http://RasPi.TV/"

That is your ONLY obligation.

Basically there are three major parts...

Video recording                         [sudo python]
Stills capture (plus DropBox upload)    [sudo python]
Video streaming                         [python]

These are currently three separate programs. See below for details.

Photos and further info on the http://RasPi.TV blog or YouTube...

Basically you need a button connected between GPIO 23 and GND.
This is the "shoot video or photo" button. (Mine is the blue one in this photo

You also need a button between GPIO 24 and 3V3, which is the 
"stop shooting" button. It also doubles as the close program and shutdown
button depending on how long you press it for. (Mine is the black one in this
Pressing this button for >1s stops the program (useful if you are running 
automatically on boot). Pressing it for >3s shuts down the Pi.

The camera LED is on GPIO 5. 
I have an additional LED (I wanted one on the back) on GPIO 22

Setting up camera led control (script may not work properly without this)

sudo nano /boot/config.txt

Add this line to your config.txt



To run the video recording program manually, you can type 

sudo python

Add a 0 (zero) if you want to disable the front LED 
(assuming you have added the necessary tweak to your config file)

sudo python 0

To run the stills program manually, you can type 

sudo python
sudo python 0 (if you want to disable the front LED)

Video Streaming
This uses two scripts to separate the GPIO and non-GPIO parts since 
VLC can't run as root, but RPi.GPIO has to run as root.

To start the video streaming program (it works just as the recording program
except it streams to port 8090 rather than recording) just type...

python 0 (if you want to disable the front LED)

This program handles the streaming part, but the GPIO part is handled by (which is called by

Then, on your receiving device, you need to have VLC running and looking at
a network stream from...


Further instructions about VLC streaming here

I haven't yet managed to get streaming working automatically at boot 
because VLC won't run as root. I'm sure there's a way though.

Setting up your Pi

Setting up for auto start on boot
Add this line to your /etc/rc.local


Which runs a simple bash script on boot, allowing us a 10s time delay. will have to be executable for this to work

chmod +x

The bash script just contains this...
sleep 10
sudo python /home/pi/ &

...which slows things down at startup, just enough to make it work and puts 
the process in the background.

If you prefer to auto-start-up the stills or streaming programs instead of 
video, just edit to call the program you want to run.

Setting up for small screen use

sudo dpkg-reconfigure console-setup

lets you increase console font size for small screens

Setting Up Dropbox Upload for Stills mode
Blog article here shows full instructions on how to 
set up DropBox Uploader on your Pi and basic usage.

Full documentation at the author's GitHub

To set up as a user, should only take an hour or so. A lot less if you already
have a DropBox account.

Hardware Component list
1 model A Raspberry Pi
1 Raspberry Pi camera board
1 switching regulator board ~$3 ebay LM2596 DC-DC Step-down Adjustable 
1 Bluetooth serial adaptor $8 SKU: 104299
battery & connectors
female .1" pin headers
0605 LED
150R 1206 for led
Cyntech case
White tack
hot glue gun
bit of stripboard
4x2 angled header

Possible Future Development

LED on the back to show recording --> DONE
camera LED toggle to disable front LED, maybe with an argv argument? --> DONE
leds flashing on program exit and shutdown --> DONE
indication of how much recording time/disk space left --> DONE
micro USB adaptor so Pi can be stood up at SD card end --> DONE
52mm thread adaptor for adding lenses --> DONE

Stills button or button combo
need a mount for it
possibly pan and tilt
possibly a rotating base for all-round work - either stepper or highly geared

it would be nice to have a third button for stills too, but getting errors 
after adding port 25 for stills, so all parts referring to GPIO25 are 
commented out for now.

It seems that raspivid and raspistill don't play nicely together in the 
same script - (I got MMAL errors which only cleared on reboot), 
so had to remove the stills option from the script and implement it separately.


Scripts/info for RasPiCamcorder






No releases published


No packages published