Yeah, We got Pi!
  page01| page02| page03| page04| page05| page06| page07| page08| page09| page10

PiCam

work in progress (isn't everything?)

After sudo apt-get upgrade and using raspi-config enable the camera and reboot with camera connected to the black connector next to the network socket.(lift the sides to open)

The camera takes around 250mA and while in use the pi itself will be working hard to control and write data. This should be considered when chosing a power supply. an old Pi b, wifi dongle and a camera may well tip your avo over 1000mA.

#take a picture
raspistill -o image.jpg 

#take a 10 second video 
raspivid -o video.h264 -t 10000 

#stream (v1)
#apt-get install vnc 
raspivid -o -t 0 -hf -w 800 -h 400 -fps 25 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554}' :demux=h264
#then view on client using rtsp://192.168.0.15:8554

#stream (v2)
#apt-get install vnc
#sudo modprobe bcm2835-v4l2 
cvlc v4l2:///dev/video0 --v4l2-width 1024 --v4l2-height 768 --v4l2-chroma h264 --sout '#standard{access=http,mux=ts,dst=0.0.0.0:12345}'
#then view on client using http://192.168.0.15:12345 

#To see a list of possible options: 
raspivid | less 
raspistill | less 

#capture timelapse frames 
raspistill -v -w 1024 -h 768 -q 70 -o img_%05d.jpg -tl 10000 -t 43200000  
#this will take a frame every 10 secs for 12 hrs 

# encode frames to a movie 
#apt-get install libav-tools 
avconv -r 10 -i img_%05d.jpg -r 10 -vcodec libx264 -crf 20 -g 15 -vf scale=600:480 timelapsemovie.mp4 

#capture timelapse video at 2 fps
raspivid -v -n -hf -vf -fps 2 -b 100000 -ex night -h 600 -w 800 -t 43200000 -o vidlapse001.h264

#to encode .h264 to mp4
#apt-get install ffmpeg
#apt-get install  libav-tools
#1
ffmpeg -r 30 -i vidlapse001.h264 -vcodec copy vidlapse001.mp4
avconv -r 30 -i vidlapse001.h264 -vcodec copy vidlapse001.mp4

#2
ffmpeg -f lavfi -i aevalsrc=0 -r 30 -i vidlapse001.h264  -shortest -c:v copy -c:a aac -strict experimental vidlapse1.mp4

#----------------------
#10000 10 secs
#60000 60 secs
#3600000 1hr
#7200000 2 hrs
#21600000 6 hrs
#43200000 12 hrs
#86400000 24hrs
#172800000 48hrs

Infra Red

I now have a a pi Noir cam, identical to the usual pi camera except it does not have the IR filter on the lens therefore it is able detect infra red at around 850Nm. This coupled with some small IR lights will allow me to use the camera in very dark environments. The lights in the picture above are IR but the cameraphone I used has picked up the infrared very well. The momentary aim is to monitor my garage door as someone has been attempting to steal my motorbike from within. I would also like to use the picam for some high framerate rideout movies by attaching the pi to the motorbike or my helmet.

remote, off the network?
http://goo.gl/ibcdd7
http://goo.gl/B06uXR


...BACK<-->MORE...

 
    
© 2017 Outanet Ltd.