Raspberry Pi Camera Streaming

Sdílet
Vložit
  • čas přidán 4. 09. 2024
  • Today's Raspberry Pi project is using the camera module to create a simple video streaming service.
    Miguel Grinberg Camera Stream:
    blog.miguelgrin...

Komentáře • 117

  • @richmelchr
    @richmelchr Před 8 lety

    You have a great teaching voice, keep the tutorials coming!

  • @contractorwolf
    @contractorwolf Před 10 lety

    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)

  • @carlosluna4092
    @carlosluna4092 Před 9 lety

    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.

  • @ytbabbler
    @ytbabbler Před 8 lety

    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.

  • @lucadellantonio817
    @lucadellantonio817 Před 9 lety +3

    When i try the last command it says 'failed to open vchiq instance', what can I do?

  • @BenOgorek
    @BenOgorek Před 10 lety

    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.

  • @jp2503
    @jp2503 Před 9 lety +1

    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?

  • @brasildocara
    @brasildocara Před 10 lety

    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?

  • @mfonobongekanem8615
    @mfonobongekanem8615 Před 9 lety +5

    Hi what did you paste to access the streaming at the last step, can't seem to get it right

    • @tinkmarshino
      @tinkmarshino Před 5 lety

      czcams.com/video/8YUM7jio6dk/video.html

  • @tomeejr
    @tomeejr Před 8 lety +4

    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)

    • @tinkmarshino
      @tinkmarshino Před 5 lety

      czcams.com/video/8YUM7jio6dk/video.html

  • @sparky3489
    @sparky3489 Před 9 lety

    I hope the table top you keep sliding the camera board on is also ESD safe.

  • @real-neo-altair
    @real-neo-altair Před 9 lety

    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.

  • @eoiser4022
    @eoiser4022 Před 10 lety +2

    Thats not anti static bag, its a static shielded bag. Those are two different types of bags

  • @TheUnmercifulOne
    @TheUnmercifulOne Před 10 lety

    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.

  • @sahalasolusiindustri
    @sahalasolusiindustri Před 5 lety

    Hi,,, have you ever did it for high speed motion result from camera ?

  • @DiegoZaks
    @DiegoZaks Před 10 lety

    Awesome tutorial! It might be a dumb question but I'll ask, could you attach a second camera to the second CSi port?

    • @brianjoneil
      @brianjoneil Před 10 lety

      You need a multiplexer. Someone is working on it, look up "IVPort Raspberry Pi Camera Module Multiplexer"

  • @JamesBalazs
    @JamesBalazs Před 10 lety

    +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.

  • @Mr.Coldfire421
    @Mr.Coldfire421 Před 7 lety

    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.

  • @espheroz
    @espheroz Před 9 lety

    is there a way to make the video streaming go smoother?

  • @bmwnut93
    @bmwnut93 Před 9 lety

    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.

  • @shreyanshagarwal9133
    @shreyanshagarwal9133 Před 7 lety

    @humanHardDrive can you do video streaming using usb webcam in raspberry pi.

  • @pholdid
    @pholdid Před 10 lety

    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

  • @tjthegrey
    @tjthegrey Před 9 lety

    do i have to change my router settings to do port forwarding?

  • @karl-johanschmidt9573
    @karl-johanschmidt9573 Před 9 lety

    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?

  • @madsstergaard3518
    @madsstergaard3518 Před 8 lety

    Can you make the stream smother? or does that need another camera?

  • @MarvinMendez
    @MarvinMendez Před 10 lety

    Hello.
    It works slow, do you know something to make it faster?
    Thanks !

  • @gregoriacastellano7603
    @gregoriacastellano7603 Před 10 lety

    WHERE TO BUY THAT KIND
    OF CAMERA IN THE PHILIPPINES?TNX

  • @FOSTERiscool1
    @FOSTERiscool1 Před 9 lety

    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.

    • @alltaken0
      @alltaken0 Před 8 lety

      any news on your project?

  • @jayjohnson600
    @jayjohnson600 Před 7 lety

    Missing the last command to start the mjpg_streamer.

  • @luigimanzella8490
    @luigimanzella8490 Před 8 lety +3

    What is the last command???

    • @tinkmarshino
      @tinkmarshino Před 5 lety

      czcams.com/video/8YUM7jio6dk/video.html

  • @pholdid
    @pholdid Před 10 lety

    The code you copy and pasted is different then the one on the link

  • @yuxiang3147
    @yuxiang3147 Před 8 lety

    Where did you copy and paste all the commands?

  • @lukech1
    @lukech1 Před 8 lety

    still workable? if not can someone post an updated version please?

  • @retep004
    @retep004 Před 10 lety

    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

  • @visitkoushik
    @visitkoushik Před 9 lety

    Very nice

  • @saifaljanaby2975
    @saifaljanaby2975 Před 7 lety

    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

  • @maxwellg1563
    @maxwellg1563 Před 10 lety

    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!!

    • @kgrayallday
      @kgrayallday Před 10 lety

      Please! any help would be greatly appreciated!

  • @nath5834
    @nath5834 Před 9 lety

    could you find a bigger wifi dongle? :)
    Great vid thanks

  • @bigbonede6201
    @bigbonede6201 Před 8 lety

    will this work with a usb webcam?

  • @pholdid
    @pholdid Před 10 lety

    And when I close the SSH, how do I restart that stream?

  • @xMusicJunkiEx801
    @xMusicJunkiEx801 Před 8 lety

    Thanks for the video

  • @Himanshuverma-zx9qd
    @Himanshuverma-zx9qd Před 8 lety +1

    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

    • @lacosta9130
      @lacosta9130 Před 8 lety

      me neither
      have you already found a solution for this problem?
      i guess it has something to do with the stream.html file

  • @alangilman2015
    @alangilman2015 Před 10 lety +2

    kill %1 will also terminate the background task (mjpg_streamer)

  • @stmohir
    @stmohir Před 9 lety

    Done all, and it is taking picture and seams the streaming works,
    yet i get an error:
    server thread() bind(8080) failed
    Help Please!!!!!!!!! :):)

  • @noirth-security
    @noirth-security Před 3 lety

    Yo human, can we see Hyper-V setup guides

  • @cwmhyfryd
    @cwmhyfryd Před 8 lety

    The Rpi Web interface is better with hardly any delay.

  • @TheRohithsai
    @TheRohithsai Před 7 lety

    does it transfer audio at the same time ??

  • @SquidStudios
    @SquidStudios Před 8 lety

    how can i fix the delay/speed it up?

  • @girardaquino
    @girardaquino Před 9 lety

    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

    • @girardaquino
      @girardaquino Před 9 lety

      Girard Aquino ha... nevermind.. got to work... redid the previous step and it worked afterwards... thanks!

    • @user-nr1wj7tw7c
      @user-nr1wj7tw7c Před 9 lety

      can you tell me what is the last line of command to call the mjpg streamer?
      Thank you very much

  • @lesdaica123
    @lesdaica123 Před 10 lety +1

    Couldn't download the streamer 182.zip, link dead??
    Any helps? please!

    • @hiroroong693
      @hiroroong693 Před 10 lety

      sourceforge.net/code-snapshots/svn/m/mj/mjpg-streamer/code/mjpg-streamer-code-182.zip

    • @tcsaqad2579
      @tcsaqad2579 Před 6 lety

      copy this to the terminal github.com/jacksonliam/mjpg-streamer.git

  • @alanmedina518
    @alanmedina518 Před 8 lety

    Hi, how can i do that with rtsp?

  • @misqpl
    @misqpl Před 9 lety +1

    post not found :o(

  • @Zzzzzzzzzzzzzzzzzzzzr
    @Zzzzzzzzzzzzzzzzzzzzr Před 8 lety +1

    why did you need putty for ? im confused?

    • @humanHardDrive
      @humanHardDrive  Před 8 lety

      Putty lets me run a remote console on the raspberry pi, so that I don't have to be physically connected to it.

    • @Zzzzzzzzzzzzzzzzzzzzr
      @Zzzzzzzzzzzzzzzzzzzzr Před 8 lety

      so i take it that is needed for rasberry pi every time ?

    • @trevorstewart3904
      @trevorstewart3904 Před 8 lety

      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

  • @gretaromarsson1803
    @gretaromarsson1803 Před 10 lety

    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!

    • @humanHardDrive
      @humanHardDrive  Před 10 lety

      Check both connectors. It may feel like it's well connected, but it never hurts to try and re-seat it.

    • @gretaromarsson1803
      @gretaromarsson1803 Před 10 lety

      Did not work, but thanks for the tip hHD.

    • @gretaromarsson1803
      @gretaromarsson1803 Před 10 lety

      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.

    • @gretaromarsson1803
      @gretaromarsson1803 Před 10 lety

      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.

  • @chanchingyi2977
    @chanchingyi2977 Před 7 lety

    hi,thank you your tutorial. but i got a problem, it is my raspberry pi camera module will auto stop to stream :-o

  • @Noctis15
    @Noctis15 Před 10 lety

    Is there a way to improve fps?

  • @plinker439
    @plinker439 Před 9 lety

    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).

  • @captainalexminecraft
    @captainalexminecraft Před 9 lety +6

    its libv4l-dev not libv41-dev

  • @helmimuhammadshadiq63
    @helmimuhammadshadiq63 Před 9 lety +1

    what is the last command can you type here the answer?

    • @aels747
      @aels747 Před 9 lety

      i wish i knew! very annoying!!!!!!

    • @user-nr1wj7tw7c
      @user-nr1wj7tw7c Před 9 lety

      same here, can not make it works

    • @stmohir
      @stmohir Před 9 lety

      mjpg_streamer -i "input_file.so" /usr/local/www

    • @user-nr1wj7tw7c
      @user-nr1wj7tw7c Před 9 lety

      Thank you

    • @stmohir
      @stmohir Před 9 lety

      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"

  • @leonardodvr
    @leonardodvr Před 9 lety

    This is the correct one: blog.miguelgrinberg.com/post/how-to-build-and-run-mjpg-streamer-on-the-raspberry-pi

  • @user-nr1wj7tw7c
    @user-nr1wj7tw7c Před 9 lety

    need help for the last line of command, Thank you very much

    • @Noctis15
      @Noctis15 Před 9 lety

      What is it you want to know exactly?

    • @user-nr1wj7tw7c
      @user-nr1wj7tw7c Před 9 lety

      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

    • @Noctis15
      @Noctis15 Před 9 lety

      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.

    • @user-nr1wj7tw7c
      @user-nr1wj7tw7c Před 9 lety

      Thank you for your help, but that command line does not work at all, maybe my way is still wrong.But thanks anyway.

    • @plinker439
      @plinker439 Před 9 lety

      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

  • @darnaiadam
    @darnaiadam Před 9 lety +1

    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.

    • @Dj.julien.b
      @Dj.julien.b Před 9 lety

      It's my also my problem :(

    • @darnaiadam
      @darnaiadam Před 9 lety

      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.

    • @Dj.julien.b
      @Dj.julien.b Před 9 lety

      Ádám Darnai yes thx

  • @oopee1995
    @oopee1995 Před 9 lety

    TIP: If you want to use this when putty is closed, you can install "screen" for your raspberrypi.

  • @Rafael-co5wy
    @Rafael-co5wy Před 6 lety

    404 error after

  • @nummerzweipunktnull
    @nummerzweipunktnull Před 9 lety

    sorry , but it doesn't work

  • @jpmorgan187
    @jpmorgan187 Před 9 lety +1

    pedantic overload

  • @SquidStudios
    @SquidStudios Před 8 lety

    make aint working

  • @mihirpatil8843
    @mihirpatil8843 Před 9 lety

    you gota sub

  • @tcsaqad2579
    @tcsaqad2579 Před 6 lety

    go to git hub to download the library or copy the URL from here
    github.com/jacksonliam/mjpg-streamer.git

  • @tinkmarshino
    @tinkmarshino Před 5 lety

    use a usb microphone plug in for audio... czcams.com/video/8YUM7jio6dk/video.html

  • @_bcd
    @_bcd Před 8 lety

    81kb/s lol i have 18mb😂

  • @davidmg1925
    @davidmg1925 Před 7 lety

    This is simple? haha

  • @SquidStudios
    @SquidStudios Před 8 lety

    whats the last command?

    • @psi3000
      @psi3000 Před 8 lety

      +Squid Studios I cant figure this out either!