/2011/11/17/notes-on-mjpg_streamer/

{"item":{"status":"visible","url":"\/2011\/11\/17\/notes-on-mjpg_streamer\/","trash":"","name":"notes-on-mjpg_streamer","parent":"","title":"Notes on mjpg_streamer","date":"2011-11-17 10:46:12","filepath":"posts\/2000774_notes-on-mjpg_streamer.xml.json","type":"post","content":"<h3><span style=\"font-size: 13px;\">Initial config:<\/span><\/h3>\n<p style=\"padding-left: 30px;\">* Ubuntu 10.10 Desktop on a netbook<\/p>\n\n<h4>Step 0: Is your camera working?<\/h4>\n<blockquote>$ ls -i \/dev | grep videoYou should see your camera listed (e.g. video0)<\/blockquote>\n<h4>Step 1: Install the mjpg_streamer Debian package<\/h4>\n<p style=\"padding-left: 30px;\">a)\u00a0Download with your browser: <a href=\"http:\/\/sourceforge.net\/projects\/mjpg-streamer\/files\/\" target=\"_blank\">http:\/\/sourceforge.net\/projects\/mjpg-streamer\/files\/<\/a><\/p>\n<p style=\"padding-left: 30px;\">b) Install the package (just \"open\" the file with the downloader) in your package manager.<\/p>\n<p style=\"padding-left: 30px;\">c) Install more packages:<\/p>\n\n<blockquote>$ sudo apt-get install libjpeg-progs<\/blockquote>\n<h4><!--more-->Step 2: Run it<\/h4>\n<blockquote>$ sudo mjpg_streamer -i \"input_uvc.so -d \/dev\/video0 -y\" -o \"output_http.so -p 8090 -w \/usr\/www\"<\/blockquote>\n<h4>Step 3: View it<\/h4>\n<p style=\"padding-left: 30px;\">a) Open a browser and go to: http:\/\/localhost:8090<\/p>\n<p style=\"padding-left: 30px;\">b) You should see a welcome and info page. \u00a0Click around to see your stream.<\/p>\n\n<h2>Surprises and info:<\/h2>\n<p style=\"padding-left: 30px;\"><em><strong>* Where is mjpg_streamer installed? <\/strong><\/em><\/p>\n<p style=\"padding-left: 30px;\"><strong>Answer: <\/strong><\/p>\n\n<blockquote>\n<p style=\"padding-left: 30px;\">$ which mjpg_streamer<\/p>\n<p style=\"padding-left: 30px;\">\/usr\/bin\/mgjpg_streamer<\/p>\n<\/blockquote>\n<p style=\"padding-left: 30px;\"><em><strong>* Where is output_http.so installed? <\/strong><\/em><\/p>\n<p style=\"padding-left: 30px;\"><strong>Answer:<\/strong><\/p>\n\n<blockquote>\n<p style=\"padding-left: 30px;\">\/usr\/lib<\/p>\n<\/blockquote>\n<p style=\"padding-left: 30px;\"><em><strong>* Where are the web files? \u00a0Did you get one of these messages? <\/strong><\/em><\/p>\n\n<blockquote>\n<p style=\"padding-left: 30px;\">\"400 Not Found!: No file extension found\"<\/p>\n<p style=\"padding-left: 30px;\">\"404 Not Found!: Could not open file\"<\/p>\n<\/blockquote>\n<p style=\"padding-left: 30px;\"><strong>Answer: <\/strong><\/p>\n<p style=\"padding-left: 60px;\">You need to specify the location of mjpg_streamer's www files. \u00a0They are installed in: \/usr\/www<\/p>\n<p style=\"padding-left: 30px;\"><em><strong>* Why am I getting the following error? <\/strong><\/em><\/p>\n\n<blockquote>\n<p style=\"padding-left: 30px;\">\"Unable to set format: Invalid argument<\/p>\n<p style=\"padding-left: 30px;\">Init v4L2 failed !! exit fatal<\/p>\n<p style=\"padding-left: 30px;\">i: init_VideoIn failed\"<\/p>\n<\/blockquote>\n<p style=\"padding-left: 30px;\"><strong>Answer: <\/strong><\/p>\n<p style=\"padding-left: 60px;\">Your camera <a href=\"http:\/\/blog.metamatt.com\/post\/1501411580\/mjpg-streamer-from-openwrt-with-cheap-webcams\" target=\"_blank\">only supports YUV<\/a> and doesn't support MJPG in hardware. \u00a0Tell mjpg_streamer to do the conversion for you with the \"-y\" argument.<\/p>"}}
comments powered by Disqus
 

Lorem Ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

 
This page is best viewed with Firefox 3.5+, Chrome 5+, Safari 5+, Opera 10.6+, IE 9+
Copyright © 2014 8bitrobot.com