zorruno wikki: history "Pi CCTV Monitor RTSP Display"

Revision history for StreamCCTVRaspberryPi


Revision [6368]

Last edited on 2020-10-12 02:45:53 by ZorrUno

No Differences

Revision [6367]

Edited on 2020-10-12 02:45:53 by ZorrUno
Additions:
I have also set my monitors to be powered by a PSU that switches off with home automation so it will drop monitor power when I leave the room for extended periods. I could potentially shut down the Pis when not needed, but it takes 90 seconds from restart to getting the images up.
Deletions:
I have also set my monitors to be powered by a PSU that switches off with home automation so it will drop monitor power when I leave the room for extended periods. I could potentially shut down the Pis


Revision [6366]

Edited on 2020-10-12 02:19:08 by ZorrUno

No Differences

Revision [6365]

Edited on 2020-10-12 02:19:08 by ZorrUno
Additions:
=====Summary & Project Updates=====
This project is the use of an old raspberry pi, plus a basic automotive 7" analogue LCD screen to display streamed CCTV images.
I have also set my monitors to be powered by a PSU that switches off with home automation so it will drop monitor power when I leave the room for extended periods. I could potentially shut down the Pis
Deletions:
=====Summary=====
Use of an old raspberry pi, plus a basic automotive 7" LCD screen to display streamed CCTV images.


Revision [6364]

Edited on 2020-10-12 01:42:55 by ZorrUno

No Differences

Revision [6363]

Edited on 2020-10-12 01:42:54 by ZorrUno
Additions:
=====Summary=====
Note that using the displaycameras project was the one I went with in the end and it works exceedingly well. Since the initial project, I have added more RPis and monitors, and there is a fork of the code by nohn (https://github.com/nohn/displaycameras - not pulled into main as at Oct 2020) that handles rotation of images. I have some CCTV images that lend themselves better to a portrait style view and one of my monitors is displaying 3 vertical portraits.


Revision [6232]

Edited on 2020-08-23 22:49:33 by ZorrUno

No Differences

Revision [6231]

Edited on 2020-08-23 22:49:33 by ZorrUno
Additions:
-- The monitor is a little annoying as it displays the input name (AV1) in the top right until you press the IR remote to select something. If I was more pedantic I'd try and automate this. Also, it draws 110mA on standby (remote on/off) ++so I will be switching power off when not used++ (2020-08-21 monitor is now on a 12V supply switched by the home automation system).
Deletions:
-- The monitor is a little annoying as it displays the input name (AV1) in the top right until you press the IR remote to select something. If I was more pedantic I'd try and automate this. Also, it draws 110mA on standby (remote on/off) so I will be switching power off when not used.


Revision [5624]

Edited on 2020-05-16 11:31:56 by ZorrUno

No Differences

Revision [5623]

Edited on 2020-05-16 11:31:56 by ZorrUno
Additions:
https://community.ui.com/questions/Tutorial-Raspberry-Pi-3-RTSP-Stream-Viewer/cc54f892-b8d6-46c5-81f3-ee58b9284889
Deletions:
https://community.ui.com/questions/Tutorial-Raspberry-Pi-3-RTSP-Stream-Viewer/


Revision [5622]

Edited on 2020-05-16 11:31:09 by ZorrUno

No Differences

Revision [5621]

Edited on 2020-05-16 11:31:09 by ZorrUno
Additions:
=====References=====
https://selfhostedhome.com/raspberry-pi-video-surveillance-monitor/
https://community.ui.com/questions/Tutorial-Raspberry-Pi-3-RTSP-Stream-Viewer/


Revision [5566]

Edited on 2020-05-13 02:05:26 by ZorrUno

No Differences

Revision [5565]

Edited on 2020-05-13 02:05:25 by ZorrUno
Additions:
======Pi CCTV Monitor RTSP Display======
Deletions:
======Quad CCTV display======


Revision [5564]

Edited on 2020-05-12 03:22:54 by ZorrUno

No Differences

Revision [5563]

Edited on 2020-05-12 03:22:54 by ZorrUno
Additions:
CategoryMicrocontrol


Revision [5562]

Edited on 2020-05-12 03:21:51 by ZorrUno

No Differences

Revision [5561]

Edited on 2020-05-12 03:21:51 by ZorrUno
Additions:
{{lastedit show="3"}}
--
CategoryLinux
CategoryCCTV
CategoryRaspberryPi
CategoryHomeAutomation
CategorySecurity


Revision [5560]

Edited on 2020-05-12 03:17:15 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5559]

Edited on 2020-05-12 03:17:15 by ZorrUno [Measured software resources & monitor current]
Additions:
=====Resources=====
On the Pi, omxplayer.bin uses between 8 and 15% CPU load for each instance (4 D1 streams in this case) and about 10% memory for each.
Deletions:
=====Resources====
On the Pi, omxplayer.bin uses between 8 and 12% CPU load for each instance (4 D1 streams in this case) and about 10% memory for each.


Revision [5558]

Edited on 2020-05-12 03:12:19 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5557]

Edited on 2020-05-12 03:12:19 by ZorrUno [Measured software resources & monitor current]
Additions:
similar to these: [[https://www.trademe.co.nz/motors/car-parts-accessories/rear-view-cameras/listing-2618879503.htm Trademe]], [[https://www.jaycar.co.nz/7-tft-lcd-widescreen-colour-monitor-with-ir-remote/p/QM3752 Jaycar]], [[https://www.aliexpress.com/item/32968378643.html Aliexpress]],
=====Choice of software players=====
Deletions:
similar to:
https://www.trademe.co.nz/motors/car-parts-accessories/rear-view-cameras/listing-2618879503.htm
=====Choice of players=====


Revision [5556]

Edited on 2020-05-12 03:04:49 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5555]

Edited on 2020-05-12 03:04:48 by ZorrUno [Measured software resources & monitor current]
Additions:
=====Resources====
Monitor draws around 400mA on 12V
On the Pi, omxplayer.bin uses between 8 and 12% CPU load for each instance (4 D1 streams in this case) and about 10% memory for each.
-- Be aware that dropping a stream down in resolution is resource intensive, so using a sub-stream or low quality/resolution stream is important.
-- The monitor is a little annoying as it displays the input name (AV1) in the top right until you press the IR remote to select something. If I was more pedantic I'd try and automate this. Also, it draws 110mA on standby (remote on/off) so I will be switching power off when not used.


Revision [5554]

Edited on 2020-05-12 02:18:08 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5553]

Edited on 2020-05-12 02:18:08 by ZorrUno [Measured software resources & monitor current]
Additions:
I planned to use omxplayer as this mostly just works on the Pi using framebuffer (no gui or other x layers). Additionally there is a great python project called [[https://github.com/Anonymousdog/displaycameras displaycameras]] that uses this to overlay multiple rtsp streams on screen, and can cycle though them and place them in quadrants like a CCTV DVR display etc.
omxplayer needs hardware decoding and on first check the pi that I used can only software decode the H.265 streams from my cameras so I could not get the streams to decode at first. I did go back and manage to reconfigure my camera substreams to work on it eventually though (with some tweaks to camera settings), so have 2 methods working.
For reference, my cameras tout H.265, H.265+ and H.265AI modes (but not all for main and substream), and because these are pretty generic Chinese manufactured IP cameras, what these actually mean in terms of stream standards are unclear. Not all my cameras seem to have all these settings, even though they are similar cameras from the same supplier (and I've updated the firmware for all)
Deletions:
I planned to use omxplayer as this mostly just works on the Pi using framebuffer (no gui or other x layers).
Also, there is a great python project called displaycameras that uses this to overlay multiple rtsp streams on the pi, and can cycle though them and place them in quadrants like a CCTV DVR display etc. https://github.com/Anonymousdog/displaycameras
omxplayer needs hardware decoding and the pis that I used can only software decode the H.265 streams from my cameras for I could not get the streams to decode at first. I did go back and manage to reconfigure my camera substreams to work on it eventually though, so have 2 methods working.


Revision [5552]

Edited on 2020-05-12 02:11:08 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5551]

Edited on 2020-05-12 02:11:07 by ZorrUno [Measured software resources & monitor current]
Additions:
%%cvlc -f --aspect-ratio=16:9 "rtsp://192.168.1.123:554/user=blah&password=blah&channel=1&stream=1.sdp?Real_stream"%%
Follow the instructions in https://github.com/Anonymousdog/displaycameras and download/install the scripts.
The install adds all dependencies and queries you for other changes. For my early Pi V1 I set video split to 265MB GPU and overscan turned off.
For a basic quad display, with no changing of camera feeds on screen (you can rotate more feeds onto the display), this was the configuration after a fair bit of playing to get the layout balanced and the entire images on screen.
-- RTSP streams can be reaeeeallly delayed if they are large (eg a 4MPix stream). I had one on my computer that confused me as I was watching 20 minute old footage thinking it was live. Check your clock display occasionally to be sure this isn't an issue.
Deletions:
cvlc -f --aspect-ratio=16:9 "rtsp://192.168.1.123:554/user=blah&password=blah&channel=1&stream=1.sdp?Real_stream"
Follow the instructions in https://github.com/Anonymousdog/displaycameras and download/install the scripts.
++I still have the full raspbian gui installed, (it boots up without it though) and expect that I don't need any packages from it now so will re-install the minimal version at some stage.++
For a basic quad display, with no changing of camera feeds on screen (you can rotate more feeds onto the display), this was the configuration after a fair bit of playing to get the layout balanced and the entire images on screen. I also made sure overscan was turned on (set in raspi-config)
-- I should rebuild it to make the OS install as minimal as possible
-- RTSP streams can be reaeeeallly delayed if they are large. I had one on my computer that confused me as I was watching 20 minute old footage thinking it was live. Check your clock display occasionally to be sure this isn't an issue.


Revision [5550]

Edited on 2020-05-12 02:03:54 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5549]

Edited on 2020-05-12 02:03:54 by ZorrUno [Measured software resources & monitor current]
Additions:
Install raspian lite on the raspberry pi. I used 2020-02-13-raspian-buster-lite at the time.
set up ssh, locale etc as needed, but not a lot of other changes needed from the default raspian minimal setup.
I recommend you verify omxplayer will play your feed RTSP URLs first. To definitively rule out problems with omxplayer not playing RTSP feeds, run the following in an SSH session, or maybe even install and text on another machine first:
++I still have the full raspbian gui installed, (it boots up without it though) and expect that I don't need any packages from it now so will re-install the minimal version at some stage.++
You can also tweak settings in /etc/displaycameras/displaycameras.conf, I upped the timeouts and changed blank="true" to blank the terminal window nicely before displaying the feeds, but suspect the default timeouts will be fine.
Deletions:
Verify omxplayer will play your feed RTSP URLs first. To definitively rule out problems with omxplayer not playing RTSP feeds, run the following in an SSH session:
I still have the full raspbian gui installed, (it boots up without it though) and expect that I don't need any packages from it now so will re-install the minimal version at some stage.
You can also tweak settings in /etc/displaycameras/displaycameras.conf, I upped the timeouts and changed blank="true" to blank the terminal window nicely before displaying the feeds.


Revision [5548]

Edited on 2020-05-12 01:44:43 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5547]

Edited on 2020-05-12 01:44:43 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5546]

Edited on 2020-05-11 11:48:08 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5545]

Edited on 2020-05-11 11:48:08 by ZorrUno [Measured software resources & monitor current]
Additions:
=====Notes=====
-- I should rebuild it to make the OS install as minimal as possible
-- I use the text overlay as if the stream stops, it is helpful to have a clock to see if the stream has stopped or is delayed.
=====Improvements=====
Deletions:
=====Improvements & Notes=====
-- Make the OS install as minimal as possible


Revision [5544]

Edited on 2020-05-11 11:34:53 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5543]

Edited on 2020-05-11 11:34:53 by ZorrUno [Measured software resources & monitor current]
Additions:
Use of an old raspberry pi, plus a basic automotive 7" LCD screen to display streamed CCTV images.
Deletions:
Using a 7 inch car monitor to display multiple Streamed CCTV images
Use of an old raspberry pi, plus a basic vehicle 7" LCD screen to display streamed CCTV in an office.


Revision [5542]

Edited on 2020-05-11 11:33:06 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5541]

Edited on 2020-05-11 11:33:06 by ZorrUno [Measured software resources & monitor current]
Additions:
Verify omxplayer will play your feed RTSP URLs first. To definitively rule out problems with omxplayer not playing RTSP feeds, run the following in an SSH session:
Deletions:
**Verify omxplayer will play your feed RTSP URLs first**
To definitively rule out problems with omxplayer not playing RTSP feeds, run the following in an SSH session:


Revision [5540]

Edited on 2020-05-11 11:31:51 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5539]

Edited on 2020-05-11 11:31:51 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5538]

Edited on 2020-05-11 11:30:49 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5537]

Edited on 2020-05-11 11:30:49 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5536]

Edited on 2020-05-11 11:30:26 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5535]

Edited on 2020-05-11 11:30:26 by ZorrUno [Measured software resources & monitor current]
Additions:
omxplayer needs hardware decoding and the pis that I used can only software decode the H.265 streams from my cameras for I could not get the streams to decode at first. I did go back and manage to reconfigure my camera substreams to work on it eventually though, so have 2 methods working.
This is a simple way to get a single image running in full screen.
I installed Raspbian full desktop, but set it to start without x running (set using raspi-config) and the pi user automatically logged in. VLC doesn't like running as root.
I appended this to /home/pi/.profile
I had issues with larger streams, in that the stream would eventually drop out never to return. A camera stream in CIF with a decent number of i-frames seemed to work. Even a D1 stream seemed to be too much, but more playing may have solved it.
To definitively rule out problems with omxplayer not playing RTSP feeds, run the following in an SSH session:
Follow the instructions in https://github.com/Anonymousdog/displaycameras and download/install the scripts.
For a basic quad display, with no changing of camera feeds on screen (you can rotate more feeds onto the display), this was the configuration after a fair bit of playing to get the layout balanced and the entire images on screen. I also made sure overscan was turned on (set in raspi-config)
"25 10 359 259" \
"360 10 700 259" \
"25 260 359 480" \
"360 260 700 480" \
You can also tweak settings in /etc/displaycameras/displaycameras.conf, I upped the timeouts and changed blank="true" to blank the terminal window nicely before displaying the feeds.
Deletions:
Unfortunately, omxplayer needs hardware decoding and the pis that I used can only software decode the H.265 streams from my cameras. I did go back and manage to reconfigure my camera substreams to work on it eventually though, so have 2 methods working.
Installed Raspbian full desktop, but start without x running (set using raspi-config) and the pi used logged in. VLC doesn't like running as root.
Appended this to /home/pi/.profile
I had issues with larger streams, in that the stream would eventually drop out never to return. A camera stream in CIF with a decent number of i-frames seemed to work. Even a D1 stream seems to be too much.
To definitively rule out problems with omxplayer not playing your RTSP feeds, run the following in an SSH session:
Follow the instructions in https://github.com/Anonymousdog/displaycameras
My basic quad display, with no changing of camera feeds on screen (you can rotate more feeds onto the display)
#these could probably be tweaked or cropped a bit
"0 0 399 239" \
"400 0 799 239" \
"0 240 399 479" \
"400 240 799 479" \
You can also tweak settings in /etc/displaycameras/displaycameras.conf, but I didn't need to change the defaults.


Revision [5534]

Edited on 2020-05-11 11:14:42 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5533]

Edited on 2020-05-11 11:14:42 by ZorrUno [Measured software resources & monitor current]
Additions:
restarting the service:
%%sudo systemctl restart displaycameras%%


Revision [5532]

Edited on 2020-05-11 11:10:57 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5531]

Edited on 2020-05-11 11:10:57 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5530]

Edited on 2020-05-11 11:09:29 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5529]

Edited on 2020-05-11 11:09:29 by ZorrUno [Measured software resources & monitor current]
Additions:
{{image class="center" alt="Quad CCTV Display" width="600" link="https://lh3.googleusercontent.com/vWk7NmGqWmeUdVrjSVP5_42Rx4u_r7I8XQWaD4H_ZWFKrw7CxvQnURTk4gbiuZp299a5Piazk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xKa90zjXJiw7oGt3MDg0yaFuH6Zdtldf6LT0TPpG5AvlxJNnOT-BkQpaOFUwY1PPeceiTNqyq2GTLmLuMb62i2pDkm5IuGD-LyhYhyjaQElVeTDbB3TjzwZcUNLb9rXfh7us4oQkmphsd-lGC8VXGj6muBlc8hY-dZgAY7r9Z4EAqx31H8LReJOXF3mMrN5WETbrpyMlqiFLQQgzXvByn0an9GsEvuKJmLAq_CRRTz1OiaaFJ3aYTQ_DAY0ftXnVRDCjBwQnBDGLsXnMHZVwDE_SHOaEVxCmqId_CRlFY-KA38il2AjjobuLNMP8XxOxC5Zd9MxRIPwU5VQPtEV8-7-1ZUdBn4tLMwq6AJnwXnvn8nOsd4anvdwnMatWOXxfh4ulHSAtYBSuGebvciN6O65U9C2-f-KhhgNc=w872-h598-no?authuser=0" title="Quad CCTV Display" alt="Quad CCTV Display"}}
Deletions:
{{image class="center" alt="HW-622" width="400" link="https://lh3.googleusercontent.com/NSi6K8wo-kJwf8j8SecYGqGsoj-wZwyHZ9OOrflQegNehohrQVo2zj_TyYjvfJ1rNNcV1eSssq0f5tI6ZaUIztRcoTVIaG9IIZcxZ446wXsrlzj1Yax1LsM9MEvH1KhGiTL_D5zIj6JFWmlUb3iqetLbnuhjXGHYvOGNT1W5fccu-dXTr8OP1l5PstvVCZDJDGJUgxlaHKzj0Cea32_rhjegar8bmDmWM9WTiQvZWGNWySxxrG_yINrtXJaQZNnU9q8z6OnlfZ2HIfdlLCfkCvaZ92N1dVoPGae6_np4BJqOAWTl2G2Fz-JmD1BjUz2pryO6tPO8J_8dlvybbvtK2q9tV60Vf5GzSPPAksSU8Qy75pdCB0nbO_W3UlRIo6dN4_QT3rmZL_UW5d57YixxEcijY6YswY86pjvsQhGFYZFkPK0IQpOE4mVTEaF3RxR7K0yZh-EwSoxV6enqHRvZCmTm3AU6FrTzOaS8H8x8zdXKWKLpFhRb2ZmSVp5kKkqP-wNHPzH0w4fb2IF_Vb6x9XCMGYZdSW-gDBo4YMiy5hX0P_E5dKe-QCdx8BY3KRU9_xjMKa-WDMTPDGkqmADnc6WekvtQdMoOqLGkLbAlHfvmlJNdNZaDVPI9dBH4PKuSlRcajSNkdDgq0LDF2i_4ePsvaM8tlkmsWvodjqb3W3OW2Ur1jiKm0IWjUveRMg=w1295-h896-no?authuser=0" url="https://lh3.googleusercontent.com/NSi6K8wo-kJwf8j8SecYGqGsoj-wZwyHZ9OOrflQegNehohrQVo2zj_TyYjvfJ1rNNcV1eSssq0f5tI6ZaUIztRcoTVIaG9IIZcxZ446wXsrlzj1Yax1LsM9MEvH1KhGiTL_D5zIj6JFWmlUb3iqetLbnuhjXGHYvOGNT1W5fccu-dXTr8OP1l5PstvVCZDJDGJUgxlaHKzj0Cea32_rhjegar8bmDmWM9WTiQvZWGNWySxxrG_yINrtXJaQZNnU9q8z6OnlfZ2HIfdlLCfkCvaZ92N1dVoPGae6_np4BJqOAWTl2G2Fz-JmD1BjUz2pryO6tPO8J_8dlvybbvtK2q9tV60Vf5GzSPPAksSU8Qy75pdCB0nbO_W3UlRIo6dN4_QT3rmZL_UW5d57YixxEcijY6YswY86pjvsQhGFYZFkPK0IQpOE4mVTEaF3RxR7K0yZh-EwSoxV6enqHRvZCmTm3AU6FrTzOaS8H8x8zdXKWKLpFhRb2ZmSVp5kKkqP-wNHPzH0w4fb2IF_Vb6x9XCMGYZdSW-gDBo4YMiy5hX0P_E5dKe-QCdx8BY3KRU9_xjMKa-WDMTPDGkqmADnc6WekvtQdMoOqLGkLbAlHfvmlJNdNZaDVPI9dBH4PKuSlRcajSNkdDgq0LDF2i_4ePsvaM8tlkmsWvodjqb3W3OW2Ur1jiKm0IWjUveRMg=w1295-h896-no?authuser=0" title="Quad CCTV Display" alt="Quad CCTV Display"}}


Revision [5528]

Edited on 2020-05-11 01:30:07 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5527]

Edited on 2020-05-11 01:30:07 by ZorrUno [Measured software resources & monitor current]
Additions:
**Verify omxplayer will play your feed RTSP URLs first**
Deletions:
**Verify omxplayer will play your feed RTSP URLs**


Revision [5526]

Edited on 2020-05-11 01:26:27 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5525]

Edited on 2020-05-11 01:26:27 by ZorrUno [Measured software resources & monitor current]
Additions:
The -f switch is to display fullscreen, and using cvlc plays without any of the other VLC window overhead


Revision [5524]

Edited on 2020-05-11 01:23:55 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5523]

Edited on 2020-05-11 01:23:55 by ZorrUno [Measured software resources & monitor current]
Additions:
======Quad CCTV display======
Using a 7 inch car monitor to display multiple Streamed CCTV images
Deletions:
======Use a 7 inch car monitor to display Streamed CCTV image======


Revision [5522]

Edited on 2020-05-11 01:22:18 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5521]

Edited on 2020-05-11 01:22:18 by ZorrUno [Measured software resources & monitor current]
Additions:
Use of an old raspberry pi, plus a basic vehicle 7" LCD screen to display streamed CCTV in an office.
Resolution was not that important - it was more about using cheap/minimal hardware to see activity, and bringing up another larger image on the main computer/TV if needed. The monitor I'm using is only 800x480, so this is fine as a visual display, but most of the the cameras I use are 4MPix (and they are recorded in 4MPix) with a configurable substream (usually D1 of CIF).
I planned to use omxplayer as this mostly just works on the Pi using framebuffer (no gui or other x layers).
Also, there is a great python project called displaycameras that uses this to overlay multiple rtsp streams on the pi, and can cycle though them and place them in quadrants like a CCTV DVR display etc. https://github.com/Anonymousdog/displaycameras
=====Improvements & Notes=====
-- I'd be interested to see if I can make one of my streams portrait, as it lends itself to that (and have two landscape, one portrait images on the monitor)
-- RTSP streams can be reaeeeallly delayed if they are large. I had one on my computer that confused me as I was watching 20 minute old footage thinking it was live. Check your clock display occasionally to be sure this isn't an issue.
Deletions:
Use of an old raspberry pi, plus a basic vehicle 7" LCD screen to display streamed CCTV in an office. Resolution was not that important - it was more about seeing activity, and bringing up another larger image on the main computer/TV if needed. The monitor I'm using is only 800x480, so this is fine as a visual display, but most of the the cameras I use are 4MPix (and they are recorded in 4MPix) with a configurable substream (usually D1 of CIF).
I planned to use omxplayer as this mostly just works on the Pi using framebuffer (no gui or other x layers), and there is a great python script called displaycameras that uses this to overlay multiple rtsp streams on the pi, and can cycle though them and place them in quadrants like a CCTV DVR display etc. https://github.com/Anonymousdog/displaycameras
=====Improvements=====


Revision [5520]

Edited on 2020-05-11 01:13:24 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5519]

Edited on 2020-05-11 01:13:24 by ZorrUno [Measured software resources & monitor current]
Additions:
{{image class="center" alt="HW-622" width="400" link="https://lh3.googleusercontent.com/NSi6K8wo-kJwf8j8SecYGqGsoj-wZwyHZ9OOrflQegNehohrQVo2zj_TyYjvfJ1rNNcV1eSssq0f5tI6ZaUIztRcoTVIaG9IIZcxZ446wXsrlzj1Yax1LsM9MEvH1KhGiTL_D5zIj6JFWmlUb3iqetLbnuhjXGHYvOGNT1W5fccu-dXTr8OP1l5PstvVCZDJDGJUgxlaHKzj0Cea32_rhjegar8bmDmWM9WTiQvZWGNWySxxrG_yINrtXJaQZNnU9q8z6OnlfZ2HIfdlLCfkCvaZ92N1dVoPGae6_np4BJqOAWTl2G2Fz-JmD1BjUz2pryO6tPO8J_8dlvybbvtK2q9tV60Vf5GzSPPAksSU8Qy75pdCB0nbO_W3UlRIo6dN4_QT3rmZL_UW5d57YixxEcijY6YswY86pjvsQhGFYZFkPK0IQpOE4mVTEaF3RxR7K0yZh-EwSoxV6enqHRvZCmTm3AU6FrTzOaS8H8x8zdXKWKLpFhRb2ZmSVp5kKkqP-wNHPzH0w4fb2IF_Vb6x9XCMGYZdSW-gDBo4YMiy5hX0P_E5dKe-QCdx8BY3KRU9_xjMKa-WDMTPDGkqmADnc6WekvtQdMoOqLGkLbAlHfvmlJNdNZaDVPI9dBH4PKuSlRcajSNkdDgq0LDF2i_4ePsvaM8tlkmsWvodjqb3W3OW2Ur1jiKm0IWjUveRMg=w1295-h896-no?authuser=0" url="https://lh3.googleusercontent.com/NSi6K8wo-kJwf8j8SecYGq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4PKuSlRcajSNkdDgq0LDF2i_4ePsvaM8tlkmsWvodjqb3W3OW2Ur1jiKm0IWjUveRMg=w1295-h896-no?authuser=0" title="Quad CCTV Display" alt="Quad CCTV Display"}}


Revision [5518]

Edited on 2020-05-11 01:08:53 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5517]

Edited on 2020-05-11 01:08:53 by ZorrUno [Measured software resources & monitor current]
Additions:
{{https://lh3.googleusercontent.com/NSi6K8wo-kJwf8j8SecYGqGsoj-wZwyHZ9OOrflQegNehohrQVo2zj_TyYjvfJ1rNNcV1eSssq0f5tI6ZaUIztRcoTVIaG9IIZcxZ446wXsrlzj1Yax1LsM9MEvH1KhGiTL_D5zIj6JFWmlUb3iqetLbnuhjXGHYvOGNT1W5fccu-dXTr8OP1l5PstvVCZDJDGJUgxlaHKzj0Cea32_rhjegar8bmDmWM9WTiQvZWGNWySxxrG_yINrtXJaQZNnU9q8z6OnlfZ2HIfdlLCfkCvaZ92N1dVoPGae6_np4BJqOAWTl2G2Fz-JmD1BjUz2pryO6tPO8J_8dlvybbvtK2q9tV60Vf5GzSPPAksSU8Qy75pdCB0nbO_W3UlRIo6dN4_QT3rmZL_UW5d57YixxEcijY6YswY86pjvsQhGFYZFkPK0IQpOE4mVTEaF3RxR7K0yZh-EwSoxV6enqHRvZCmTm3AU6FrTzOaS8H8x8zdXKWKLpFhRb2ZmSVp5kKkqP-wNHPzH0w4fb2IF_Vb6x9XCMGYZdSW-gDBo4YMiy5hX0P_E5dKe-QCdx8BY3KRU9_xjMKa-WDMTPDGkqmADnc6WekvtQdMoOqLGkLbAlHfvmlJNdNZaDVPI9dBH4PKuSlRcajSNkdDgq0LDF2i_4ePsvaM8tlkmsWvodjqb3W3OW2Ur1jiKm0IWjUveRMg=w1295-h896-no?authuser=0 url="https://lh3.googleusercontent.com/NSi6K8wo-kJwf8j8SecYGqGsoj-wZwyHZ9OOrflQegNehohrQVo2zj_TyYjvfJ1rNNcV1eSssq0f5tI6ZaUIztRcoTVIaG9IIZcxZ446wXsrlzj1Yax1LsM9MEvH1KhGiTL_D5zIj6JFWmlUb3iqetLbnuhjXGHYvOGNT1W5fccu-dXTr8OP1l5PstvVCZDJDGJUgxlaHKzj0Cea32_rhjegar8bmDmWM9WTiQvZWGNWySxxrG_yINrtXJaQZNnU9q8z6OnlfZ2HIfdlLCfkCvaZ92N1dVoPGae6_np4BJqOAWTl2G2Fz-JmD1BjUz2pryO6tPO8J_8dlvybbvtK2q9tV60Vf5GzSPPAksSU8Qy75pdCB0nbO_W3UlRIo6dN4_QT3rmZL_UW5d57YixxEcijY6YswY86pjvsQhGFYZFkPK0IQpOE4mVTEaF3RxR7K0yZh-EwSoxV6enqHRvZCmTm3AU6FrTzOaS8H8x8zdXKWKLpFhRb2ZmSVp5kKkqP-wNHPzH0w4fb2IF_Vb6x9XCMGYZdSW-gDBo4YMiy5hX0P_E5dKe-QCdx8BY3KRU9_xjMKa-WDMTPDGkqmADnc6WekvtQdMoOqLGkLbAlHfvmlJNdNZaDVPI9dBH4PKuSlRcajSNkdDgq0LDF2i_4ePsvaM8tlkmsWvodjqb3W3OW2Ur1jiKm0IWjUveRMg=w1295-h896-no?authuser=0" title="Quad CCTV Display" alt="Quad CCTV Display"}}
Deletions:
{{image url="https://lh3.googleusercontent.com/NSi6K8wo-kJwf8j8SecYGqGsoj-wZwyHZ9OOrflQegNehohrQVo2zj_TyYjvfJ1rNNcV1eSssq0f5tI6ZaUIztRcoTVIaG9IIZcxZ446wXsrlzj1Yax1LsM9MEvH1KhGiTL_D5zIj6JFWmlUb3iqetLbnuhjXGHYvOGNT1W5fccu-dXTr8OP1l5PstvVCZDJDGJUgxlaHKzj0Cea32_rhjegar8bmDmWM9WTiQvZWGNWySxxrG_yINrtXJaQZNnU9q8z6OnlfZ2HIfdlLCfkCvaZ92N1dVoPGae6_np4BJqOAWTl2G2Fz-JmD1BjUz2pryO6tPO8J_8dlvybbvtK2q9tV60Vf5GzSPPAksSU8Qy75pdCB0nbO_W3UlRIo6dN4_QT3rmZL_UW5d57YixxEcijY6YswY86pjvsQhGFYZFkPK0IQpOE4mVTEaF3RxR7K0yZh-EwSoxV6enqHRvZCmTm3AU6FrTzOaS8H8x8zdXKWKLpFhRb2ZmSVp5kKkqP-wNHPzH0w4fb2IF_Vb6x9XCMGYZdSW-gDBo4YMiy5hX0P_E5dKe-QCdx8BY3KRU9_xjMKa-WDMTPDGkqmADnc6WekvtQdMoOqLGkLbAlHfvmlJNdNZaDVPI9dBH4PKuSlRcajSNkdDgq0LDF2i_4ePsvaM8tlkmsWvodjqb3W3OW2Ur1jiKm0IWjUveRMg=w1295-h896-no?authuser=0" title="Quad CCTV Display" alt="Quad CCTV Display"}}


Revision [5516]

Edited on 2020-05-11 01:08:21 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5515]

Edited on 2020-05-11 01:08:21 by ZorrUno [Measured software resources & monitor current]
Additions:
{{image url="https://lh3.googleusercontent.com/NSi6K8wo-kJwf8j8SecYGqGsoj-wZwyHZ9OOrflQegNehohrQVo2zj_TyYjvfJ1rNNcV1eSssq0f5tI6ZaUIztRcoTVIaG9IIZcxZ446wXsrlzj1Yax1LsM9MEvH1KhGiTL_D5zIj6JFWmlUb3iqetLbnuhjXGHYvOGNT1W5fccu-dXTr8OP1l5PstvVCZDJDGJUgxlaHKzj0Cea32_rhjegar8bmDmWM9WTiQvZWGNWySxxrG_yINrtXJaQZNnU9q8z6OnlfZ2HIfdlLCfkCvaZ92N1dVoPGae6_np4BJqOAWTl2G2Fz-JmD1BjUz2pryO6tPO8J_8dlvybbvtK2q9tV60Vf5GzSPPAksSU8Qy75pdCB0nbO_W3UlRIo6dN4_QT3rmZL_UW5d57YixxEcijY6YswY86pjvsQhGFYZFkPK0IQpOE4mVTEaF3RxR7K0yZh-EwSoxV6enqHRvZCmTm3AU6FrTzOaS8H8x8zdXKWKLpFhRb2ZmSVp5kKkqP-wNHPzH0w4fb2IF_Vb6x9XCMGYZdSW-gDBo4YMiy5hX0P_E5dKe-QCdx8BY3KRU9_xjMKa-WDMTPDGkqmADnc6WekvtQdMoOqLGkLbAlHfvmlJNdNZaDVPI9dBH4PKuSlRcajSNkdDgq0LDF2i_4ePsvaM8tlkmsWvodjqb3W3OW2Ur1jiKm0IWjUveRMg=w1295-h896-no?authuser=0" title="Quad CCTV Display" alt="Quad CCTV Display"}}


Revision [5514]

Edited on 2020-05-11 01:05:33 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5513]

Edited on 2020-05-11 01:05:33 by ZorrUno [Measured software resources & monitor current]
Additions:
I planned to use omxplayer as this mostly just works on the Pi using framebuffer (no gui or other x layers), and there is a great python script called displaycameras that uses this to overlay multiple rtsp streams on the pi, and can cycle though them and place them in quadrants like a CCTV DVR display etc. https://github.com/Anonymousdog/displaycameras
Deletions:
I planned to use omxplayer as this mostly just works on the Pi with no gui or other x layers, and there is a great python script called displaycameras that uses this to overlay multiple rtsp streams on the pi, and can cycle though them and place them in quadrants like a CCTV DVR display etc. https://github.com/Anonymousdog/displaycameras


Revision [5512]

Edited on 2020-05-11 00:49:53 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5511]

Edited on 2020-05-11 00:49:53 by ZorrUno [Measured software resources & monitor current]
Additions:
-- A 3rd method would be to use the motion project https://motion-project.github.io/ as it supports rtsp streams- this would have the added advantage of doing some motion detection directly to alert if something is going on (on screen or with sound). This obviously would require some processing power - not sure if the V1 of the Pi would be suitable for more than one camera.
-- With the VLC method, If the stream drops (eg camera reboots) it isn't picked up again by VLC. The script should probably check that, or just restart the stream say every hour. Displaycameras is much more reliable at maintaining the stream properly.
-- I could use some of the wasted hardware from the pi to do some switching of displays (a button to bring up one of the inputs full screen? PIR to turn off/blank the screen if no-one is watching?
-- I could potentially find a micro board even more minimal that would run this, if it had composite output (and if it would reduce power use)
-- I could potentially use a raspberry pi cam or usb camera on the pi to display a feed locally? Not sure what... maybe the office door.
-- The screens also have a second composite input, and a trigger wire (designed for a reversing camera) so this could be used to switch displays... but probably easier to do in software.
-- I'm not using any audio and the monitors do have speakers, but I just plan to just feed this back into my desk audio mixer from the Pi with other desk audio (computers/TV) so I can ramp cctv sound up/down as needed.
Deletions:
-- If the stream drops (eg camera reboots) it isn't picked up again by VLC. The script should probably check that, or just restart the stream say every hour. Displaycameras is much more reliable at maintaining the stream properly.
-- use some of the wasted hardware from the pi to do some switching of displays (a button to bring up one of the inputs full screen? PIR to turn off/blank the screen if no-one is watching?
-- find a micro board even more minimal what will run this, and output composite (reduce power use)
-- use a raspberry pi cam or usb camera on the pi to display a feed locally?
-- The screens also have another composite input, and a trigger wire (designed for a reversing camera) so this could be used to switch displays... but probably easier to do in software.
-- I'm not using any audio and the monitors do have speakers, but suspect I just plan to just feed this back into my desk audio mixer from the Pi with other desk audio (computers/TV) so I can ramp cctv sound up/down as needed.


Revision [5510]

Edited on 2020-05-11 00:40:23 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5509]

Edited on 2020-05-11 00:40:23 by ZorrUno [Measured software resources & monitor current]
Additions:
I still have the full raspbian gui installed, (it boots up without it though) and expect that I don't need any packages from it now so will re-install the minimal version at some stage.
My basic quad display, with no changing of camera feeds on screen (you can rotate more feeds onto the display)
/etc/displaycameras/layout.conf.default
You can also tweak settings in /etc/displaycameras/displaycameras.conf, but I didn't need to change the defaults.
-- If the stream drops (eg camera reboots) it isn't picked up again by VLC. The script should probably check that, or just restart the stream say every hour. Displaycameras is much more reliable at maintaining the stream properly.
-- Make the OS install as minimal as possible
-- use some of the wasted hardware from the pi to do some switching of displays (a button to bring up one of the inputs full screen? PIR to turn off/blank the screen if no-one is watching?
-- find a micro board even more minimal what will run this, and output composite (reduce power use)
-- use a raspberry pi cam or usb camera on the pi to display a feed locally?
-- The screens also have another composite input, and a trigger wire (designed for a reversing camera) so this could be used to switch displays... but probably easier to do in software.
-- I'm not using any audio and the monitors do have speakers, but suspect I just plan to just feed this back into my desk audio mixer from the Pi with other desk audio (computers/TV) so I can ramp cctv sound up/down as needed.
Deletions:
My Basic quad display
-- If the stream drops (eg camera reboots) it isn't picked up again by VLC. The script should probably check that, or just restart the stream say every hour.
-- I'd like to get vlc running without installing all the raspian desktop components, but a couple of tries at this failed (minimal


Revision [5508]

Edited on 2020-05-11 00:25:27 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5507]

Edited on 2020-05-11 00:25:27 by ZorrUno [Measured software resources & monitor current]
Additions:
=====Method 1 - VLC=====
Deletions:
-====Method 1 - VLC=====


Revision [5506]

Edited on 2020-05-11 00:24:54 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5505]

Edited on 2020-05-11 00:24:54 by ZorrUno [Measured software resources & monitor current]
Additions:
**Verify omxplayer will play your feed RTSP URLs**
Deletions:
#### Verify omxplayer will play your feed RTSP URLs


Revision [5504]

Edited on 2020-05-11 00:23:35 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5503]

Edited on 2020-05-11 00:23:35 by ZorrUno [Measured software resources & monitor current]
Additions:
=====Requirement=====
Use of an old raspberry pi, plus a basic vehicle 7" LCD screen to display streamed CCTV in an office. Resolution was not that important - it was more about seeing activity, and bringing up another larger image on the main computer/TV if needed. The monitor I'm using is only 800x480, so this is fine as a visual display, but most of the the cameras I use are 4MPix (and they are recorded in 4MPix) with a configurable substream (usually D1 of CIF).
=====Equipment=====
-- Raspberry Pi (V1), with ethernet and composite video output (less than $30 2nd hand)
-- Composite male to male cable
-- 12V car monitor (I have 3 of these, picked up in a sale for $15 each)
similar to:
https://www.trademe.co.nz/motors/car-parts-accessories/rear-view-cameras/listing-2618879503.htm
-- Power supplies for Pi and monitor
I planned to use omxplayer as this mostly just works on the Pi with no gui or other x layers, and there is a great python script called displaycameras that uses this to overlay multiple rtsp streams on the pi, and can cycle though them and place them in quadrants like a CCTV DVR display etc. https://github.com/Anonymousdog/displaycameras
Unfortunately, omxplayer needs hardware decoding and the pis that I used can only software decode the H.265 streams from my cameras. I did go back and manage to reconfigure my camera substreams to work on it eventually though, so have 2 methods working.
-====Method 1 - VLC=====
Installed Raspbian full desktop, but start without x running (set using raspi-config) and the pi used logged in. VLC doesn't like running as root.
I had issues with larger streams, in that the stream would eventually drop out never to return. A camera stream in CIF with a decent number of i-frames seemed to work. Even a D1 stream seems to be too much.
=====Method 2 - Displaycameras and omxplayer=====
Follow the instructions in https://github.com/Anonymousdog/displaycameras
My Basic quad display
windows=(upper_left upper_right lower_left lower_right)
#these could probably be tweaked or cropped a bit
window_positions=(
"0 0 399 239" \
"400 0 799 239" \
"0 240 399 479" \
"400 240 799 479" \
)
camera_names=(Cam1 Cam2 Cam3 Cam4)
camera_feeds=( \
"rtsp://192.168.1.121:554/user=blah&password=blah&channel=1&stream=1.sdp?Real_stream" \
"rtsp://192.168.1.122:554/user=blah&password=blah&channel=1&stream=1.sdp?Real_stream" \
"rtsp://192.168.1.123:554/user=blah&password=blah&channel=1&stream=1.sdp?Real_stream" \
"rtsp://192.168.1.124:554/user=blah&password=blah&channel=1&stream=1.sdp?Real_stream" \
)
Deletions:
I wanted to use omxplayer as this mostly just works, and there is a good python script called displaycameras that plays rtsp streams on the pi, and can cycle though them and place them in quadrants like a CCTV DVR display etc. https://github.com/Anonymousdog/displaycameras
Unfortunately, omxplayer needs hardware decoding and the pis that I used can only software decode the H.265 streams from my cameras.
=====Method=====
Using an old Raspberry Pi (V1), and composite video output
Installed Raspbian full desktop, but start without x running (set using raspi-config)
I had issues with larger streams, in that the stream would eventually drop out never to return. A camera stream in CIF with a decent number of i-frames seemed to work. Even a D1 stream seems to be too much. The monitor I'm using is only 800x480 however, so this is fine as a visual display, and the cameras I use are 4MPix with a substream.
=====Check omxplayer=====


Revision [5502]

Edited on 2020-05-10 02:57:04 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5501]

Edited on 2020-05-10 02:57:04 by ZorrUno [Measured software resources & monitor current]
Additions:
=====Check omxplayer=====
#### Verify omxplayer will play your feed RTSP URLs
To definitively rule out problems with omxplayer not playing your RTSP feeds, run the following in an SSH session:
%%sudo omxplayer --no-keys --no-osd --avdict rtsp_transport:tcp <camera feed URL> --live -n -1 --timeout 30%%


Revision [5500]

Edited on 2020-05-10 02:44:00 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5499]

Edited on 2020-05-10 02:44:00 by ZorrUno [Measured software resources & monitor current]
Additions:
=====Choice of players=====
I wanted to use omxplayer as this mostly just works, and there is a good python script called displaycameras that plays rtsp streams on the pi, and can cycle though them and place them in quadrants like a CCTV DVR display etc. https://github.com/Anonymousdog/displaycameras
Unfortunately, omxplayer needs hardware decoding and the pis that I used can only software decode the H.265 streams from my cameras.
=====Method=====
=====Improvements=====
-- If the stream drops (eg camera reboots) it isn't picked up again by VLC. The script should probably check that, or just restart the stream say every hour.
-- I'd like to get vlc running without installing all the raspian desktop components, but a couple of tries at this failed (minimal


Revision [5498]

Edited on 2020-05-10 00:54:27 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5497]

Edited on 2020-05-10 00:54:27 by ZorrUno [Measured software resources & monitor current]
Deletions:
insert-source-code-here


Revision [5496]

Edited on 2020-05-10 00:54:15 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5495]

Edited on 2020-05-10 00:54:15 by ZorrUno [Measured software resources & monitor current]
Additions:
%%
insert-source-code-here
%%
%%


Revision [5494]

Edited on 2020-05-10 00:53:41 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5493]

Edited on 2020-05-10 00:53:41 by ZorrUno [Measured software resources & monitor current]
Additions:
Installed Raspbian full desktop, but start without x running (set using raspi-config)
Appended this to /home/pi/.profile
(so it will start up when the pi user logs in... which is on startup now)
cvlc -f --aspect-ratio=16:9 "rtsp://192.168.1.123:554/user=blah&password=blah&channel=1&stream=1.sdp?Real_stream"
The IP address is the camera, and port of the RTSP stream. Use the camera username and pass. Most cameras have differing strings for an RTSP URL so you need to check in your camera manual.
I had issues with larger streams, in that the stream would eventually drop out never to return. A camera stream in CIF with a decent number of i-frames seemed to work. Even a D1 stream seems to be too much. The monitor I'm using is only 800x480 however, so this is fine as a visual display, and the cameras I use are 4MPix with a substream.
Deletions:
Installed Raspbian full desktop, but start without x running


Revision [5492]

Edited on 2020-05-10 00:17:45 by ZorrUno [Measured software resources & monitor current]

No Differences

Revision [5491]

The oldest known version of this page was created on 2020-05-10 00:17:45 by ZorrUno [Measured software resources & monitor current]