1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Webcam installation and streaming

Discussion in 'Tomato Firmware' started by mfayiz, Dec 16, 2013.

  1. mfayiz

    mfayiz Reformed Router Member

  2. leandroong

    leandroong Addicted to LI Member

    download extras kernel from shibby the ff:
    1. input-core.ko
    2. uvcvideo.ko
    3. v4l2-common.ko
    4. v4l2-int-device.ko
    5. videodev.ko

    to load, use something like this, saved as camera.sh
    Code:
    #!/bin/sh
    
    if [ -z "`lsmod | grep videodev`" ]; then
        insmod /opt/camera-modules/r1/input-core.ko
        insmod /opt/camera-modules/r1/videodev.ko
        insmod /opt/camera-modules/r1/v4l2-common.ko
        insmod /opt/camera-modules/r1/v4l2-int-device.ko
        insmod /opt/camera-modules/r1/uvcvideo.ko
        break
    fi
    
    screen -dmS BTRouter2 mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480 -f 25" -o "output_http.so -p 8080 -w /opt/share/www"
    
    Note: you need optware "mjpg-streamer" installed also.
     
    Last edited: Dec 16, 2013
  3. mfayiz

    mfayiz Reformed Router Member

    Thanks for your response, I really appreciated. in order to load the above kernal (ko) files, which module I have to download from shibby, could direct me.

    thanks again
     
  4. leandroong

    leandroong Addicted to LI Member

  5. mfayiz

    mfayiz Reformed Router Member

    thanks.

    after all the try, I am getting below error, could you help me.


    root@RT-N16:/opt# mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480 -f 25" -o "output_http.so -p 80
    80 -w /opt/share/www"
    MJPG Streamer Version: svn rev: wyeksportowane
    i: Using V4L2 device.: /dev/video0
    i: Desired Resolution: 640 x 480
    i: Frames Per Second.: 25
    i: Format............: MJPEG
    ERROR opening V4L interface: No such file or directory
    Init v4L2 failed !! exit fatal
    i: init_VideoIn failed

    ======================
    my webcam is Microsoft LifeCam HD-6000, BTW is this webcam is supported by mjpeg_streamer?
     
    Last edited: Dec 20, 2013
  6. leandroong

    leandroong Addicted to LI Member

    Most likely not bec of "ERROR opening V4L..".
    reference site: http://wiki.openwrt.org/doc/howto/webcam
    Note: Try getting another

    Also, you need to turn on webcam for it to be detected. I press it on while booting. Anyway, re-run it, press on, then run the script again.
     
    Last edited: Dec 20, 2013
  7. leandroong

    leandroong Addicted to LI Member

  8. brueggma

    brueggma Networkin' Nut Member

    With version 115 of Shibby, my usb camera no longer functions now either. Interesting. I should try one of the older versions..

    Dec 21 12:33:40 tivorouter user.notice root: Running: /opt/etc/init.d/S98camera-streamer
    Dec 21 12:33:42 tivorouter user.err kernel: input_core: exports duplicate symbol input_unregister_handle (owned by kernel)
    Dec 21 12:33:42 tivorouter user.info kernel: Linux video capture interface: v2.00
    Dec 21 12:33:42 tivorouter user.info kernel: usbcore: registered new interface driver uvcvideo
    Dec 21 12:33:42 tivorouter user.info kernel: USB Video Class driver (v0.1.0)
    Dec 21 12:33:42 tivorouter user.info MJPG-streamer [1166]: starting application
    Dec 21 12:33:42 tivorouter user.info MJPG-streamer [1166]: MJPG Streamer Version: svn rev: wyeksportowane
    Dec 21 12:33:42 tivorouter user.info MJPG-streamer [1166]: Using V4L2 device.: /dev/video0
    Dec 21 12:33:42 tivorouter user.info MJPG-streamer [1166]: Desired Resolution: 640 x 480
    Dec 21 12:33:42 tivorouter user.info MJPG-streamer [1166]: Frames Per Second.: 10
    Dec 21 12:33:42 tivorouter user.info MJPG-streamer [1166]: Format............: MJPEG
    Dec 21 12:33:42 tivorouter user.info MJPG-streamer [1166]: init_VideoIn failed
     
  9. leandroong

    leandroong Addicted to LI Member

    Solution: Don't use AIO, mega and ?. BTGui-VPN will work for sure.
     

Share This Page