Nice video humanHardDrive, that really puts all the info together nicely. Hitting Ctrl-C together will kill the running process in terminal (instead of having to close the terminal window)
Thanks for the video. I think you missed covering the part where the mjpg_streamer server had to be actually started but I eventually figured that part out. Still, very useful.
If you put & after a command it will run in the background as you noticed. Don't kill the window, just type fg to put it in foreground. If you have many, type jobs and get a list, fg %3 put job 3 in foreground. Damn, it's like unix, not windows.
Camera streaming as advertised! FYI, for some reason the blog post link redirects my browser to the front page of the blog. Wasn't hard to find the article though.
What is necessary when using two cameras through that streaming service? If I wanted to run a night vision and normal camera module through the pi what would I have to do differently? Also can it stream audio if I put in an audio transmitter?
Antistatic bags can be used to wrap the boards when the boards are already in its case and fully connected? About the video ¡¡Thats sweet !!! I want to connect several cameras to a Rasperry, say 5 webcams and stream them, Do you think that is possible?
Hi, can you explain a bit more what happened at the 9:55 mark. How did you interrupt the streaming to enter g_streamer -i "input_file.mmal: and.... how do you start the camera after rebooting ? thanks.... (yes, I'm a noobie)
I dont think the site you posted in video description is the correct one. It goes to Miguel Grinberg website, but there is no instruction on how to setup video stream via raspstill. I am confused.
Is it possible to chain RaspberryPi's together? I'm looking to use up to 8 of them as individual 2 channel Audio/Video recorder modules that will upload to a secured DVR w/HDD or SC storage. The basic idea would be comparable to the setup used in law enforcement vehicles.
+humanHardDrive You should try using sudo aptitude for installing, updating etc... It is easier to use and cleaner than apt-get. You'd probably like it.
Is it possible with this setup to stream the video from the Pi to a wifi laptop without any other hardware? Are all the frames from streaming saved to the SD card or are they deleted? I want to be able to stream for long periods but not save anything.
humanHardDrive The ip adress you type in the browser, that is the ip from the raspberry, right? And also, what is the last command you type when the terminal starts printing continuously?
what if I just want it to stream to a small screen, can I wire it straight from the board, I'm trying to make something like a solid eye from metal gear.
Hi, First of all let me thank You for the tutorial. I´m trying to use it to do my own project (as I'm a noob in this fields), I'm havin an error using the "make" command, can You help me? The command line return me an Error 127. Kind Regards
hi i got the problem in my raspberrypi3 when i connected pi camera and enabled from ifconfig after that I typed the command to record a video the picamera took only first thing after that it 'll not record anything may u help me Best regards
Hey, awesome video! i was just wondering if you had any info on connecting two raspberry pi's in different locations to constantly stream back and forth, kind of like Skype but not Skype! something much simpler, any help would be greatly appreciated!!
hey there... i was following the instructions on miguel's blog but i got the following error... I wonder if you could help. $ make mjpg_streamer input_file.so output_http.so make: *** No rule to make target 'mjpg_streamer'. Stop. and so the next step, i get this: $ sudo cp mjpg_streamer /usr/local/bin cp: cannot stat `mjpg_streamer': No such file or directory
putty is a ssh client. It allows one to login to the raspberry pi remotely from another computer (this is not raspberry pi specific. I'm logged into multiple linux computers right now for work). One could connect to the pi directly with a keyboard, mouse, monitor if they wanted. So an ssh client like putty is not needed, but can be convenient.
Před 7 lety
i couldnt read any of the code because they are coming under youtube bar
The led on my cam only turns on when I connect rasbmc but when I connect raspian it turns off, after I setup raspistill or raspivid it says could not detect any camera. I have done sudo apt-get update & upgrade and enabled the camera in sudo raspi-config but nothing happens at all. Any ideas?? someone, thanks!
It must have had a static shock when I was connecting it to the paspberrypi, my fault, my idiocy, I am going to buy me another one, that should teach me a lesson, always follow the instructions. But thanks for your time.
Got it now, the connector in the front of the camera was unplugged, I am building a house for the pi & raspbicam and used the faulty camera to find the best way to build it properly, then I noticed that the connectors in front of the cam were loose so I pressed it back in place and tested the cam again, and now it is up and working well. now I am going to try to build a time lapse video, can I use 32 Gb usb storage connected with the Raspberry pi to store the time lapse frames?. I want to make a time lapse frames of the weather in my hometown here in Iceland. and hopefully another solar sell raspberry pi with rpi cam in the mountain, inside puffin's hole to see how they race their young puffins from the first day until they fly away on their own. Thanks for everything.
you can use -t 2147483647 to run it for 24 days (or you can loop it with just a few lines script), otherwise raspistill quits after approx 2,5hour (9999999msec).
sorry, got it wrong :( here is the full command: LD_LIBRARY_PATH=./ ./mjpg_streamer -i "input_file.so -f /tmp/stream -n pic.jpg" -o "output_http.so -w ./www"
this video around 9:50, the instructor just copy and paste the last line of command to run the mjpg streamer server in order to show the result on the browser, but I can not see what is the command, can you write it for me please?Thank you for your time
Chen Cui Well I just watched the video which means I cannot properly figure out what he types in without watching the whole video again. But since I've nothing to do with it, i won't do it. I guess the command is something like: g_streamer -i "input_file /usr/local/www" or any sort of it. Maybe it makes sense within the context of the whole video. What I noticed furthermore is that he obviously uses a framework to control the camera. Maybe you should look into this: gstreamer.freedesktop.org/. I need to admit, that I would use another approach which does not use a web browser which embeds the stream. As you can see in this video, the fps are quite low which does not make it useful in my eyes.. If I were you, I'd search through youtube to find other videos using approaches using other 7th layer protocols than HTTP.
Hey Dude, it's a great video, thank you for that, BUT! Last week I could download the mjpeg-stream-code-182.zip from sourceforge webpage, and after that, I had a problem with my PI, so I had to format my disc, and reinstall the raspian. Now, I want to make the mjpeg alive, but after I try to download the zip file, it returns an 404 error. I tried to search after it directly, but I got the same message. Is there any solution to download the package directly, or from an other website? Thank you for your respond.
Problem solved. You have to look at this page: www.geeklee.co.uk/working-the-raspberry-pi-camera-raspbian-motion/ Steps: Install motion -> install motion-mmal -> configure motion -> enjoy. I hope I could help you.
You have a great teaching voice, keep the tutorials coming!
Nice video humanHardDrive, that really puts all the info together nicely. Hitting Ctrl-C together will kill the running process in terminal (instead of having to close the terminal window)
what is the link for the blog with all the code?
Thanks for the video. I think you missed covering the part where the mjpg_streamer server had to be actually started but I eventually figured that part out. Still, very useful.
If you put & after a command it will run in the background as you noticed.
Don't kill the window, just type fg to put it in foreground.
If you have many, type jobs and get a list, fg %3 put job 3 in foreground.
Damn, it's like unix, not windows.
When i try the last command it says 'failed to open vchiq instance', what can I do?
Camera streaming as advertised! FYI, for some reason the blog post link redirects my browser to the front page of the blog. Wasn't hard to find the article though.
What is necessary when using two cameras through that streaming service? If I wanted to run a night vision and normal camera module through the pi what would I have to do differently? Also can it stream audio if I put in an audio transmitter?
Antistatic bags can be used to wrap the boards when the boards are already in its case and fully connected?
About the video ¡¡Thats sweet !!! I want to connect several cameras to a Rasperry, say 5 webcams and stream them, Do you think that is possible?
Hi what did you paste to access the streaming at the last step, can't seem to get it right
czcams.com/video/8YUM7jio6dk/video.html
Hi, can you explain a bit more what happened at the 9:55 mark. How did you interrupt the streaming to enter g_streamer -i "input_file.mmal:
and.... how do you start the camera after rebooting ?
thanks.... (yes, I'm a noobie)
czcams.com/video/8YUM7jio6dk/video.html
I hope the table top you keep sliding the camera board on is also ESD safe.
I dont think the site you posted in video description is the correct one. It goes to Miguel Grinberg website, but there is no instruction on how to setup video stream via raspstill. I am confused.
Thats not anti static bag, its a static shielded bag. Those are two different types of bags
Is it possible to chain RaspberryPi's together? I'm looking to use up to 8 of them as individual 2 channel Audio/Video recorder modules that will upload to a secured DVR w/HDD or SC storage. The basic idea would be comparable to the setup used in law enforcement vehicles.
Hi,,, have you ever did it for high speed motion result from camera ?
Awesome tutorial! It might be a dumb question but I'll ask, could you attach a second camera to the second CSi port?
You need a multiplexer. Someone is working on it, look up "IVPort Raspberry Pi Camera Module Multiplexer"
+humanHardDrive You should try using sudo aptitude for installing, updating etc... It is easier to use and cleaner than apt-get. You'd probably like it.
Good to know.
it's a myth
Does it mean that all the images of stream video is saved somewhere in a directory? I'm afraid it will cost a lot of disk space for me.
is there a way to make the video streaming go smoother?
Is it possible with this setup to stream the video from the Pi to a wifi laptop without any other hardware? Are all the frames from streaming saved to the SD card or are they deleted? I want to be able to stream for long periods but not save anything.
@humanHardDrive can you do video streaming using usb webcam in raspberry pi.
Everything worked until I got to the last code. The camera was working but when I put the last code in it didn't stream
do i have to change my router settings to do port forwarding?
humanHardDrive The ip adress you type in the browser, that is the ip from the raspberry, right?
And also, what is the last command you type when the terminal starts printing continuously?
Can you make the stream smother? or does that need another camera?
Hello.
It works slow, do you know something to make it faster?
Thanks !
WHERE TO BUY THAT KIND
OF CAMERA IN THE PHILIPPINES?TNX
what if I just want it to stream to a small screen, can I wire it straight from the board, I'm trying to make something like a solid eye from metal gear.
any news on your project?
Missing the last command to start the mjpg_streamer.
What is the last command???
czcams.com/video/8YUM7jio6dk/video.html
The code you copy and pasted is different then the one on the link
Where did you copy and paste all the commands?
still workable? if not can someone post an updated version please?
Hi, First of all let me thank You for the tutorial.
I´m trying to use it to do my own project (as I'm a noob in this fields), I'm havin an error using the "make" command, can You help me?
The command line return me an Error 127.
Kind Regards
Very nice
hi
i got the problem in my raspberrypi3 when i connected pi camera and enabled from ifconfig after that I typed the command to record a video
the picamera took only first thing after that it 'll not record anything
may u help me
Best regards
Hey, awesome video! i was just wondering if you had any info on connecting two raspberry pi's in different locations to constantly stream back and forth, kind of like Skype but not Skype! something much simpler, any help would be greatly appreciated!!
Please! any help would be greatly appreciated!
could you find a bigger wifi dongle? :)
Great vid thanks
will this work with a usb webcam?
And when I close the SSH, how do I restart that stream?
Thanks for the video
after entering all commands successfully when i am opening browser and entering my raspberry ip:8080 it doesnt stream or i can say page is not opening
me neither
have you already found a solution for this problem?
i guess it has something to do with the stream.html file
kill %1 will also terminate the background task (mjpg_streamer)
Done all, and it is taking picture and seams the streaming works,
yet i get an error:
server thread() bind(8080) failed
Help Please!!!!!!!!! :):)
Yo human, can we see Hyper-V setup guides
The Rpi Web interface is better with hardly any delay.
does it transfer audio at the same time ??
how can i fix the delay/speed it up?
hey there... i was following the instructions on miguel's blog but i got the following error... I wonder if you could help.
$ make mjpg_streamer input_file.so output_http.so
make: *** No rule to make target 'mjpg_streamer'. Stop.
and so the next step, i get this:
$ sudo cp mjpg_streamer /usr/local/bin
cp: cannot stat `mjpg_streamer': No such file or directory
Girard Aquino ha... nevermind.. got to work... redid the previous step and it worked afterwards... thanks!
can you tell me what is the last line of command to call the mjpg streamer?
Thank you very much
Couldn't download the streamer 182.zip, link dead??
Any helps? please!
sourceforge.net/code-snapshots/svn/m/mj/mjpg-streamer/code/mjpg-streamer-code-182.zip
copy this to the terminal github.com/jacksonliam/mjpg-streamer.git
Hi, how can i do that with rtsp?
post not found :o(
why did you need putty for ? im confused?
Putty lets me run a remote console on the raspberry pi, so that I don't have to be physically connected to it.
so i take it that is needed for rasberry pi every time ?
putty is a ssh client. It allows one to login to the raspberry pi remotely from another computer (this is not raspberry pi specific. I'm logged into multiple linux computers right now for work). One could connect to the pi directly with a keyboard, mouse, monitor if they wanted. So an ssh client like putty is not needed, but can be convenient.
i couldnt read any of the code because they are coming under youtube bar
The led on my cam only turns on when I connect rasbmc but when I connect raspian it turns off, after I setup raspistill or raspivid it says could not detect any camera. I have done sudo apt-get update & upgrade and enabled the camera in sudo raspi-config but nothing happens at all. Any ideas?? someone, thanks!
Check both connectors. It may feel like it's well connected, but it never hurts to try and re-seat it.
Did not work, but thanks for the tip hHD.
It must have had a static shock when I was connecting it to the paspberrypi, my fault, my idiocy, I am going to buy me another one, that should teach me a lesson, always follow the instructions. But thanks for your time.
Got it now, the connector in the front of the camera was unplugged, I am building a house for the pi & raspbicam and used the faulty camera to find the best way to build it properly, then I noticed that the connectors in front of the cam were loose so I pressed it back in place and tested the cam again, and now it is up and working well. now I am going to try to build a time lapse video, can I use 32 Gb usb storage connected with the Raspberry pi to store the time lapse frames?. I want to make a time lapse frames of the weather in my hometown here in Iceland. and hopefully another solar sell raspberry pi with rpi cam in the mountain, inside puffin's hole to see how they race their young puffins from the first day until they fly away on their own. Thanks for everything.
hi,thank you your tutorial. but i got a problem, it is my raspberry pi camera module will auto stop to stream :-o
Is there a way to improve fps?
you can use -t 2147483647 to run it for 24 days (or you can loop it with just a few lines script), otherwise raspistill quits after approx 2,5hour (9999999msec).
its libv4l-dev not libv41-dev
what is the last command can you type here the answer?
i wish i knew! very annoying!!!!!!
same here, can not make it works
mjpg_streamer -i "input_file.so" /usr/local/www
Thank you
sorry, got it wrong :(
here is the full command:
LD_LIBRARY_PATH=./ ./mjpg_streamer -i "input_file.so -f /tmp/stream -n pic.jpg" -o "output_http.so -w ./www"
This is the correct one: blog.miguelgrinberg.com/post/how-to-build-and-run-mjpg-streamer-on-the-raspberry-pi
need help for the last line of command, Thank you very much
What is it you want to know exactly?
this video around 9:50, the instructor just copy and paste the last line of command to run the mjpg streamer server in order to show the result on the browser, but I can not see what is the command, can you write it for me please?Thank you for your time
Chen Cui Well I just watched the video which means I cannot properly figure out what he types in without watching the whole video again.
But since I've nothing to do with it, i won't do it.
I guess the command is something like: g_streamer -i "input_file /usr/local/www" or any sort of it. Maybe it makes sense within the context of the whole video.
What I noticed furthermore is that he obviously uses a framework to control the camera. Maybe you should look into this: gstreamer.freedesktop.org/.
I need to admit, that I would use another approach which does not use a web browser which embeds the stream. As you can see in this video, the fps are quite low which does not make it useful in my eyes.. If I were you, I'd search through youtube to find other videos using approaches using other 7th layer protocols than HTTP.
Thank you for your help, but that command line does not work at all, maybe my way is still wrong.But thanks anyway.
Chen Cui
1. Starting raspistill - You got this already, but anyway:
raspistill --nopreview -w 1920 -h 1080 -q 5 -o ./tmp/stream/pic.jpg -tl 5000 -t 2147483647 -th 0:0:0 & disown
./tmp/stream/pic.jpg
Hey Dude, it's a great video, thank you for that, BUT! Last week I could download the mjpeg-stream-code-182.zip from sourceforge webpage, and after that, I had a problem with my PI, so I had to format my disc, and reinstall the raspian. Now, I want to make the mjpeg alive, but after I try to download the zip file, it returns an 404 error. I tried to search after it directly, but I got the same message. Is there any solution to download the package directly, or from an other website? Thank you for your respond.
It's my also my problem :(
Problem solved. You have to look at this page: www.geeklee.co.uk/working-the-raspberry-pi-camera-raspbian-motion/
Steps: Install motion -> install motion-mmal -> configure motion -> enjoy. I hope I could help you.
Ádám Darnai yes thx
TIP: If you want to use this when putty is closed, you can install "screen" for your raspberrypi.
404 error after
sorry , but it doesn't work
pedantic overload
make aint working
you gota sub
go to git hub to download the library or copy the URL from here
github.com/jacksonliam/mjpg-streamer.git
use a usb microphone plug in for audio... czcams.com/video/8YUM7jio6dk/video.html
81kb/s lol i have 18mb😂
This is simple? haha
whats the last command?
+Squid Studios I cant figure this out either!