21 comments on “Live Streaming RaspberryPi Camera

  1. Thanks so much for this.
    After a week of extreme learning and getting lost in the mazes of googling, your helpful website pointed me in the right direction…the question mark before //dev got me confused but then I just added another slash and BINGO. Thanks again.

  2. I’ve used your tutorial to broadcast via network with an wifi adapter but there is a big big big lag. The images are received with a 3-4 secconds delay, did you know why is this happening?

    • Well, first of all you need to understand that Raspberry PI is a low-medium performance device, delay is expected of course even a few seconds, besides that its important to take on count the client you are using as well as your network, I’ve used Android client and it has a 7 – 9 secs delay, however, VLC has only a couple of seconds, but as I said is expected to have delays because the RPI is doing alot of work with such a limited hardware specs… Regards!

      • While yes you need to take those into account, you also need to realise that the raspberry pi has a dedicated hardware GPU that’s capable of doing playing full hd(1080p) videos.

        The real problem I suspect is that vlc is streaming a stream
        raspivid -o - -t 0 -hf -w 800 -h 400 -fps 24 opens up a stream then vlc is then told to read that stream and stream it again.

  3. Hi,

    thanks for your great tutorial!
    I have got a question, sorry if it sounds dumb: How can I stop the streaming from the console? I am absolutely not an expert, but somehow it seems like there is an endless loop which I cannot quit. Using CTRL+C and the like does not work, because keyboard input is ineffective due to a constantly updated warning-prompt (‘main mux warning: late buffer for mux input [12345]‘).
    I would be glad if you would give me a hint…

    Thanks in advance!

    • Well usually ctrl+c is enough, but if you are having problems, you should be able to open another console, run “ps -ux”, find your process ‘pid’ and then “kill -9 ‘pid’”

    • Indeed, you can see the stream from a different network if you change your router’s configuration and forward the “port” you are using so it becomes visible from outside, that way all you have to do to get the video from another network is this: “public.ip.address:[port]“.

      Regards!

  4. Thank u very much Martin Cazares..

    But one thing that worries me is the delay from Raspberry pi to android phone.. the delay which iam facing is around 13 to 15 sec.. Can u please help me out in reducing delay..

    And also i tried using VLC player in my android phone where i am getting a delay of less than 1sec.. so is there any Technic to make my streaming faster..

  5. I’ve been looking for ways to fix the Delay on the VLC and the better I can get is 2 – 3 seconds, I’m about to create a new tutorial to do, P2P live camera, I’ve been able to get just a few “ms” with it, BUT is not real streaming is actually socket to socket…

    Regards!

  6. Great tutorial. If I feed audio into the PI via the mic socket can you point me to the method of including it in the stream with the video please.

    Regards

    al

  7. Hi Martin,
    I’m going to set streaming as soon as I get my camera.
    However…. I would also like to stream sound as well – a simple broadcast system.

    Please would you have any idea if this is possible using VLC? If so could you provide a few pointers on how it can be achieved.

    Regards

    Al

  8. I’ve used your tutorial to broadcast via network with an wifi adapter but there is a big lag in streaming. The images are received with more than 3-4 secconds delay, did you know why is this happening?
    How to overcome this problem?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>