Hi. a correction for 2022, When installing to run as service( service file on RPI4 /lib/systemd/system/motion.service ). Ensure "daemon=off" in the .conf file. Also, ensure the folders /var/log/motion/motion.log has the write permissions for the group 'motion' And ensure the user running the service is part of the usergroup 'motion'
I was experimenting with it a bit and there are several options and problems. 1) USB camera has already data in form of MJPEG stream (if it's not old one with something that has PAL/NTSC resolution and raw data from bayer mask) so you can just take this stream using ffmpeg, copy video from USB without reencoding into matroska stream (RTSP was support was dropped) and use 3rd party small server to convert it into HTTP stream that can be accessed from other computer using VLC or OBS. 2) You can use CSI camera that reads data possibly faster, but you need to compress them on RPI which has not enough CPU power and I failed to find out how to use HW acceleration for that. Even then I don't think it can encode 1920x1080 video at 30fps :(
Superb video my friend. I am waiting for my equipment to arrive and be sure I will be using your video as a guide to get my security system installed. Cheers!!
Hi, if I wish to use the webcam, is a ethernet cable mnadatory or I can use my wifi for headless connectivity of RPi? Like will it work without using ethernet cable?
depends on your level of network knowledge and your router. The short answer is yes it will work on a global scale if you set it that way in your router. Look up how to port forward. Set the port in the configuration file to something besides 8081 (it's a known port and leaving it open to outside intrusion can be risky.), then set the port forwarding in your router to forward to that IP address whatever port you configured. Now you need to know your global IP address, simplest way is to go to google and type in "what's my IP". It'll give you your global IP address. Now you can't be connected to your WiFi, or same network your cam is on or it won't show up. So grab your phone or whatever... go to the library ect... type in your global IP address with the port on the end following a ":" example: 191.xx.393.33:35559 that would be the global IP address 191.xx.393.33 and the port 35559 This may be a little much for you, but do some web searching and it'll clear up the questions I hope. Cheers!
awesome :) it worked.. thank you I have connected a DSLR using a video capture device.. but the streaming is very slow and poor and Full HD resolution. I am using Pi-4 8GB. Any advice?
Hi Anand. I like this video. I have 1 question, buffer rate is not good. how to make it better. is it possible to connect 2 cameras at the same time with different ports.
Awesome Video Tutorial. Liked this project for DIY raspberry's defintely great always. Could there be some suggested web cams , which would recommend... -My intention is to record the videos from multiple cameras to the Hard Drive. -Live streaming is good to have, but storage and quality/clarity plays an important role what you suggest...
@@powerguidissimo1 For anything "real time" (or as close as it gets in a SBC of $55) u need to connect via cabled Ethernet and kill every non-essential process to optimize the performance
Sir it's really great video.. And clean and clear explanation.. Sir I need one favor from you I am Microsoft HD Webcam. I want to activate microphone on Raspberry pi please can u guide to do the setup and how best I can improve my Webcam microphone to remove the background noise also.. Please share me link sir...
Update! It seems the motion software in this tutorial is no longer supported or updated. I refer you to this site- jarlowrey.com/blog/rpi-with-motion - Updated: December 18 2018. So while the instructions work to set up motion software on a Raspberry Pi 3 B+ as of 26 January 2020, this software may be out of date and therefore a security risk. That does not change the fact that his is an excellent tutorial video.
Think you for the video but i have same problem in finding the adress of my machine because i have rpi 2 model B and there is not an ip net adress if i press ifconfig
Hi. Thanks for this video. I have set up the configuration as said in the video but video stream is gray in colour and the page keep on loading and no video is coming. Pls provide me the solution.
Probably the greatest tutorial in the world. I never thought I would be able to do this until this Indian man taught me how
Thank you so much for your video, I tried different things and never worked. Your video worked for me at the first try.
Elegant and educated style of presentation.
Awesome, Thanks!
There's some changes to the legacy version of Buster for 2022, but this guide still gets one up and running.
Hi. a correction for 2022,
When installing to run as service( service file on RPI4 /lib/systemd/system/motion.service ).
Ensure "daemon=off" in the .conf file.
Also, ensure the folders /var/log/motion/motion.log has the write permissions for the group 'motion'
And ensure the user running the service is part of the usergroup 'motion'
hi, how do i change those permisions? i couldnt do it :(
@@CarlosFigueroa using "chmod" on the mentioned folder. And ensuring that the folder owner group is "motion" using "chown". I also googled it :)
@@houtman7815 thnks!
After many other videos, this works great! Thank you for making an up to date walkthrough :)
I was experimenting with it a bit and there are several options and problems.
1) USB camera has already data in form of MJPEG stream (if it's not old one with something that has PAL/NTSC resolution and raw data from bayer mask) so you can just take this stream using ffmpeg, copy video from USB without reencoding into matroska stream (RTSP was support was dropped) and use 3rd party small server to convert it into HTTP stream that can be accessed from other computer using VLC or OBS.
2) You can use CSI camera that reads data possibly faster, but you need to compress them on RPI which has not enough CPU power and I failed to find out how to use HW acceleration for that. Even then I don't think it can encode 1920x1080 video at 30fps :(
Just signed in specially to say, "Thank you very much buddy. Keep it up".
shut up
Superb video my friend. I am waiting for my equipment to arrive and be sure I will be using your video as a guide to get my security system installed. Cheers!!
Can that raspberry pi webcam camera be controlled by another raspberry pi attached with a joystick from the same network?..like a conference camera.?
Well presented video. Straight to the point. It works perfectly - first time!!
Hi, if I wish to use the webcam, is a ethernet cable mnadatory or I can use my wifi for headless connectivity of RPi? Like will it work without using ethernet cable?
Thank you so much!!! You’ve really helped me
Can you set up two webcams with this method? how would you do it these days with this video being 5 years old
Is procedure same for all usb camera which is supporting by raspberry pi?
Good tutorial. Thanks!
Nice work man. Just one question, can you access this address from anywhere in world or you have to be in its local area network only( same modem)?
As per my experience it works on local networks. I am also looking to access it globally, if you find a solution do let me know?
depends on your level of network knowledge and your router. The short answer is yes it will work on a global scale if you set it that way in your router. Look up how to port forward. Set the port in the configuration file to something besides 8081 (it's a known port and leaving it open to outside intrusion can be risky.), then set the port forwarding in your router to forward to that IP address whatever port you configured. Now you need to know your global IP address, simplest way is to go to google and type in "what's my IP". It'll give you your global IP address. Now you can't be connected to your WiFi, or same network your cam is on or it won't show up. So grab your phone or whatever... go to the library ect... type in your global IP address with the port on the end following a ":" example: 191.xx.393.33:35559 that would be the global IP address 191.xx.393.33 and the port 35559
This may be a little much for you, but do some web searching and it'll clear up the questions I hope. Cheers!
Really helpful and an excellent tutorial.
Amazing video, thank you so much sir.
awesome :) it worked.. thank you
I have connected a DSLR using a video capture device.. but the streaming is very slow and poor and Full HD resolution. I am using Pi-4 8GB. Any advice?
Works like a charm. Thank You very much.
Hi Anand. I like this video. I have 1 question, buffer rate is not good. how to make it better. is it possible to connect 2 cameras at the same time with different ports.
Just what I was looking for. Thank you!!!
Awesome Video Tutorial. Liked this project for DIY raspberry's defintely great always.
Could there be some suggested web cams , which would recommend...
-My intention is to record the videos from multiple cameras to the Hard Drive.
-Live streaming is good to have, but storage and quality/clarity plays an important role
what you suggest...
have a look at this
elinux.org/RPi-Cam-Web-Interface
Hello , your video was very useful, i have a question is that work with not usb camera, i use a normal camera , plug on the middle raspberry pi
Can i modify the html page server by adding button and other option
Thank you so much .You helped me.That is a great tutorial for me.
Why the frame rate was so low, I saw you setting it up to more 1K frames / sec.
do you solved this problem?
@@powerguidissimo1 you need to do this
sudo nano /etc/motion/motion.config
search --- stream_maxrate
and change stream_maxrate 100
:D
@@powerguidissimo1 For anything "real time" (or as close as it gets in a SBC of $55) u need to connect via cabled Ethernet and kill every non-essential process to optimize the performance
Sir it's really great video.. And clean and clear explanation.. Sir I need one favor from you I am Microsoft HD Webcam. I want to activate microphone on Raspberry pi please can u guide to do the setup and how best I can improve my Webcam microphone to remove the background noise also.. Please share me link sir...
Hello, have you successfully implemented this?
Nice tutorial Thank you. and it is will be grate if you make one more tutorial about capture image and send it to server. by using raspberry pi.
Sir, how can send video stream globally? If u know please suggest.
do we need to connect our rpi and desktop on which video is to be viewed on same network?
Great. Thanks Anand.
1500 fps is insane.
Update! It seems the motion software in this tutorial is no longer supported or updated. I refer you to this site- jarlowrey.com/blog/rpi-with-motion - Updated: December 18 2018. So while the instructions work to set up motion software on a Raspberry Pi 3 B+ as of 26 January 2020, this software may be out of date and therefore a security risk. That does not change the fact that his is an excellent tutorial video.
i set the framerate to 30 and i think its actually about 0.2 frames per second, but i cant complain, at least it works.
you need to do this
sudo nano /etc/motion/motion.config
search --- stream_maxrate
and change stream_maxrate 100
:D
Sir, whether it will work for 1550nm laser technology
Thanks it helped!
would you share datasheet webcam name?
where is default raspberry pie camera video??of live streaming??
Nice details but can i use your configuration for Picamera module?
yes... :-)
how do you stop it?
sir, webcam in rasberry pi3 and video has to display in windows 10 camera option. is it possible.
but not in vlc media or anything only in windows 10 camera option.
hi! how do i do if i want to have this to watch my 3d printer? im not on same wifi then! thanks for a good video
THANKS!
Thanks a lot!
Thanks for the tutorial ! It works perfectly for me !
how can i make this ip is static
Think you for the video but i have same problem in finding the adress of my machine because i have rpi 2 model B and there is not an ip net adress if i press ifconfig
Hi. Thanks for this video. I have set up the configuration as said in the video but video stream is gray in colour and the page keep on loading and no video is coming. Pls provide me the solution.
Awsome.. Thanks!
Sir do i need camera setup file as its showing unable to open video device
Sir ..is your problem solved?? I am facing the same problem ...could you help me!!
Good video. Can you make a video showing how to stream a webcam via gstreamer
Good one
thank you ......
your accent is so cute ....:)
when I finished it....I can't connect with rasIP.:((( someone can explain for me.:((
perfect, thanks
It is not a live webcam server, because there is no server yet.
Thank u
We should install motion first: sudo apt-get install motion
Be careful, this doesn't work on Windows 10's Edge! Works fine on Firefox
You're right! Wouldn't work using Edge; worked fine on Firefox. Thanks for posting this.
thank s
richard parker
Thank you
thank you