For low light motion detection systems in dark areas, you can add a one or more IR LEDs relatively close to the camera to illuminate people that pass by it (rather than illuminate the whole scene) For example in the case of the really suspicious thief actor that comes up the stairs 5:11, a LED positioned off the left of the shot, shining only on his face (from left to right) would provide very good contrast for motion detection without needing to illuminate the whole scene with light. This can turn motion detection into a beam-break detector in totally dark scenes - this can be useful if you have pets like cats that roam around in the dark. Simply aim the LEDs higher up and not at the floor to avoid cat-triggering. Excellent vid - surprising you only have under 600 subs with quality vids like this - I'll see if I can do something about that haha. By the way, asking for comments helps the RUclips algorithms for suggestions so you may want to ask them to leave people to leave a comment on your vids as well as like.subscribe
Hi Marc. Thanks to your Videos i'm sharing 2 usb drives over my Networks (usb hub connected) which left me a spare usb port on my Netgear R7800 router, i connected the webcam and had it up and running thanks to your tutorial, i also got the wan address so i could access it when away from home on the Openwrt Status Overview. The only thing i have to figure out now is how to access it from outside the home when i have my PIA OPENVPN running with PBR (with strictly enforce policys when gateway is down). Probably something to configure in PBR and firewall, after this i will have the perfect setup to my needs. Keep up the good work. 😃😃😃😃
Hi Mark. Once again thank you for all this tutorials. It is always a pleasure to hear you explaining things. I just wanted to note that with current version, you need to install manually input & output plugins, otherwise mjpg wont work. At least that was my experience today. Regards!
Omg thanks for the tutorial . I have the same needs here in my house and as I work with computer repairs, I got some equipments that I keep in a closet as spare parts. Blessings and cheers from Brazil
Every Thing worked nicely without any issues using WNDR3700v5 and A4Tech PK-77K, just one thing I had to reboot my router after installing the required packages.
If anybody gets an error about a missing input plugin/library while trying to start the stream it may be because the main mjpg-streamer package does not install extra necessary plugins like the input_uvc.so or output_http.so. You can easily solve that by doing "opkg update && opkg install mjpg-streamer-input-uvc mjpg-streamer-output-http mjpg-streamer-www"
great tutorial. I'm running Openwrt and I have a rtsp webcam. If I'd like to save video on usb stick 24/24 (I need 1 day saving) instead of saving jpeg image, which change are needed? Thanks!
I tried it on Asus AX53U (what I use for Wifi extender/AP) with recent OpenWRT snapshot. Now not enough to install UVC and mjpg-streamer and luci package. I had to install several mjpg-streamer plugins too (uvc input, http output, and so on) manually to start working. But after these extra packages, it started working and I could attach the camera to HomeAssistant and Synology Surveillance station (software NVR). Not so good as a h264 capable network camera but with 640*480@5 FPS it is usable for its price :)
Thankyou very much for the tutorial. Is there something similar to Netgear readyshare usb utility for openwrt? It is pretty cool, it acts somewhat like a usb over Ethernet/ Wifi host.
Simply fantastic video, you mentioned memory extention for the router. Could you tell us more about that and why you would add that? Would this be beneficial for router using batman on a large mesh network
I have a openwrt router running as a HPNA device which runs to my living room, would the stream work through the HPNA protocol and i would be able to access it being connected to my main router?
I am afraid that I can’t give you a reliable answer on that. I am not using HomePNA. But the way I understand it, it is just a bridge running on an open WRT Router. In other words, if you can bridge devices from HPNA to ethernet and vice versa then in theory it should work. Maybe someone can comment on this?
OneMarcFifty I was playing with this all day, i got a little more understanding about how HPNA works, i think i can make it work, if i manage to do it i will post here how ive done, thanks for the reply btw man
Hi, I have unfortunately not checked this when I did the video - the camera which I used is not on the router any more but I can check with a different camera. I'll come back
Record - not with this setup, but you could use ZoneMinder or Shinobi to record. If you want to access the camera then you would need to make it accessible over a VPN (good) or a reverse proxy (good but complex) or simpe port forward (very bad).
Hi Marc, Please, can you indicate the devices you are using as seen at 0:54 in your video and maybe some amazon links to them or to what you would recommend in 2021 ? In particular : - battery UPS for continuity - powered usb hub - 3G stick Thanks in advance
Yeah - I wanted to start using affiliate links but just need to find the time for this ;-( It’s on my mind though - maybe build a shop in Amazon or the like...
I got the following message while I install the mjpg-streamer on my Openwrt TP-Link Archer C5 v4 which having CPU of MediaTek MT7620A ver.2 eco:6 /etc/init.d/mjpg-streamer: device '/dev/video0' does not exist Collected errors: * resolve_conffiles: Existing conffile /etc/config/mjpg-streamer is different from the conffile in the new package. The new conffile will be placed at /etc/config/mjpg-streamer-opkg.
That happens when opkg (the software package tool) installs software over an existing one. In essence it comes with a default config file (in your case /etc/config/mjpg-streamer ). You just need to chose whether to keep the oriinal or the one that comes with your package. If your /dev/video0 does not exist make sure that you have kmod-video-uvc (or kmod-video-somethingelse according to your camera) installed. Hope that helps.
starting application MJPG Streamer Version.: 2.0 ERROR: could not find input plugin Perhaps you want to adjust the search path with: # export LD_LIBRARY_PATH=/path/to/plugin/folder dlopen: Error loading shared library input_uvc.so: No such file or directory
Sorry it took a while - in fact, you would need to set up two instances of mjpg-streamer replying on two different ports, for example one on port 8081 and one on port 8082. You could do so by just copying the config files into a second one. Would need to activate a separate service though. The second instance however would need to be tweaked to not use /dev/video0 as input device but rather /dev/video1. So in fact you would need to do this all manually. Alternatively, if you have multiple input plugins then you might access the streams separately like ...:8080/?action=stream_0 an ...:8080/?action=stream_1 but I haven't tested that. Hope that helps.
@@OneMarcFifty Thank you brother man, i'v been trying to publish my webcam stream to the internet, from local network, by using dynamic dns, i can view my cam by the new dns IPAdress:8080, opened a port for it & all, but still can't view from other wifi's there is a couple articles about that, do you have any idea, or probably u can do a tutorial in the fiture, thanks again a lot
Hi Hamza, so are you actually opening a port from the internet to your LAN without a VPN around ? I strongly recommend that you do *not* do that. This is a security concern as anybody in the internet could connect to your webcam and brute force the password or run a DOS attack etc. If you want to check your webcam from the outside world I suggest you run a home VPN.
For low light motion detection systems in dark areas, you can add a one or more IR LEDs relatively close to the camera to illuminate people that pass by it (rather than illuminate the whole scene)
For example in the case of the really suspicious thief actor that comes up the stairs 5:11, a LED positioned off the left of the shot, shining only on his face (from left to right) would provide very good contrast for motion detection without needing to illuminate the whole scene with light.
This can turn motion detection into a beam-break detector in totally dark scenes - this can be useful if you have pets like cats that roam around in the dark. Simply aim the LEDs higher up and not at the floor to avoid cat-triggering.
Excellent vid - surprising you only have under 600 subs with quality vids like this - I'll see if I can do something about that haha.
By the way, asking for comments helps the RUclips algorithms for suggestions so you may want to ask them to leave people to leave a comment on your vids as well as like.subscribe
Thanks mate - great advice !!!
Hi Marc. Thanks to your Videos i'm sharing 2 usb drives over my Networks (usb hub connected) which left me a spare usb port on my Netgear R7800 router, i connected the webcam and had it up and running thanks to your tutorial, i also got the wan address so i could access it when away from home on the Openwrt Status Overview. The only thing i have to figure out now is how to access it from outside the home when i have my PIA OPENVPN running with PBR (with strictly enforce policys when gateway is down). Probably something to configure in PBR and firewall, after this i will have the perfect setup to my needs. Keep up the good work. 😃😃😃😃
Hi Mark. Once again thank you for all this tutorials. It is always a pleasure to hear you explaining things.
I just wanted to note that with current version, you need to install manually input & output plugins, otherwise mjpg wont work. At least that was my experience today.
Regards!
Many thanks for the feedback Tomás, very useful!
Omg thanks for the tutorial . I have the same needs here in my house and as I work with computer repairs, I got some equipments that I keep in a closet as spare parts. Blessings and cheers from Brazil
Cool - glad it could help ;-)
Every Thing worked nicely without any issues using WNDR3700v5 and A4Tech PK-77K, just one thing I had to reboot my router after installing the required packages.
Excellent! Many thanks for your feedback!
If anybody gets an error about a missing input plugin/library while trying to start the stream it may be because the main mjpg-streamer package does not install extra necessary plugins like the input_uvc.so or output_http.so. You can easily solve that by doing "opkg update && opkg install mjpg-streamer-input-uvc mjpg-streamer-output-http mjpg-streamer-www"
Many thanks for sharing this!!!
Did not know about logread -f. Thanks!
You are welcome, many thanks !
great tutorial. I'm running Openwrt and I have a rtsp webcam. If I'd like to save video on usb stick 24/24 (I need 1 day saving) instead of saving jpeg image, which change are needed? Thanks!
You could use the camera stream in shinobi or zoneminder
I tried it on Asus AX53U (what I use for Wifi extender/AP) with recent OpenWRT snapshot. Now not enough to install UVC and mjpg-streamer and luci package. I had to install several mjpg-streamer plugins too (uvc input, http output, and so on) manually to start working. But after these extra packages, it started working and I could attach the camera to HomeAssistant and Synology Surveillance station (software NVR). Not so good as a h264 capable network camera but with 640*480@5 FPS it is usable for its price :)
Thankyou very much for the tutorial.
Is there something similar to Netgear readyshare usb utility for openwrt?
It is pretty cool, it acts somewhat like a usb over Ethernet/ Wifi host.
There is a package called usbip which seems to do that but I have never tested it to be honest ;-)
Simply fantastic video, you mentioned memory extention for the router. Could you tell us more about that and why you would add that?
Would this be beneficial for router using batman on a large mesh network
Mark, eres el mejor. Gracias
Thank you very much
Your tutorials are consie good job man 👍
Thanks mate!
Great video, is there a way to also stream the audio?
I have a openwrt router running as a HPNA device which runs to my living room, would the stream work through the HPNA protocol and i would be able to access it being connected to my main router?
I am afraid that I can’t give you a reliable answer on that. I am not using HomePNA. But the way I understand it, it is just a bridge running on an open WRT Router. In other words, if you can bridge devices from HPNA to ethernet and vice versa then in theory it should work. Maybe someone can comment on this?
OneMarcFifty I was playing with this all day, i got a little more understanding about how HPNA works, i think i can make it work, if i manage to do it i will post here how ive done, thanks for the reply btw man
Cool, thank you!
Done, thank for sharing this video.
Thanks mate
Hi, First of all thanks for making this. I'd like to do something similar and I'd like to know what is the cpu load while streaming? Thanks!
Hi, I have unfortunately not checked this when I did the video - the camera which I used is not on the router any more but I can check with a different camera. I'll come back
@@OneMarcFifty Thanks!! 😀
Awesome bro....is process rt5350? Can ise ffmpeg instead of mjpeg because stream is not good...in mjpeg...ffmpeg is very speed
Hi payloan, effectively, there is an ffmpeg package for OpenWrt - so theoretically this should be possible. I haven't tested it though.
@@OneMarcFifty thanks
.. so is it activate to mjpeg and h.264 ok?
I am just wondering why ffmpeg is not used than mpeg streamer
is it possible to do it with china usb camera quelima, like sq12 or sq23?
Hi, as long as it's supported by Linux and there is a module for it in OpenWrt it should work
Can you record a video and watch it later?
Can I see the camera when I'm out of the house?
Record - not with this setup, but you could use ZoneMinder or Shinobi to record. If you want to access the camera then you would need to make it accessible over a VPN (good) or a reverse proxy (good but complex) or simpe port forward (very bad).
we have the same router... subscribed xD
Nice - and thanks for subscribing!
Hi Marc,
Please, can you indicate the devices you are using as seen at 0:54 in your video and maybe some amazon links to them or to what you would recommend in 2021 ? In particular :
- battery UPS for continuity
- powered usb hub
- 3G stick
Thanks in advance
Yeah - I wanted to start using affiliate links but just need to find the time for this ;-( It’s on my mind though - maybe build a shop in Amazon or the like...
Can you stream your cctv in 25 fps or more with openwrt routers ? in this video I think you only got around 5 fps
I got the following message while I install the mjpg-streamer on my Openwrt TP-Link Archer C5 v4 which having CPU of MediaTek MT7620A ver.2 eco:6
/etc/init.d/mjpg-streamer: device '/dev/video0' does not exist
Collected errors:
* resolve_conffiles: Existing conffile /etc/config/mjpg-streamer is different from the conffile in the new package. The new conffile will be placed at /etc/config/mjpg-streamer-opkg.
That happens when opkg (the software package tool) installs software over an existing one. In essence it comes with a default config file (in your case /etc/config/mjpg-streamer ). You just need to chose whether to keep the oriinal or the one that comes with your package. If your /dev/video0 does not exist make sure that you have kmod-video-uvc (or kmod-video-somethingelse according to your camera) installed. Hope that helps.
Ont thing bro....is can send to my rtmp server in youtube by defalut? Thansk
Hi payloan, again that is something which I haven't tested - so I am afraid I don't know the answer....
@@OneMarcFifty got it. Awesome bro....all the best
Nice
Thank you
starting application
MJPG Streamer Version.: 2.0
ERROR: could not find input plugin
Perhaps you want to adjust the search path with:
# export LD_LIBRARY_PATH=/path/to/plugin/folder
dlopen: Error loading shared library input_uvc.so: No such file or directory
solved- had to reboot router and reconfig path back to www/webcam
how to make mjpg streamer work with two cameras?
Privjet, Sergej, I will have to investigate and shall come back to you.
Thanks you.
Sorry it took a while - in fact, you would need to set up two instances of mjpg-streamer replying on two different ports, for example one on port 8081 and one on port 8082. You could do so by just copying the config files into a second one. Would need to activate a separate service though. The second instance however would need to be tweaked to not use /dev/video0 as input device but rather /dev/video1. So in fact you would need to do this all manually. Alternatively, if you have multiple input plugins then you might access the streams separately like ...:8080/?action=stream_0 an ...:8080/?action=stream_1 but I haven't tested that. Hope that helps.
how to install shinobi on openwrt
Hi Sinung, as far as I know this is not possible. In my case Shinobi is running in a Docker container on a small pc.
what about the dns
Hi Hamza, could you please expand a bit on your question ? What is your concern w/r to dns ?
@@OneMarcFifty Thank you brother man, i'v been trying to publish my webcam stream to the internet, from local network, by using dynamic dns, i can view my cam by the new dns IPAdress:8080, opened a port for it & all, but still can't view from other wifi's there is a couple articles about that, do you have any idea, or probably u can do a tutorial in the fiture, thanks again a lot
Hi Hamza, so are you actually opening a port from the internet to your LAN without a VPN around ? I strongly recommend that you do *not* do that. This is a security concern as anybody in the internet could connect to your webcam and brute force the password or run a DOS attack etc. If you want to check your webcam from the outside world I suggest you run a home VPN.
Spider web
Yep - lots of those under the staircase ;-)