Embedded Electronics Tutorials, Coding and lot more

Beaglebone USB Webcam MJPG streamer installation tutorial

You might be thinking to stream video from your robot to your phone or laptop, or design a surveillance system like CCTV via beagle bone. So this post is for you. Here we will see how to install MJPG streamer on your Beagle bone and see its output on your WiFi enabled phone or other devices.

webcam

I am using Beaglebone Black Rev.C and Logitech C170 usb webcam. You can see a huge list of Raspberry Pi compatible peripherals list here. They are also compatible with BeagleBone. http://elinux.org/RPi_VerifiedPeripherals

Especially for webcams , http://elinux.org/RPi_USB_Webcams

So connect webcam using USB on beaglebone and connect miniusb of Beaglebone to you host PC. Login using SSH.

Then check first if the webcam is detected or not. For thatrun ‘lsusb’ command. and check whether detected or not.

The connect your beaglebone to internet via port forwarding on your Linux host PC.

Now lets install libraries needed to compile mpeg-streamer.

sudo apt-get install g++ curl pkg-config libv4l-dev libjpeg-dev build-essential libssl-dev vim cmake

sudo apt-get install imagemagick

Now we need to download mpeg-streamer.

wget https://github.com/shrkey/mjpg-streamer/raw/master/mjpg-streamer.tar.gz

So we will uncompress it now as it is in the tar.gz extension

tar -xvf ./mjpg-streamer.tar.gz

So now we are ready to compile it. So lets navigate to its folder and compile it.

cd mjpg-streamer

make

sudo make install

Now we are ready to proceed last step.

  ./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so -w ./www"
  MJPG Streamer Version: svn rev:
    i: Using V4L2 device.: /dev/video0
    i: Desired Resolution: 640 x 480
    i: Frames Per Second.: 5
    i: Format............: MJPEG
    o: www-folder-path...: ./www/
    o: HTTP TCP port.....: 8080
    o: username:password.: disabled
    o: commands..........: enabled

Now lets open this video on your browser using following address.

http://192.168.1.100:8080

That is nothing but the port 8080 on your beaglebone IP address assigned by your router.  You can press ‘ctrl+c’ to stop this streaming.

I appreciate and respect the work of ” www.shrkey.com ” for helping me for guidance of this tutorial. His efforts are valuable for this article.

Sharing is caring

36 Comments

  1. It’s amazing for me to have a website, which is valuable in favor of my know-how. thanks admin|

  2. Hipolito Pichard

    obviously like your website but you have to check the spelling on quite a few of your posts. Several of them are rife with spelling problems and I find it very troublesome to tell the truth nevertheless I’ll certainly come back again.

  3. kredit tanpa agunan danamon

    Only wanna input on few general things, The website design is perfect, the content is very great : D.

  4. sewa mobil alphard

    Helpful info. Lucky me I discovered your website accidentally, and I am shocked why this twist of fate did not took place earlier! I bookmarked it.

  5. waralaba minuman coklat

    I’m still learning from you, as I’m improving myself. I certainly love reading all that is written on your site.Keep the tips coming. I loved it!

  6. berita terbaru

    Only wanna comment that you have a very nice web site , I the style it actually stands out.

  7. ÿþS

    Hello! This post could not be written any better! Reading this post reminds me of my previous room mate! He always kept talking about this. I will forward this write-up to him. Pretty sure he will have a good read. Thank you for sharing!

  8. Barton Wallinga

    I was more than happy to search out this web-site.I wished to thanks for your time for this excellent read!! I undoubtedly enjoying each little bit of it and I have you bookmarked to take a look at new stuff you weblog post.

  9. Agen bola

    I’m extremely impressed with your writing skills as well as with the layout to your blog. Is that this a paid subject matter or did you modify it yourself? Either way keep up the excellent high quality writing, it is uncommon to peer a great blog like this one nowadays..

  10. mejavip

    Undeniably imagine that that you said. Your favourite reason seemed to be on the net the easiest thing to understand of. I say to you, I definitely get annoyed while people consider concerns that they just do not recognise about. You controlled to hit the nail upon the top and outlined out the whole thing without having side-effects , people could take a signal. Will likely be again to get more. Thanks

  11. agen sbobet

    Great work! That is the kind of info that should be shared around the net. Disgrace on the search engines for no longer positioning this submit higher! Come on over and discuss with my web site . Thanks =)

  12. Jamison Harned

    yours. It is lovely value enough for me.

  13. deski pcv

    I’d must check with you here. Which is not something I usually do! I enjoy studying a post that will make people think. Also, thanks for permitting me to comment!

  14. ogrodzenie dla koni

    very good submit, i definitely love this website, carry on it

  15. sdorttuii plmnr

    I see something truly special in this web site.

  16. low cost payday loans

    I was suggested this blog by way of my cousin. I’m no longer sure whether this submit is written via him as nobody else understand such exact approximately my difficulty. You are wonderful! Thank you!|

  17. Rozliczenie Podatku Niemieckiego

    You are my breathing in, I own few web logs and rarely run out from to brand.

  18. flood damage restoration alexandria va

    If you want to take a great deal from this paragraph then you have to apply these techniques to your won website.|

  19. ogrodzenia dla koni

    I used to be very happy to find this web-site.I wanted to thanks in your time for this wonderful learn!! I definitely enjoying each little bit of it and I have you bookmarked to take a look at new stuff you blog post.

  20. ogrodzenia

    I am usually to blogging and i really respect your content. The article has actually peaks my interest. I’m going to bookmark your site and maintain checking for brand new information.

  21. ogrodzenia

    You could definitely see your expertise in the paintings you write. The sector hopes for even more passionate writers like you who aren’t afraid to say how they believe. All the time follow your heart.

  22. sdorttuiiplmnr

    Keep functioning ,remarkable job!

  23. ogrodzenia z tworzywa

    fantastic issues altogether, you simply gained a brand new reader. What might you recommend in regards to your submit that you just made a few days in the past? Any positive?

  24. ogrodzenie farmerskie

    you are my inhalation , I own few blogs and sometimes run out from to brand : (.

  25. sztachety z tworzywa

    I got what you mean , regards for putting up.Woh I am happy to find this website through google. “You must pray that the way be long, full of adventures and experiences.” by Constantine Peter Cavafy.

  26. Sztachety z Plastiku

    I would like to thnkx for the efforts you have put in writing this site. I am hoping the same high-grade web site post from you in the upcoming as well. Actually your creative writing skills has inspired me to get my own website now. Actually the blogging is spreading its wings fast. Your write up is a good example of it.

    • Taral Shah

      Thank you so much. Sorry for late reply. I was away a long time for some reasons. Thanks for valuable support.

  27. ogrodzenia pcv

    Its like you learn my thoughts! You appear to understand a lot approximately this, like you wrote the guide in it or something. I think that you just could do with some p.c. to pressure the message home a little bit, but instead of that, that is fantastic blog. A fantastic read. I will certainly be back.

    • Taral Shah

      Thank you so much. Sorry for late reply. I was away a long time for some reasons. Thanks for valuable support.

  28. ogrodzenia

    Nice post. I be taught something more challenging on totally different blogs everyday. It can always be stimulating to learn content from different writers and follow slightly something from their store. I’d want to use some with the content material on my blog whether or not you don’t mind. Natually I’ll give you a hyperlink in your net blog. Thanks for sharing.

  29. Taruhan bola

    I do not even know how I ended up here, but I thought this post was good. I don’t know who you are but certainly you’re going to a famous blogger if you aren’t already 😉 Cheers!

  30. ogrodzenia dla koni

    Unquestionably believe that which you stated. Your favorite justification seemed to be on the web the easiest thing to be aware of. I say to you, I certainly get irked while people consider worries that they plainly don’t know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side-effects , people can take a signal. Will probably be back to get more. Thanks

  31. sztachety PCV

    Some really choice posts on this web site , saved to bookmarks .

  32. good page

    I just want to say I’m very new to blogging and site-building and seriously enjoyed your web page. Likely I’m want to bookmark your website . You absolutely come with remarkable articles. Cheers for sharing your website page.

  33. Going Here

    I just want to say I’m very new to weblog and absolutely enjoyed this blog. Probably I’m planning to bookmark your site . You actually come with remarkable article content. Thanks a lot for revealing your website page.

  34. Alex

    Very informative post, i am regular reader of your blog.
    I noticed that your site is outranked by many other blogs in google’s search
    results. You deserve to be in top-10. I know what can help you, search in google for:

    Mosis’s Tips Outsource The Work

Leave a Reply

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

© 2023 EMBEDDED TWEAKS

Theme by Anders NorenUp ↑

Follow Me

Get the latest posts right delivered in you mailbox

%d bloggers like this: