INSTALLING MJPG STREAMER ON BEAGLEBONE BLACK:
instructions on getting mjpg-streamer installed on a Beagleboard device is followed with simple commands, are else you can directly download the mjpg streamer folder and u can untar it. With some trial and error i have put together the following steps that will successfully install mjpg-streamer running Ubuntu 13.04 on a Beaglebone Black.
Now before we install any new software, it is a good idea to update opkg:
: opkg update
Download mjpg streamer from:
: wget https://github.com/shrkey/mjpg-streamer/raw/master/mjpg- streamer.tar.gz
Once we have it, we need to uncompress it to its own directory.by using tar command.
: tar -xvf ./mjpg-streamer.tar.gz
COMPILATION STEPS
Do execute following commands in terminal after uncompressing
cd mjpg-streamer
make
sudo make install
TO RUN
With a webcam attached to your Beaglebone Black, and whilst still in the mjpg-streamer directory run the following:
Before booting your beaglebone attach your webcam, else bone wont detect it.
To check whether it is attached you can check with the command
: lsusb
This will list the usb connected devices.
sudo ./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so -w ./www
you should be in mjpg streamer directry so
: cd mjpg-steramer
If it gives error like sudo is unknown,you can execute with super user by using the command
: sudo –s
Even if that fails,you can change the permission of the directory by
: chmod 777 mjpg-streamer
Now you are ready to run it with
: ./mjpg_streamer –I “./input_uvc.so” –o “./output_http.so –w ./www
So your webcam is enabled,to check the video you can see in vlc and even in url
For webpage:
: http://192.168.7.2:8080
Give your beagle bone ip address ,in my case its 192.168.7.2
To check the ipaddress you can use the command
: ifconfig
For vlc
Go to vlan in the given url copy the address and paste in the vlc network stream.then hit play.you are ready to see the stream of video in vlc.
No comments:
Post a Comment