VoCore: MJPG Camera

Prepare:
1. necessary library(openwrt must have video support)
(if you do not know how to compile it, download here packages, or full firmware(no luci):
kmod-video-core_3.14.25-1_ramips_24kec.ipk
kmod-video-uvc_3.14.25-1_ramips_24kec.ipk
kmod-video-videobuf2_3.14.25-1_ramips_24kec.ipk
libjpeg_9a-1_ramips_24kec.ipk
mjpg-streamer_r182-2_ramips_24kec.ipk

copy all of them to vocore:
scp kmod-video-core_3.14.25-1_ramips_24kec.ipk root@192.168.61.1:/tmp/
scp kmod-video-videobuf2_3.14.25-1_ramips_24kec.ipk root@192.168.61.1:/tmp/
scp kmod-video-uvc_3.14.25-1_ramips_24kec.ipk root@192.168.61.1:/tmp/
scp libjpeg_9a-1_ramips_24kec.ipk root@192.168.61.1:/tmp/
scp mjpg-streamer_r182-2_ramips_24kec.ipk root@192.168.61.1:/tmp/

ssh to vocore, install:
opkg install /tmp/kmod-video-core_3.14.25-1_ramips_24kec.ipk
opkg install /tmp/kmod-video-videobuf2_3.14.25-1_ramips_24kec.ipk
opkg install /tmp/kmod-video-uvc_3.14.25-1_ramips_24kec.ipk
opkg install /tmp/libjpeg_9a-1_ramips_24kec.ipk
opkg install /tmp/mjpg-streamer_r182-2_ramips_24kec.ipk

2. one usb mjpg camera. mine get from taobao.com, cost about 12USD.
IMG_0203

3.a vocore, need to connect with USB D+/D- and give the webcam 5V power.
3.b vocore + dock, this is much easier, directly connect to dock usb port.
IMG_0202

Now, run

/usr/bin/mjpg_streamer -i "input_uvc.so -d /dev/video0 -resolution 320x240" -o "output_http.so -www /www/webcam"

(Note: “/etc/init.d/mjpg-streamer start” not working, have to call it directly)
Screen Shot 2014-12-06 at 6.01.35 PM

Try with your browser 🙂 Plan to write a plugin for vohttpd, to make this easier.
http://192.168.61.1:8080/?action=stream

Looks like my webcam is a little short sight…
camear

6 thoughts on “VoCore: MJPG Camera

  1. memory1024

    I have an installation error:

    Collected errors:
    * opkg_install_pkg: Package kmod-video-core md5sum mismatch. Either the opkg or the package index are corrupt. Try ‘opkg update’.
    * opkg_install_cmd: Cannot install package kmod-video-core.

    I think it happened becouse the packages were compiled for another kernel version. Can i install it without compiling? Or can you give me instruction how to compile it, please?

    1. vongervonger Post author

      Download openwrt from git, run make menuconfig, you need to check
      Kernel modules -> USB Support -> kmod-usb-core,kmod-usb-ohci,kmod-usb2
      Kernel modules -> Video Support -> kmod-video-core, kmod-video-uvc,kmod-video-videobuf2
      Multimedia(update feeds first) -> mjpeg-streamer -> Install uvc plugin, Install output http plugin
      Libraries -> libjpeg

      Then call make, you will get ipk files in bin/ramips/packages.

  2. bettocr

    Thank You

    and buy some website where you have shipments to america, hopefully in English or Spanish?

  3. pacman2ebawerpacman2ebawer

    Good afternoon!

    I have VoCoro and 4 UVC Cameras (So shows v4l-info)
    2 Cameras bought on aliexpress (no name)
    2 Cameras: Logitech C510 and Creativ I don’t remember model

    And so a problem in the following if I connect the Chinese cameras that MJPG streamer via the browser simply hangs also all. something is loaded constantly by the page. Happens loads also simply white screen.

    With C510 and a creative all all right. Matter in drivers?

    Still there is C510 Not at once is connected. MJPG also loads in the browser and only after couple of times of reconnections (~ / mjpg_streamer) the camera starts showing the picture. VoCore doesn’t manage to process data?

    P.S. from 32 Mb of a RAM it shows only 16. I start with parameters (/usr/bin/mjpg_streamer – i “input_uvc.so-d/dev/video0-resolution 320×240” – o “output_http.so-www/www/webcam”)

Comments are closed.