Posts: 90
Joined: Tue Dec 09, 2014 7:47 pm

Mjpeg Streamer

Thu Jan 22, 2015 9:58 pm


When I installed Mjpeg-Streamer and start the streamer I get the error message below.
I'm using a Pi Noir camera (the one with the cable directly to the Raspberry B+).

What I would like to do is stream the camera to a website to see it remotely.
What is going wrong? With other things (VLC stream or Raspistill) the camera is working fine.
So the camera works.
So just get the stream with a simple thing on the web, thats all I need..

MJPG Streamer Version: svn rev: Unversioned directory
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format............: MJPEG
ERROR opening V4L interface: No such file or directory
Init v4L2 failed !! exit fatal
i: init_VideoIn failed

Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7453
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Mjpeg Streamer

Thu Jan 22, 2015 10:27 pm

Code: Select all

sudo modprobe bcm2835-v4l2
The V4L2 driver isn't loaded by default. Raspistill doesn't use V4L2 hence no errors. Don't know about VLC.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Posts: 3408
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Mjpeg Streamer

Thu Jan 22, 2015 11:24 pm

How did you install mjpeg Streamer?

Code: Select all

sudo apt-get install subversion libjpeg8-dev \
imagemagick libv4l-0 libv4l-dev
cd ~
svn co mjpg-streamer
cd mjpg-streamer/mjpg-streamer
make USE_LIBV4L2=true clean all
sudo make install

Posts: 90
Joined: Tue Dec 09, 2014 7:47 pm

Re: Mjpeg Streamer

Tue Jan 27, 2015 3:12 pm

That is the trick! Just load the driver with sudo modprobe bcm2835-v4l2 !
When I now load the driver, Motioneye is detecting the camera automatically.

Posts: 17
Joined: Thu Nov 21, 2013 6:53 pm

Re: Mjpeg Streamer

Mon Sep 26, 2016 11:12 pm

R-PI with rpi camera has blank image, though raspistill gets a nice image,
on the other hand on a USB camera works fine.

Return to “Camera board”