5 | | * Install the standard debian Raspberry Pi and make sure to select console mode. We do need any GUI, since we will be using omxplayer to |
| 5 | Install the standard debian Raspberry Pi and make sure to select console mode. We do need any GUI, since we will be using omxplayer to display the camera feeds. Also find out your RTSP streaming URLs. |
| 6 | |
| 7 | |
| 8 | = Display camera images = |
| 9 | I use the [http://cr.yp.to/daemontools.html daemontools] framework, since it provides me with logging, monitoring, restarting out-of-the-box. I also like the way his way of thinking, to avoid reinventing the wheel everytime you need to write an deamon. |
| 10 | |
| 11 | /etc/motd: |
| 12 | {{{ |
| 13 | WWW: http://rickvanderzwet.nl - webcampi @ rustdam |
| 14 | |
| 15 | /etc/service/camera1 = Hooiberg (via 'Rustdam Stal') - Main View |
| 16 | /etc/service/camera2 = Receptie (via wired and proxied on rustdam2.gw) - Left bottom |
| 17 | /etc/service/camera3 = Stal (wireless connected to rustdam.wleiden.net - rdr at rustdam2.gw) |
| 18 | }}} |
| 19 | |
| 20 | |
| 21 | /etc/service/camera1/run: |
| 22 | {{{ |
| 23 | #!/bin/sh |
| 24 | exec 2>&1 |
| 25 | exec omxplayer --threshold 0 --win 0,0,1280,720 --live 'rtsp://USER:PASSWORD@IP:PORT/videoMain' |
| 26 | }}} |
| 27 | |
| 28 | /etc/service/camera2/run: |
| 29 | {{{ |
| 30 | #!/bin/sh |
| 31 | exec 2>&1 |
| 32 | exec omxplayer --threshold 0 --win 739,720,1280,1024 --layer 10 --live 'rtsp://USER:PASSWORD@IP:PORT/videoMain' |
| 33 | }}} |
| 34 | |
| 35 | /etc/service/camera3/run: |
| 36 | {{{ |
| 37 | #!/bin/sh |
| 38 | exec 2>&1 |
| 39 | exec omxplayer --threshold 0 --win 0,720,540,1024 --layer 10 --live 'rtsp://USER:PASSWORD@IP:PORT/videoMain' |
| 40 | }}} |
| 41 | |