SlideShare a Scribd company logo
RASPBERRY PI JAM
Setup Raspberry Pi as CCTV client
Who am I?
• Name : Jon Ho
• Occupation : Simcard OneXOX seller
– Buy my prepaid card and top up RM 50, and you
get 2 years validity, FOR FREEEEEEE!
• Part Time : Freelancer/Maker
• Some Time : Busker/Farmer/Fisherman
CCTV
RM1,020 vs RM1,980
RECIPE
• Hardware
– 1 Command & Control Windows PC
– Nth number of client Pi Camera
• Software
– Raspbian Jessie on Raspberry Pi
– Raspivid
www.raspberrypi.org/documentation/raspbian/applications/camera.md
– Zenmap, Mplayer on Windows PC
Linux Streaming
• VLC
– Slowest
– Easiest to set up
• Gstreamer
– So-so speed
– Complex to set up
• Netcat
– Fastest!
– No setup needed! Runs out of the box!
gator
What you need
• 1: Raspberry Pi 3
What you need (cont)
• 2: Pi Camera Module (Noir)
What you need (cont)
• 3: PC/Laptop Windows with zenmap/ncat (for
network streaming stuff) and mplayer (for
video stuff) installed
– Both are opensource and freeeeee
Step 1: setup the C&C
• First, find out your C&C PC’s ip
– Open a terminal in windows and run ipconfig
– Remember the ip, this is what your raspi will
connect to
Step 1: setup the C&C (Cont)
• Second, in the same terminal, run ncat to pipe
the stream to mplayer
– C:Usersjon>ncat -l -p 2222 | "C:Program Files (x86)MPlayer for
Windowsmplayer.exe" -fps 200 -demuxer h264es –
– The -demuxer h264es arguments decode the stream into mpeg 4
Step 2: setup the pi camera
• Setup Camera
– There are tons of tutorials of how to setup pi camera, so I will not
cover that. Just make sure it looks something like below.
– Also if possible, try to get an enclosure for the raspi camera. You don’t
want it to die every time somebody sneezes at it
Step 2: setup the pi camera (cont)
• Test Camera by running this command in the
terminal
– raspivid -o heuheuheu.h264 -t 10000
– omxplayer heuheuheu.h264
Step 3: profit!
• Now put it all together by running this command
on the raspi camera
– raspivid -t 0 -w 1280 -h 720 -hf -ih -fps 20 -o - | nc 192.168.1.4 -k -l -p
2222
The –t 0 argument means raspivid will basically run forever
streamed on port 2222
It’s alive!
• It’s working!
Bonus Points
• SOUND
– The demo had no sound, due to lack of usb mic. It
can stream sound. Try it out as homework.
• NETWORK SPEED
– For best live action speed, use a wireless router
that can transmit on the 5GHz band. 2000++
Mbps means no lag whatsoever!
Bonus Points (cont)
• MULTIPLEXING CAMERA
– It is possible to multiplex the camera, although
stability issue may arise.
To learn more
• Raspivid
– www.raspberrypi.org/documentation/raspbian/ap
plications/camera.md
• Netcat
– www.binarytides.com/netcat-tutorial-for-
beginners/
DONATE
• If you think this is cool beans and would like to send free money
so I don’t starve to death and keep making stuff like this, send it
here:
BITCOIN
1GhVoWnYq21mDEC6nSn2WZkuoPMAAarJrk
LITECOIN
LS1N3L34feg7GwwLWmcTqsmzfoUtzSMME6

More Related Content

PDF
Rapidly developing IoT (Internet of Things) applications - Part 2: Arduino, B...
PPT
Big bluebutton presentation
PDF
Digital Watchdog DWC-MPTZ20X Data Sheet
ODP
Edit Raw image in Linux with UFRaw
PPT
Oleg Kupreev - 802.11 tricks and threats
PPT
DANCE-Demo-MtgNotes...
PPTX
How to Optimize OBS
PPT
Arduino
Rapidly developing IoT (Internet of Things) applications - Part 2: Arduino, B...
Big bluebutton presentation
Digital Watchdog DWC-MPTZ20X Data Sheet
Edit Raw image in Linux with UFRaw
Oleg Kupreev - 802.11 tricks and threats
DANCE-Demo-MtgNotes...
How to Optimize OBS
Arduino

What's hot (12)

PPTX
Recent OBS Updates
PDF
Polstra 44con2012
PDF
Digital Watchdog DWC-MPTZ20XFM Data Sheet
PPTX
Plus tv box
PDF
EX-SDI DVR English Version
PDF
Hybrid DVR software working with all Hikvision
PPTX
OBS Video filters
DOC
Mp3 watch camera watch mp3 dvr 4 gb
PDF
oasis_one_specs
PPTX
Defcon Moscow #0x0A - Oleg Kupreev "Uncommon MiTM in uncommon conditions"
PDF
Introduction of Plasma Chamber at EDCON 2019
PPTX
Workshop Raspberry Pi NAS with Windows Share
Recent OBS Updates
Polstra 44con2012
Digital Watchdog DWC-MPTZ20XFM Data Sheet
Plus tv box
EX-SDI DVR English Version
Hybrid DVR software working with all Hikvision
OBS Video filters
Mp3 watch camera watch mp3 dvr 4 gb
oasis_one_specs
Defcon Moscow #0x0A - Oleg Kupreev "Uncommon MiTM in uncommon conditions"
Introduction of Plasma Chamber at EDCON 2019
Workshop Raspberry Pi NAS with Windows Share
Ad

Viewers also liked (14)

PPTX
Raspberry pi jam
PDF
Embedded Systems: Lecture 9: The Pi Control ARM
PDF
Embedded Systems: Lecture 8: The Raspberry Pi as a Linux Box
PDF
EdTech Europe 2015 [Track 3]: [Pi-Top], ([Jesse Lozano], [CEO])
PPTX
EdTech Europe 2015 [Track 3]: [Mobile Taleem], [Ahmereen Reza]
PDF
Single Board Computers & Raspberry Pi Basics
PPTX
Raspberry Pi Using Python
PPT
Rasberry pi
PDF
Exploring Raspberry Pi
PPT
Raspberry pi : an introduction
PPT
Raspberry pi
PDF
Where do smater students study
PDF
The Top Skills That Can Get You Hired in 2017
PDF
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Raspberry pi jam
Embedded Systems: Lecture 9: The Pi Control ARM
Embedded Systems: Lecture 8: The Raspberry Pi as a Linux Box
EdTech Europe 2015 [Track 3]: [Pi-Top], ([Jesse Lozano], [CEO])
EdTech Europe 2015 [Track 3]: [Mobile Taleem], [Ahmereen Reza]
Single Board Computers & Raspberry Pi Basics
Raspberry Pi Using Python
Rasberry pi
Exploring Raspberry Pi
Raspberry pi : an introduction
Raspberry pi
Where do smater students study
The Top Skills That Can Get You Hired in 2017
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Ad

Similar to Raspberry pi jam july (18)

PPT
Smart Wireless Surveillance Monitoring using RASPBERRY PI
PPTX
projectppt-141127001908-conversion-gate02.pptx
PPTX
New Microsoft PowerPoint Presentation (2).pptx
PDF
Wireless security camera
PDF
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
PPTX
Capstone_Project.ppt
PPSX
Low Cost HD Surveillance Camera using Raspberry PI
PDF
Raspberry_PI_Configuration_ProcedureRelease
PDF
Video conferincing
PDF
IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...
PDF
IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...
PDF
Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
PPTX
Raspberry pi
PDF
Remote Video Monitoring System Using Raspberry Pi 3 and GPRS Module
PDF
Raspberry Pi 101
PDF
A futuristic approach for towerless mobile networks wheezy pi
PPTX
introduction to Raspberry pi
PDF
Feature satip4
Smart Wireless Surveillance Monitoring using RASPBERRY PI
projectppt-141127001908-conversion-gate02.pptx
New Microsoft PowerPoint Presentation (2).pptx
Wireless security camera
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Capstone_Project.ppt
Low Cost HD Surveillance Camera using Raspberry PI
Raspberry_PI_Configuration_ProcedureRelease
Video conferincing
IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...
IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...
Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
Raspberry pi
Remote Video Monitoring System Using Raspberry Pi 3 and GPRS Module
Raspberry Pi 101
A futuristic approach for towerless mobile networks wheezy pi
introduction to Raspberry pi
Feature satip4

Recently uploaded (20)

PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
master seminar digital applications in india
PPTX
Lesson notes of climatology university.
PDF
Sports Quiz easy sports quiz sports quiz
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Institutional Correction lecture only . . .
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Computing-Curriculum for Schools in Ghana
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Classroom Observation Tools for Teachers
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Insiders guide to clinical Medicine.pdf
PPH.pptx obstetrics and gynecology in nursing
STATICS OF THE RIGID BODIES Hibbelers.pdf
master seminar digital applications in india
Lesson notes of climatology university.
Sports Quiz easy sports quiz sports quiz
O5-L3 Freight Transport Ops (International) V1.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Institutional Correction lecture only . . .
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Pharma ospi slides which help in ospi learning
O7-L3 Supply Chain Operations - ICLT Program
Computing-Curriculum for Schools in Ghana
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Classroom Observation Tools for Teachers
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Insiders guide to clinical Medicine.pdf

Raspberry pi jam july

  • 1. RASPBERRY PI JAM Setup Raspberry Pi as CCTV client
  • 2. Who am I? • Name : Jon Ho • Occupation : Simcard OneXOX seller – Buy my prepaid card and top up RM 50, and you get 2 years validity, FOR FREEEEEEE! • Part Time : Freelancer/Maker • Some Time : Busker/Farmer/Fisherman
  • 4. RECIPE • Hardware – 1 Command & Control Windows PC – Nth number of client Pi Camera • Software – Raspbian Jessie on Raspberry Pi – Raspivid www.raspberrypi.org/documentation/raspbian/applications/camera.md – Zenmap, Mplayer on Windows PC
  • 5. Linux Streaming • VLC – Slowest – Easiest to set up • Gstreamer – So-so speed – Complex to set up • Netcat – Fastest! – No setup needed! Runs out of the box!
  • 7. What you need • 1: Raspberry Pi 3
  • 8. What you need (cont) • 2: Pi Camera Module (Noir)
  • 9. What you need (cont) • 3: PC/Laptop Windows with zenmap/ncat (for network streaming stuff) and mplayer (for video stuff) installed – Both are opensource and freeeeee
  • 10. Step 1: setup the C&C • First, find out your C&C PC’s ip – Open a terminal in windows and run ipconfig – Remember the ip, this is what your raspi will connect to
  • 11. Step 1: setup the C&C (Cont) • Second, in the same terminal, run ncat to pipe the stream to mplayer – C:Usersjon>ncat -l -p 2222 | "C:Program Files (x86)MPlayer for Windowsmplayer.exe" -fps 200 -demuxer h264es – – The -demuxer h264es arguments decode the stream into mpeg 4
  • 12. Step 2: setup the pi camera • Setup Camera – There are tons of tutorials of how to setup pi camera, so I will not cover that. Just make sure it looks something like below. – Also if possible, try to get an enclosure for the raspi camera. You don’t want it to die every time somebody sneezes at it
  • 13. Step 2: setup the pi camera (cont) • Test Camera by running this command in the terminal – raspivid -o heuheuheu.h264 -t 10000 – omxplayer heuheuheu.h264
  • 14. Step 3: profit! • Now put it all together by running this command on the raspi camera – raspivid -t 0 -w 1280 -h 720 -hf -ih -fps 20 -o - | nc 192.168.1.4 -k -l -p 2222 The –t 0 argument means raspivid will basically run forever streamed on port 2222
  • 16. Bonus Points • SOUND – The demo had no sound, due to lack of usb mic. It can stream sound. Try it out as homework. • NETWORK SPEED – For best live action speed, use a wireless router that can transmit on the 5GHz band. 2000++ Mbps means no lag whatsoever!
  • 17. Bonus Points (cont) • MULTIPLEXING CAMERA – It is possible to multiplex the camera, although stability issue may arise.
  • 18. To learn more • Raspivid – www.raspberrypi.org/documentation/raspbian/ap plications/camera.md • Netcat – www.binarytides.com/netcat-tutorial-for- beginners/
  • 19. DONATE • If you think this is cool beans and would like to send free money so I don’t starve to death and keep making stuff like this, send it here: BITCOIN 1GhVoWnYq21mDEC6nSn2WZkuoPMAAarJrk LITECOIN LS1N3L34feg7GwwLWmcTqsmzfoUtzSMME6