Claustro
Posts: 7
Joined: Thu Feb 19, 2015 1:07 am

Mjpg streamer web interface but no stream

Thu Feb 19, 2015 1:22 am

I can see the web interface but I can't see stream . I tested the camera ( windows 3000 hd) with fswebcam and I managed to capture the frames
this is what I did

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install subversion
sudo apt-get install libjpeg8-dev
sudo apt-get install imagemagick
sudo apt-get install libv4l-0
sudo apt-get install libv4l-dev
sudo apt-get install uvcdynctrl
Checked the camera I can see available frame rate and resolution here

Code: Select all

lsusb
uvcdynctrl -f
Compiled and installed mjpeg-streamer

Code: Select all

cd ~
svn co https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer/ mjpg-streamer
cd mjpg-streamer
make USE_LIBV4L2=true clean all
sudo make install
Made a script

Code: Select all

sudo nano /usr/local/bin/streamer800x600.sh
with this inside

Code: Select all

#!/bin/bash
killall mjpg_streamer
/usr/local/bin/mjpg_streamer -i "/usr/local/lib/input_uvc.so -n -f 30 -r 800x600" -o "/usr/local/lib/output_http.so -p 10088 -w /usr/local/www" &
Made the script exec

Code: Select all

sudo chmod +x /usr/local/bin/streamer800x600.sh
If I run the script I don't receive errors and always seems ok but I can't see any stream on localhost:8080 or in VLC http://localhost:8080/?action=stream. checked the stream on raspberry itself and in local network also withoutI don't have any idea how to solve this problem , is there anyone who can help me?
Thank you

Claustro
Posts: 7
Joined: Thu Feb 19, 2015 1:07 am

Re: Mjpg streamer web interface but no stream

Fri Feb 20, 2015 3:55 pm

Anyone?
I am really can't understand where is my mistake.
II can grab single frame using fswebcam , why I cant' see any stream in the mjpgstreamer web page?
Also I can see live stream in motion using this tutorial http://www.instructables.com/id/Raspber ... t-her-up-/

osama_adel
Posts: 7
Joined: Thu Feb 26, 2015 2:06 pm

Re: Mjpg streamer web interface but no stream

Thu Mar 19, 2015 9:49 pm

The same problem here, but it only appeared on Raspberry Pi 2 .. is it the same case as you ?

osama_adel
Posts: 7
Joined: Thu Feb 26, 2015 2:06 pm

Re: Mjpg streamer web interface but no stream

Fri Mar 20, 2015 2:34 am

I found the solution to this problem at last. Someone has forked the repo and fixed the code for us so you can clone the repo on your raspberry and compile the files.

Here is the fixed code repo : https://github.com/SaintGimp/mjpg-streamer

rahdt007
Posts: 3
Joined: Thu Dec 24, 2015 3:28 am

Re: Mjpg streamer web interface but no stream

Thu Dec 24, 2015 3:44 am

Thanks to Osama_adel's comment, i applied those modifications to the source codes so you don't have to do that again.
1) Unzip the attached file
2) Copy all 3 files to /home/pi/mjpg-streamer/plugins/input_uvc

To recompile
cd /home/pi/mjpg-streamer
Sudo make USE_LIBV4L2=true clean all
sudo make install

To start mjpg-streamer
/usr/local/bin/streamer800x600.sh

i modified the content of that file as following because -f 30 caused the program to stop (to much of frames per second)

#!/bin/bash
killall mjpg_streamer
/usr/local/bin/mjpg_streamer -i "/usr/local/lib/input_uvc.so -n -f 5 -r 800x600" -o "/usr/local/lib/output_http.so -p 10088 -w /usr/local/www" &
ModifiedCodes.zip
(14.38 KiB) Downloaded 247 times

Return to “Beginners”