Webcam video surveillance via mjpg-streamer entware

If you own a webcam from this list than you can attach it to the AsusWRT routers usb port and see in real time images from it, like babyroom, garage, courtyard...

It's only for mipsel devices like RT-N16, RT-N66U, RT-AC66U...

We need a usb-flash formatted EXT2 or a usb-hdd formated EXT3, may not work on FAT32 or NTFS.

Download custom firmware from here
Go to firmware upgrade page and upload normaly like a stock one
Install Entware from here
Login to router with putty terminal and paste this commands:

opkg update
opkg upgrade
opkg install mjpg-streamer
/opt/etc/init.d/S96mjpg-streamer stop
wget -c -O /opt/share/www/webcam/videomod.sh http://goo.gl/tD4Q1p
chmod a+rx /opt/share/www/webcam/videomod.sh
wget -c -O /opt/tmp/uvc_modules_2.6.22.19-378.50b2-mipsel.tar http://goo.gl/goAIjc
cd /
tar -zxf /opt/tmp//uvc_modules_2.6.22.19-378.50b2-mipsel.tar
/opt/share/www/webcam/videomod.sh load
/opt/etc/init.d/S96mjpg-streamer start

Go to a web browser and type: 192.168.1.1:3000/stream_simple.html
You can change resolution, fps, port...

opkg install nano
/opt/etc/init.d/S96mjpg-streamer stop
nano /opt/etc/init.d/S96mjpg-streamer

If you want to enable password login, add -c username:password right after webcam:

Before:

mjpg_streamer -b -i "input_uvc.so -r 320x240 -f 5" -o "output_http.so -p 3000 -w /opt/share/www/webcam"

After:

mjpg_streamer -b -i "input_uvc.so -r 320x240 -f 5" -o "output_http.so -p 3000 -w /opt/share/www/webcam -c DeSiReDUsErNaMe:DeSiReDPaSsWoRd"

• Save with CTRL-O / Enter / and exit with CTRL-X

If you want to access the webcam from wan, we have to add the next  rule to firewall-start scripts for opening port 3000

nano /jffs/scripts/firewall-start

Add this lines

#!/bin/sh
iptables -I INPUT -p tcp --destination-port 3000 -j ACCEPT

• Save with CTRL-O / Enter / and exit with CTRL-X

chmod a+rx /jffs/scripts/firewall-start
sh /jffs/scripts/firewall-start

Start mjpg server

/opt/etc/init.d/S96mjpg-streamer start

Now just type your_wan_ip adress:3000/stream_simple.html in browser and should see your webcam
If you have dynamic ip, better set a dynamic dns 192.168.1.1/Advanced_ASUSDDNS_Content.asp

Tested successfully with Logitech C270 webcam
c270

Video HERE...
youtube

  • Rearden

    I have a logitech C920 which should be able to do h264 natively. How would I modify this to stream h264 instead of mjpg? The bandwidth is quite high with mjpg.

    • I'm not sure if possible, the cpu on this router can't handle it.

      • Rearden

        But the c920 should be able to do h264 on the camera so that the router does not have to do the encoding. I just don't know how to make it do so.

  • Daniel Jonasson

    I´m not able to view http://192.168.1.1:3000/stream_simple.html
    Like Dixie I´m stuck at last line.
    /opt/etc/init.d/S96mjpg-streamer start
    starting mjpg_streamer...
    /opt/etc/init.d/S96mjpg-streamer: line 46: yes: not found
    enabling daemon modedypen@RT-AC68U-19D8:/# forked to background (2342)
    Asus AC68

  • Liviu Avram

    Hy,

    I have an Asus N56u running with Padavan firmware and I recently installed mjpg-stramer with a Logitech C310 webcam.

    All works well until I stop S96mjpg-streamer. After that, I can no longer start the stream, I always get this error:

    Feb 1 13:09:12 MJPG-streamer [1142]: starting application

    Feb 1 13:09:12 MJPG-streamer [1142]: enabling daemon mode

    Feb 1 13:09:12 MJPG-streamer [1144]: MJPG Streamer Version: svn rev: Unversioned directory

    Feb 1 13:09:12 MJPG-streamer [1144]: Using V4L2 device.: /dev/video0

    Feb 1 13:09:12 MJPG-streamer [1144]: Desired Resolution: 640 x 480

    Feb 1 13:09:12 MJPG-streamer [1144]: Frames Per Second.: 15

    Feb 1 13:09:12 MJPG-streamer [1144]: Format............: MJPEG

    Feb 1 13:09:12 MJPG-streamer [1144]: www-folder-path...: /opt/share/www/webcam/

    Feb 1 13:09:12 MJPG-streamer [1144]: HTTP TCP port.....: 3000

    Feb 1 13:09:12 MJPG-streamer [1144]: username:password.: disabled

    Feb 1 13:09:12 MJPG-streamer [1144]: commands..........: enabled

    Feb 1 13:09:12 MJPG-streamer [1144]: starting input plugin input_uvc.so

    Feb 1 13:09:12 MJPG-streamer [1144]: starting output plugin: output_http.so (ID: 00)

    Feb 1 13:09:12 kernel: xhci-hcd xhci-hcd: Trying to add endpoint 0x81 without dropping it.

    Feb 1 13:09:12 kernel: usb 1-2: Not enough bandwidth for altsetting 2

    Feb 1 13:09:12 MJPG-streamer [1144]: Error grabbing frames

    In order to fix the issue I restart the router and then I start the mjpg-streamer agan and it works.

    Any idea why am I getting this error and how can I fix it without rebooting the router? maybe I also need to stop another process along with mjpg-streamer?

    Thanks alot

    • Not tested on Padavan firmware, try to unload modules
      /opt/share/www/webcam/videomod.sh unload

      • Liviu Avram

        I tried unload and then load videomod.sh, get the same error

      • Output from
        uname -r
        free
        mount
        df

        Also, how do you restart mjpg-streamer?

      • Liviu Avram

        /opt/home/admin # uname -r
        3.4.110
        /opt/home/admin # free
        total used free shared buffers
        Mem: 126372 115124 11248 0 1792
        -/+ buffers: 113332 13040
        Swap: 0 0 0
        /opt/home/admin # mount
        rootfs on / type rootfs (rw)
        /dev/root on / type squashfs (ro,relatime)
        proc on /proc type proc (rw,relatime)
        sysfs on /sys type sysfs (rw,relatime)
        usbfs on /proc/bus/usb type usbfs (rw,relatime)
        tmpfs on /dev type tmpfs (rw,relatime,size=8k)
        tmpfs on /etc type tmpfs (rw,noatime,size=2048k)
        tmpfs on /home type tmpfs (rw,relatime,size=1024k)
        tmpfs on /media type tmpfs (rw,relatime,size=8k)
        tmpfs on /mnt type tmpfs (rw,relatime,size=8k)
        tmpfs on /tmp type tmpfs (rw,relatime,size=24576k)
        tmpfs on /var type tmpfs (rw,relatime,size=4096k)
        devpts on /dev/pts type devpts (rw,relatime,mode=600)
        /dev/sda1 on /media/KINGSTON type ext4 (rw,noatime,data=ordered)
        /dev/sda1 on /opt type ext4 (rw,noatime,data=ordered)
        /opt/home/admin # df
        Filesystem 1K-blocks Used Available Use% Mounted on
        rootfs 8832 8832 0 100% /
        /dev/root 8832 8832 0 100% /
        tmpfs 8 0 8 0% /dev
        tmpfs 2048 204 1844 10% /etc
        tmpfs 1024 0 1024 0% /home
        tmpfs 8 0 8 0% /media
        tmpfs 8 0 8 0% /mnt
        tmpfs 24576 76 24500 0% /tmp
        tmpfs 4096 204 3892 5% /var
        /dev/sda1 14235510 10756582 2719582 80% /media/KINGSTON
        /dev/sda1 14235510 10756582 2719582 80% /opt
        /opt/home/admin #

      • :)
        You are very lucky because it works at least this way, this modules are for kernel 2.22.19 and you have 3.4.110, should't work, I guess you have modules integrated in firmware.
        Try to remove /opt/share/www/webcam/videomod.sh load, reboot router and see if is starting, if yes, 2.6.22 modules are useless.
        Anyway, try to report @Padavan about your issue.
        Bye

      • Liviu Avram

        Ok, many thanks for your replies, I will try starting the server without loading videomod.sh and see if it works after stopping the server. If not, I will wait for an update for my kernel.
        Bye

      • Liviu Avram

        For restarting the streamer service I use the two commands:

        /opt/etc/init.d/S96mjpg-streamer stop
        /opt/etc/init.d/S96mjpg-streamer start

        /opt/home/admin # /opt/etc/init.d/S96mjpg-streamer start
        starting mjpg_streamer...
        enabling daemon modeforked to background (1438)
        /opt/home/admin # /opt/etc/init.d/S96mjpg-streamer stop
        stopping mjpg_streamer...
        killall: mjpg_streamer: no process killed
        /opt/home/admin #

  • Oh no! I 'upgraded' my n66 to a AC68 and just realized it is ARM! I've used your webcam script for quite a while and love it. I can be up and running on a new device in seconds. Is there a blocker to getting your scripts modified for ARM devices? Is this something I can work out myself? I'm just dangerous enough to get in trouble, but certainly don't have the chops to do it from scratch.
    thanks!

  • Csaba Benesch

    Hi! support for ac87u entware?

  • Knight_of_Light

    Good day !

    Could you renew links in your tutorial ? Because i want to download videomod.sh script from your link
    wget -c -O /opt/share/www/webcam/videomod.sh http://goo.gl/NZ2rCB
    and system get 404 error

    Thank you!

    • Links updates, waiting feedback

      • Art

        Hi
        There is 416 error with thу same line:

        admin@ASUS:/tmp/home/root# wget -c -O /opt/share/www/webcam/videomod.sh http://goo.gl/tD4Q1p
        Connecting to goo.gl (173.194.32.130:80)
        Connecting to files.hqt.ro (84.200.213.121:80)
        wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable
        admin@ASUS:/tmp/home/root#

      • File is already there, proceed with next step

      • Art

        Thanks. But next problem is:

        -sh: /opt/share/www/webcam/videomod.sh: not found

      • Script fixed, try:

        rm /opt/share/www/webcam/videomod.sh

        wget -c -O /opt/share/www/webcam/videomod.sh http://goo.gl/tD4Q1p
        chmod a+rx /opt/share/www/webcam/videomod.sh
        wget -c -O /opt/tmp/uvc_modules_2.6.22.19-378.50b2-mipsel.tar http://goo.gl/goAIjc
        cd /
        tar -zxf /opt/tmp//uvc_modules_2.6.22.19-378.50b2-mipsel.tar
        /opt/share/www/webcam/videomod.sh load
        /opt/etc/init.d/S96mjpg-streamer start

      • Knight_of_Light

        Scripts downloadinstall without problems
        Thank you @disqus_uPQKXZJQWg:disqus

  • Sasha

    Hi.
    Another nice tutorial. Thanks.
    But I have an AC56U - is it possible to do this on a ARM device too? (without installing debian?)
    ((And if I have to do it with debian - won't this consume more resources? It seems to me that installing debian introduces an extra layer, or do I understand that wrong? (sorry for being such a linux noob :)
    S.

    • Yes, it's possible, mjpg-streamer is in arm repository but you have to build and load proper uvc modules.
      Debian will not consume more resources than optware or entware.

  • dixie

    i followed each and every step a number of times but still not working. i'm using a4tech pk-635k and RT-N16.

    last line...

    enabling daemon modeadmin@RT-N16-D849:/# forked to background (1070)

    • Which firmware version?
      Post output from:
      lsusb
      dmesg
      ls -l /dev/video*

      • dixie

        Firmware:376.49_5

        ASUSWRT-Merlin RT-N16_3.0.0.4 Fri Jan 9 05:46:46 UTC 2015
        admin@RT-N16-D849:/tmp/home/root# lsusb
        Bus 001 Device 003: ID 093a:2700
        Bus 001 Device 002: ID 152d:2329
        Bus 002 Device 001: ID 1d6b:0001
        Bus 001 Device 001: ID 1d6b:0002

        admin@RT-N16-D849:/tmp/home/root# dmesg
        start_kernel
        Linux version 2.6.22.19 (root@asus) (gcc version 4.2.4) #1 Fri Jan 9 00:48:28 EST 2015
        CPU revision is: 00019740
        Determined physical RAM map:
        memory: 07fff000 @ 00000000 (usable)
        On node 0 totalpages: 32767
        Normal zone: 255 pages used for memmap
        Normal zone: 0 pages reserved
        Normal zone: 32512 pages, LIFO batch:7
        HighMem zone: 0 pages used for memmap
        Built 1 zonelists. Total pages: 32512
        Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
        Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
        Primary data cache 32kB, 4-way, linesize 32 bytes.
        Synthesized TLB refill handler (20 instructions).
        Synthesized TLB load handler fastpath (32 instructions).
        Synthesized TLB store handler fastpath (32 instructions).
        Synthesized TLB modify handler fastpath (31 instructions).
        PID hash table entries: 512 (order: 9, 2048 bytes)
        CPU: BCM4716 rev 1 pkg 10 at 480 MHz
        Using 240.000 MHz high precision timer.
        console [ttyS0] enabled
        Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
        Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
        Memory: 126136k/131068k available (2535k kernel code, 4780k reserved, 504k data, 164k init, 0k highmem)
        Calibrating delay loop... 239.20 BogoMIPS (lpj=1196032)
        Mount-cache hash table entries: 512
        NET: Registered protocol family 16
        PCI: Using membase 8000000
        PCI: Initializing host
        PCI: Reset RC
        PCI: no core
        PCI: Fixing up bus 0
        PCI/PCIe coreunit 0 is set to bus 1.
        PCI: Fixing up bridge
        PCI: Setting latency timer of device 0000:01:00.0 to 64
        PCI: Fixing up bridge
        PCI: Setting latency timer of device 0000:01:00.1 to 64
        PCI: Enabling device 0000:01:00.1 (0004 -> 0006)
        PCI: Fixing up bus 1
        NET: Registered protocol family 2
        Time: MIPS clocksource has been installed.
        IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
        TCP established hash table entries: 4096 (order: 3, 32768 bytes)
        TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
        TCP: Hash tables configured (established 4096 bind 4096)
        TCP reno registered
        squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
        io scheduler noop registered (default)
        HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
        N_HDLC line discipline registered.
        Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
        serial8250: ttyS0 at MMIO 0xb8000300 (irq = 8) is a 16550A
        PPP generic driver version 2.4.2
        MPPE/MPPC encryption/compression module registered
        NET: Registered protocol family 24
        PPPoL2TP kernel driver, V0.18.3
        PPTP driver version 0.8.5
        Physically mapped flash: Found 1 x16 devices at 0x0 in 8-bit bank
        Amd/Fujitsu Extended Query Table at 0x0040
        Physically mapped flash: CFI does not contain boot bank location. Assuming top.
        number of CFI chips: 1
        cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
        Flash device: 0x2000000 at 0x1c000000
        Creating 5 MTD partitions on "Physically mapped flash":
        0x00000000-0x00040000 : "pmon"
        0x00040000-0x01fe0000 : "linux"
        0x001723e8-0x01ae0000 : "rootfs"
        0x01fe0000-0x02000000 : "nvram"
        0x01ae0000-0x01fe0000 : "jffs2"
        Found an serial flash with 0 0KB blocks; total size 0MB
        sflash: found no supported devices
        dev_nvram_init: _nvram_init
        _nvram_init: allocat header: 2281406464, size= 32768
        sdhci: Secure Digital Host Controller Interface driver
        sdhci: Copyright(c) Pierre Ossman
        u32 classifier
        OLD policer on
        Netfilter messages via NETLINK v0.30.
        nf_conntrack version 0.5.0 (1024 buckets, 8192 max)
        ipt_time loading
        ip_tables: (C) 2000-2006 Netfilter Core Team
        net/ipv4/netfilter/tomato_ct.c [Jan 9 2015 00:48:26]
        ipt_account 0.1.21 : Piotr Gasidlo , http://code.google.com/p/ipt-account/
        NET: Registered protocol family 1
        NET: Registered protocol family 10
        ip6_tables: (C) 2000-2006 Netfilter Core Team
        NET: Registered protocol family 17
        802.1Q VLAN Support v1.8 Ben Greear
        All bugs added by David S. Miller
        VFS: Mounted root (squashfs filesystem) readonly.
        Freeing unused kernel memory: 164k freed
        Warning: unable to open an initial console.
        ctf: module license 'Proprietary' taints kernel.
        et_module_init: passivemode set to 0x0
        PCI: Setting latency timer of device 0000:00:02.0 to 64
        eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.110.27.20012
        wl_module_init: passivemode set to 0x0
        PCI: Setting latency timer of device 0000:00:01.0 to 64
        eth1: Broadcom BCM4329 802.11 Wireless Controller 5.110.27.20012
        Algorithmics/MIPS FPU Emulator v1.5
        JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
        usbcore: registered new interface driver usbfs
        usbcore: registered new interface driver hub
        usbcore: registered new device driver usb
        SCSI subsystem initialized
        Initializing USB Mass Storage driver...
        usbcore: registered new interface driver usb-storage
        USB Mass Storage support registered.
        ufsd: driver (8.6 U86_r187446_b122, LBD=ON, acl, ioctl, rwm, ws, sd) loaded at c0249000
        NTFS (with native replay) support included
        optimized: speed
        Build_for__asus_n66u_2011-10-27_U86_r187446_b122

        ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
        PCI: Setting latency timer of device 0000:00:04.1 to 64
        ehci_hcd 0000:00:04.1: EHCI Host Controller
        ehci_hcd 0000:00:04.1: new USB bus registered, assigned bus number 1
        ehci_hcd 0000:00:04.1: EHCI Fastpath: New EHCI driver starting
        ehci_hcd 0000:00:04.1: irq 5, io mem 0x18004000
        ehci_hcd 0000:00:04.1: USB 0.0 started, EHCI 1.00
        usb usb1: configuration #1 chosen from 1 choice
        hub 1-0:1.0: USB hub found
        hub 1-0:1.0: 2 ports detected
        ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
        PCI: Setting latency timer of device 0000:00:04.0 to 64
        ohci_hcd 0000:00:04.0: OHCI Host Controller
        ohci_hcd 0000:00:04.0: new USB bus registered, assigned bus number 2
        ohci_hcd 0000:00:04.0: irq 5, io mem 0x18009000
        usb usb2: configuration #1 chosen from 1 choice
        hub 2-0:1.0: USB hub found
        hub 2-0:1.0: 2 ports detected
        usbcore: registered new interface driver usblp
        drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
        usb 1-1: new high speed USB device using ehci_hcd and address 2
        usb 1-1: configuration #1 chosen from 1 choice
        usb-storage: Quirks match for vid 152d pid 2329: 8020
        scsi0 : SCSI emulation for USB Mass Storage devices
        usb 1-2: new high speed USB device using ehci_hcd and address 3
        usb 1-2: configuration #1 chosen from 1 choice
        usbcore: registered new interface driver asix
        usbcore: registered new interface driver cdc_ether
        usbcore: registered new interface driver rndis_host
        cdc_ncm: 14-Mar-2012
        usbcore: registered new interface driver cdc_ncm
        usbcore: registered new interface driver cdc_wdm
        usbcore: registered new interface driver qmi_wwan
        cdc_mbim: loaded
        usbcore: registered new interface driver cdc_mbim
        scsi 0:0:0:0: Direct-Access ST500LT0 12-9WS142 0001 PQ: 0 ANSI: 2 CCS
        sd 0:0:0:0: [sda] 976773168 512-byte hardware sectors (500108 MB)
        sd 0:0:0:0: [sda] Write Protect is off
        sd 0:0:0:0: [sda] Mode Sense: 28 00 00 00
        sd 0:0:0:0: [sda] Assuming drive cache: write through
        sd 0:0:0:0: [sda] Assuming drive cache: write through
        sda: sda1
        sd 0:0:0:0: [sda] Attached SCSI disk
        sd 0:0:0:0: Attached scsi generic sg0 type 0
        kjournald starting. Commit interval 5 seconds
        EXT3 FS on sda1, internal journal
        EXT3-fs: mounted filesystem with ordered data mode.
        br0: starting userspace STP failed, staring kernel STP
        vlan1: add 33:33:00:00:00:01 mcast address to master interface
        vlan1: add 01:00:5e:00:00:01 mcast address to master interface
        vlan1: dev_set_promiscuity(master, 1)
        device eth0 entered promiscuous mode
        device vlan1 entered promiscuous mode
        device eth1 entered promiscuous mode
        br0: port 2(eth1) entering listening state
        br0: port 1(vlan1) entering listening state
        br0: port 2(eth1) entering learning state
        br0: port 1(vlan1) entering learning state
        vlan1: add 33:33:00:00:00:02 mcast address to master interface
        br0: topology change detected, propagating
        br0: port 2(eth1) entering forwarding state
        br0: topology change detected, propagating
        br0: port 1(vlan1) entering forwarding state
        vlan1: del 33:33:00:00:00:02 mcast address from vlan interface
        vlan1: del 33:33:00:00:00:02 mcast address from master interface
        vlan1: del 01:00:5e:00:00:01 mcast address from vlan interface
        vlan1: del 01:00:5e:00:00:01 mcast address from master interface
        vlan1: del 33:33:00:00:00:01 mcast address from vlan interface
        vlan1: del 33:33:00:00:00:01 mcast address from master interface
        br0: port 1(vlan1) entering disabled state
        vlan1: dev_set_promiscuity(master, 1)
        vlan1: add 01:00:5e:00:00:01 mcast address to master interface
        vlan1: add 33:33:00:00:00:02 mcast address to master interface
        vlan1: add 33:33:00:00:00:01 mcast address to master interface
        br0: port 1(vlan1) entering listening state
        br0: port 1(vlan1) entering learning state
        br0: topology change detected, propagating
        br0: port 1(vlan1) entering forwarding state
        nf_conntrack_rtsp v0.6.21 loading
        nf_nat_rtsp v0.6.21 loading
        eth1: received packet with own address as source address
        Adding 524280k swap on swap. Priority:-1 extents:138 across:533892k
        Linux video capture interface: v2.00
        uvcvideo: Found UVC 1.00 device USB2.0_Camera (093a:2700)
        input: USB2.0_Camera as /class/input/input0
        usbcore: registered new interface driver uvcvideo
        USB Video Class driver (v0.1.0)

        admin@RT-N16-D849:/tmp/home/root# ls -l /dev/video*
        crw-r--r-- 1 admin root 81, 0 Feb 20 00:43 /dev/video0

      • You have to update firmware, modules are for v378.50

      • dixie

        same problem. still won't display.

        admin@RT-N16-D849:/# lsusb
        Bus 001 Device 004: ID 093a:2700
        Bus 001 Device 002: ID 152d:2329
        Bus 002 Device 001: ID 1d6b:0001
        Bus 001 Device 001: ID 1d6b:0002

        admin@RT-N16-D849:/# dmesg
        start_kernel
        Linux version 2.6.22.19 (root@asus) (gcc version 4.2.4) #1 Fri Feb 6 20:46:46 EST 2015
        CPU revision is: 00019740
        Determined physical RAM map:
        memory: 07fff000 @ 00000000 (usable)
        On node 0 totalpages: 32767
        Normal zone: 255 pages used for memmap
        Normal zone: 0 pages reserved
        Normal zone: 32512 pages, LIFO batch:7
        HighMem zone: 0 pages used for memmap
        Built 1 zonelists. Total pages: 32512
        Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
        Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
        Primary data cache 32kB, 4-way, linesize 32 bytes.
        Synthesized TLB refill handler (20 instructions).
        Synthesized TLB load handler fastpath (32 instructions).
        Synthesized TLB store handler fastpath (32 instructions).
        Synthesized TLB modify handler fastpath (31 instructions).
        PID hash table entries: 512 (order: 9, 2048 bytes)
        CPU: BCM4716 rev 1 pkg 10 at 480 MHz
        Using 240.000 MHz high precision timer.
        console [ttyS0] enabled
        Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
        Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
        Memory: 126136k/131068k available (2535k kernel code, 4780k reserved, 504k data, 164k init, 0k highmem)
        Calibrating delay loop... 239.20 BogoMIPS (lpj=1196032)
        Mount-cache hash table entries: 512
        NET: Registered protocol family 16
        PCI: Using membase 8000000
        PCI: Initializing host
        PCI: Reset RC
        PCI: no core
        PCI: Fixing up bus 0
        PCI/PCIe coreunit 0 is set to bus 1.
        PCI: Fixing up bridge
        PCI: Setting latency timer of device 0000:01:00.0 to 64
        PCI: Fixing up bridge
        PCI: Setting latency timer of device 0000:01:00.1 to 64
        PCI: Enabling device 0000:01:00.1 (0004 -> 0006)
        PCI: Fixing up bus 1
        NET: Registered protocol family 2
        Time: MIPS clocksource has been installed.
        IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
        TCP established hash table entries: 4096 (order: 3, 32768 bytes)
        TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
        TCP: Hash tables configured (established 4096 bind 4096)
        TCP reno registered
        squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
        io scheduler noop registered (default)
        HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
        N_HDLC line discipline registered.
        Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
        serial8250: ttyS0 at MMIO 0xb8000300 (irq = 8) is a 16550A
        PPP generic driver version 2.4.2
        MPPE/MPPC encryption/compression module registered
        NET: Registered protocol family 24
        PPPoL2TP kernel driver, V0.18.3
        PPTP driver version 0.8.5
        Physically mapped flash: Found 1 x16 devices at 0x0 in 8-bit bank
        Amd/Fujitsu Extended Query Table at 0x0040
        Physically mapped flash: CFI does not contain boot bank location. Assuming top.
        number of CFI chips: 1
        cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
        Flash device: 0x2000000 at 0x1c000000
        Creating 5 MTD partitions on "Physically mapped flash":
        0x00000000-0x00040000 : "pmon"
        0x00040000-0x01fe0000 : "linux"
        0x001723e4-0x011e0000 : "rootfs"
        0x01fe0000-0x02000000 : "nvram"
        0x011e0000-0x01fe0000 : "jffs2"
        Found an serial flash with 0 0KB blocks; total size 0MB
        sflash: found no supported devices
        dev_nvram_init: _nvram_init
        _nvram_init: allocat header: 2281406464, size= 32768
        sdhci: Secure Digital Host Controller Interface driver
        sdhci: Copyright(c) Pierre Ossman
        u32 classifier
        OLD policer on
        Netfilter messages via NETLINK v0.30.
        nf_conntrack version 0.5.0 (1024 buckets, 8192 max)
        ipt_time loading
        ip_tables: (C) 2000-2006 Netfilter Core Team
        net/ipv4/netfilter/tomato_ct.c [Feb 6 2015 20:46:45]
        ipt_account 0.1.21 : Piotr Gasidlo , http://code.google.com/p/ipt-account/
        NET: Registered protocol family 1
        NET: Registered protocol family 10
        ip6_tables: (C) 2000-2006 Netfilter Core Team
        NET: Registered protocol family 17
        802.1Q VLAN Support v1.8 Ben Greear
        All bugs added by David S. Miller
        VFS: Mounted root (squashfs filesystem) readonly.
        Freeing unused kernel memory: 164k freed
        Warning: unable to open an initial console.
        ctf: module license 'Proprietary' taints kernel.
        et_module_init: passivemode set to 0x0
        PCI: Setting latency timer of device 0000:00:02.0 to 64
        eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.110.27.20012
        wl_module_init: passivemode set to 0x0
        PCI: Setting latency timer of device 0000:00:01.0 to 64
        eth1: Broadcom BCM4329 802.11 Wireless Controller 5.110.27.20012
        Algorithmics/MIPS FPU Emulator v1.5
        JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
        usbcore: registered new interface driver usbfs
        usbcore: registered new interface driver hub
        usbcore: registered new device driver usb
        SCSI subsystem initialized
        Initializing USB Mass Storage driver...
        usbcore: registered new interface driver usb-storage
        USB Mass Storage support registered.
        ufsd: driver (8.6 U86_r187446_b122, LBD=ON, acl, ioctl, rwm, ws, sd) loaded at c0249000
        NTFS (with native replay) support included
        optimized: speed
        Build_for__asus_n66u_2011-10-27_U86_r187446_b122

        ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
        PCI: Setting latency timer of device 0000:00:04.1 to 64
        ehci_hcd 0000:00:04.1: EHCI Host Controller
        ehci_hcd 0000:00:04.1: new USB bus registered, assigned bus number 1
        ehci_hcd 0000:00:04.1: EHCI Fastpath: New EHCI driver starting
        ehci_hcd 0000:00:04.1: irq 5, io mem 0x18004000
        ehci_hcd 0000:00:04.1: USB 0.0 started, EHCI 1.00
        usb usb1: configuration #1 chosen from 1 choice
        hub 1-0:1.0: USB hub found
        hub 1-0:1.0: 2 ports detected
        ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
        PCI: Setting latency timer of device 0000:00:04.0 to 64
        ohci_hcd 0000:00:04.0: OHCI Host Controller
        ohci_hcd 0000:00:04.0: new USB bus registered, assigned bus number 2
        ohci_hcd 0000:00:04.0: irq 5, io mem 0x18009000
        usb usb2: configuration #1 chosen from 1 choice
        hub 2-0:1.0: USB hub found
        hub 2-0:1.0: 2 ports detected
        usbcore: registered new interface driver usblp
        drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
        usb 1-1: new high speed USB device using ehci_hcd and address 2
        usb 1-1: configuration #1 chosen from 1 choice
        usb-storage: Quirks match for vid 152d pid 2329: 8020
        scsi0 : SCSI emulation for USB Mass Storage devices
        usb 2-2: new full speed USB device using ohci_hcd and address 2
        usb 2-2: configuration #1 chosen from 1 choice
        usbcore: registered new interface driver asix
        usbcore: registered new interface driver cdc_ether
        usbcore: registered new interface driver rndis_host
        cdc_ncm: 14-Mar-2012
        usbcore: registered new interface driver cdc_ncm
        usbcore: registered new interface driver cdc_wdm
        usbcore: registered new interface driver qmi_wwan
        cdc_mbim: loaded
        usbcore: registered new interface driver cdc_mbim
        scsi 0:0:0:0: Direct-Access ST500LT0 12-9WS142 0001 PQ: 0 ANSI: 2 CCS
        sd 0:0:0:0: [sda] 976773168 512-byte hardware sectors (500108 MB)
        sd 0:0:0:0: [sda] Write Protect is off
        sd 0:0:0:0: [sda] Mode Sense: 28 00 00 00
        sd 0:0:0:0: [sda] Assuming drive cache: write through
        sd 0:0:0:0: [sda] Assuming drive cache: write through
        sda: sda1
        sd 0:0:0:0: [sda] Attached SCSI disk
        sd 0:0:0:0: Attached scsi generic sg0 type 0
        usbcore: registered new interface driver usbserial
        drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
        usbcore: registered new interface driver usbserial_generic
        drivers/usb/serial/usb-serial.c: USB Serial Driver core
        drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
        option 2-2:1.0: GSM modem (1-port) converter detected
        usb 2-2: GSM modem (1-port) converter now attached to ttyUSB0
        usbcore: registered new interface driver option
        drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.2
        br0: starting userspace STP failed, staring kernel STP
        vlan1: add 33:33:00:00:00:01 mcast address to master interface
        vlan1: add 01:00:5e:00:00:01 mcast address to master interface
        vlan1: dev_set_promiscuity(master, 1)
        device eth0 entered promiscuous mode
        device vlan1 entered promiscuous mode
        EXT3-fs: starting recovery.
        kjournald starting. Commit interval 5 seconds
        EXT3 FS on sda1, internal journal
        EXT3-fs: recovery complete.
        EXT3-fs: mounted filesystem with ordered data mode.
        device eth1 entered promiscuous mode
        br0: port 2(eth1) entering listening state
        br0: port 1(vlan1) entering listening state
        br0: port 2(eth1) entering learning state
        br0: port 1(vlan1) entering learning state
        vlan1: add 33:33:00:00:00:02 mcast address to master interface
        br0: topology change detected, propagating
        br0: port 2(eth1) entering forwarding state
        br0: topology change detected, propagating
        br0: port 1(vlan1) entering forwarding state
        Adding 524280k swap on /opt/swap. Priority:-1 extents:134 across:535196k
        vlan1: del 33:33:00:00:00:02 mcast address from vlan interface
        vlan1: del 33:33:00:00:00:02 mcast address from master interface
        vlan1: del 01:00:5e:00:00:01 mcast address from vlan interface
        vlan1: del 01:00:5e:00:00:01 mcast address from master interface
        vlan1: del 33:33:00:00:00:01 mcast address from vlan interface
        vlan1: del 33:33:00:00:00:01 mcast address from master interface
        br0: port 1(vlan1) entering disabled state
        vlan1: dev_set_promiscuity(master, 1)
        vlan1: add 01:00:5e:00:00:01 mcast address to master interface
        vlan1: add 33:33:00:00:00:02 mcast address to master interface
        vlan1: add 33:33:00:00:00:01 mcast address to master interface
        br0: port 1(vlan1) entering listening state
        vlan2: add 33:33:00:00:00:02 mcast address to master interface
        vlan2: add 33:33:00:00:00:01 mcast address to master interface
        vlan2: add 01:00:5e:00:00:01 mcast address to master interface
        br0: port 1(vlan1) entering learning state
        br0: topology change detected, propagating
        br0: port 1(vlan1) entering forwarding state
        nf_conntrack_rtsp v0.6.21 loading
        nf_nat_rtsp v0.6.21 loading
        eth1: received packet with own address as source address
        Linux video capture interface: v2.00
        usbcore: registered new interface driver uvcvideo
        USB Video Class driver (v0.1.0)
        usb 2-2: USB disconnect, address 2
        option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
        option 2-2:1.0: device disconnected
        usbcore: deregistering interface driver option
        drivers/usb/serial/usb-serial.c: USB Serial deregistering driver GSM modem (1-port)
        usbcore: deregistering interface driver usbserial_generic
        drivers/usb/serial/usb-serial.c: USB Serial deregistering driver generic
        usbcore: deregistering interface driver usbserial
        usb 1-2: new high speed USB device using ehci_hcd and address 4
        usb 1-2: configuration #1 chosen from 1 choice
        uvcvideo: Found UVC 1.00 device USB2.0_Camera (093a:2700)
        input: USB2.0_Camera as /class/input/input0

        admin@RT-N16-D849:/# ls -l /dev/video*
        crw-r--r-- 1 admin root 81, 0 Feb 20 18:43 /dev/video0

        last line:
        admin@RT-N16-D849:/# /opt/etc/init.d/S96mjpg-streamer start
        starting mjpg_streamer...
        enabling daemon modeforked to background (765)
        e

      • It's all ok, what exactly don't work?

      • dixie

        webpage not available it says. nothing happens when i click this 192.168.1.1:3000/stream_simple.html

      • Try with another web browser, also post here output from
        lsmod
        &
        top
        wait 10 seconds
        exit with CTRL-C

      • dixie

        @tehashx

        here are the results

        admin@RT-N16-D849:/tmp/home/root# lsmod
        Module Size Used by Tainted: P
        uvcvideo 72640 0
        input_core 28848 2 uvcvideo
        v4l2_int_device 3168 0
        v4l2_common 16384 0
        videodev 39840 1 uvcvideo
        nf_nat_sip 4416 0
        nf_conntrack_sip 9024 1 nf_nat_sip
        nf_nat_h323 7296 0
        nf_conntrack_h323 49984 1 nf_nat_h323
        nf_nat_rtsp 5520 0
        nf_conntrack_rtsp 7040 1 nf_nat_rtsp
        nf_nat_ftp 2816 0
        nf_conntrack_ftp 7968 1 nf_nat_ftp
        ip6table_mangle 1984 0
        ip6t_LOG 7680 0
        ip6table_filter 1888 1
        cdc_mbim 6144 0
        qmi_wwan 11808 0
        cdc_wdm 12000 2 cdc_mbim,qmi_wwan
        cdc_ncm 13776 1 cdc_mbim
        rndis_host 6592 0
        cdc_ether 5600 1 rndis_host
        asix 17088 0
        usbnet 18896 6 cdc_mbim,qmi_wwan,cdc_ncm,rndis_host,cdc_ether,asix
        usblp 16304 0
        ohci_hcd 21520 0
        ehci_hcd 45248 0
        ufsd 350192 0
        vfat 11840 0
        fat 56112 1 vfat
        ext2 68512 0
        ext3 137088 1
        jbd 62112 1 ext3
        mbcache 7280 2 ext2,ext3
        usb_storage 46528 1
        sg 31552 0
        sd_mod 27584 2
        scsi_wait_scan 960 0
        scsi_mod 105696 4 usb_storage,sg,sd_mod,scsi_wait_scan
        usbcore 149360 14 uvcvideo,cdc_mbim,qmi_wwan,cdc_wdm,cdc_ncm,rndis_host,cdc_ether,asix,usbnet,usblp,ohci_hcd,ehci_hcd,usb_storage
        jffs2 121424 1
        zlib_inflate 15040 1 jffs2
        zlib_deflate 21552 1 jffs2
        nf_nat_pptp 2592 0
        nf_conntrack_pptp 6000 1 nf_nat_pptp
        nf_nat_proto_gre 2128 1 nf_nat_pptp
        nf_conntrack_proto_gre 4128 1 nf_conntrack_pptp
        wl 2902768 0
        igs 18736 1 wl
        emf 22880 2 wl,igs
        et 51296 0
        ctf 23056 0
        admin@RT-N16-D849:/tmp/home/root# top
        Mem: 124472K used, 1980K free, 0K shrd, 2004K buff, 90572K cached
        CPU: 0.0% usr 0.0% sys 0.0% nic 54.5% idle 45.4% io 0.0% irq 0.0% sirq
        Load average: 0.40 0.22 0.16 1/58 1162
        PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
        1162 1158 admin R 1432 1.1 0 0.0 top
        93 2 admin SW< 0 0.0 0 0.0 [mtdblockd]
        454 1 admin S 19248 15.2 0 0.0 transmission-daemon -g /opt/etc/tr
        539 538 admin S N 7008 5.5 0 0.0 minidlna -f /etc/minidlna.conf -R
        534 1 admin S 7008 5.5 0 0.0 minidlna -f /etc/minidlna.conf -R
        538 534 admin S 7008 5.5 0 0.0 minidlna -f /etc/minidlna.conf -R
        1140 530 admin S 6132 4.8 0 0.0 /usr/sbin/smbd -D -s /etc/smb.conf
        530 1 admin S 6020 4.7 0 0.0 /usr/sbin/smbd -D -s /etc/smb.conf
        527 1 admin S 5820 4.6 0 0.0 nmbd -D -s /etc/smb.conf
        395 1 admin S 4424 3.5 0 0.0 watchdog
        1 0 admin S 4384 3.4 0 0.0 /sbin/init noinitrd
        361 1 admin S 4376 3.4 0 0.0 /sbin/wanduck
        423 1 admin S 4376 3.4 0 0.0 usbled
        590 1 admin S 4376 3.4 0 0.0 ntp
        373 1 admin S 4376 3.4 0 0.0 wpsaide
        596 1 admin S 4376 3.4 0 0.0 disk_monitor
        399 395 admin S 4376 3.4 0 0.0 ots
        147 1 admin S 4368 3.4 0 0.0 console
        379 1 admin S 4020 3.1 0 0.0 httpd
        372 1 admin S 3896 3.0 0 0.0 /bin/wps_monitor
        Mem: 124436K used, 2016K free, 0K shrd, 2008K buff, 90492K cached
        CPU: 1.3% usr 1.3% sys 0.0% nic 94.2% idle 1.3% io 0.3% irq 1.1% sirq
        Load average: 0.36 0.22 0.16 2/58 1162
        PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
        454 1 admin S 19248 15.2 0 2.1 transmission-daemon -g /opt/etc/tr
        1162 1158 admin R 1432 1.1 0 0.4 top
        1156 364 admin S 1172 0.9 0 0.4 dropbear -p 22 -j -k
        539 538 admin S N 7008 5.5 0 0.0 minidlna -f /etc/minidlna.conf -R
        534 1 admin S 7008 5.5 0 0.0 minidlna -f /etc/minidlna.conf -R
        538 534 admin S 7008 5.5 0 0.0 minidlna -f /etc/minidlna.conf -R
        1140 530 admin S 6132 4.8 0 0.0 /usr/sbin/smbd -D -s /etc/smb.conf
        530 1 admin S 6020 4.7 0 0.0 /usr/sbin/smbd -D -s /etc/smb.conf
        527 1 admin S 5820 4.6 0 0.0 nmbd -D -s /etc/smb.conf
        395 1 admin S 4424 3.5 0 0.0 watchdog
        1 0 admin S 4384 3.4 0 0.0 /sbin/init noinitrd
        361 1 admin S 4376 3.4 0 0.0 /sbin/wanduck
        423 1 admin S 4376 3.4 0 0.0 usbled
        590 1 admin S 4376 3.4 0 0.0 ntp
        596 1 admin S 4376 3.4 0 0.0 disk_monitor
        373 1 admin S 4376 3.4 0 0.0 wpsaide
        399 395 admin S 4376 3.4 0 0.0 ots
        147 1 admin S 4368 3.4 0 0.0 console
        379 1 admin S 4020 3.1 0 0.0 httpd
        372 1 admin S 3896 3.0 0 0.0 /bin/wps_monitor
        Mem: 124128K used, 2324K free, 0K shrd, 1988K buff, 90120K cached
        CPU: 1.5% usr 1.5% sys 0.0% nic 84.2% idle 10.7% io 0.0% irq 1.7% sirq
        Load average: 0.33 0.21 0.16 2/58 1162
        PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
        454 1 admin S 19248 15.2 0 2.7 transmission-daemon -g /opt/etc/tr
        395 1 admin S 4424 3.5 0 0.6 watchdog
        539 538 admin S N 7008 5.5 0 0.0 minidlna -f /etc/minidlna.conf -R
        534 1 admin S 7008 5.5 0 0.0 minidlna -f /etc/minidlna.conf -R
        538 534 admin S 7008 5.5 0 0.0 minidlna -f /etc/minidlna.conf -R
        1140 530 admin S 6132 4.8 0 0.0 /usr/sbin/smbd -D -s /etc/smb.conf
        530 1 admin S 6020 4.7 0 0.0 /usr/sbin/smbd -D -s /etc/smb.conf
        527 1 admin S 5820 4.6 0 0.0 nmbd -D -s /etc/smb.conf
        1 0 admin S 4384 3.4 0 0.0 /sbin/init noinitrd
        361 1 admin S 4376 3.4 0 0.0 /sbin/wanduck
        423 1 admin S 4376 3.4 0 0.0 usbled
        590 1 admin S 4376 3.4 0 0.0 ntp
        373 1 admin S 4376 3.4 0 0.0 wpsaide
        596 1 admin S 4376 3.4 0 0.0 disk_monitor
        399 395 admin S 4376 3.4 0 0.0 ots
        147 1 admin S 4368 3.4 0 0.0 console
        379 1 admin S 4020 3.1 0 0.0 httpd
        372 1 admin S 3896 3.0 0 0.0 /bin/wps_monitor
        508 1 admin S 2200 1.7 0 0.0 u2ec
        510 509 admin S 2200 1.7 0 0.0 u2ec
        Mem: 124152K used, 2300K free, 0K shrd, 1988K buff, 90180K cached
        CPU: 0.9% usr 0.3% sys 0.0% nic 96.4% idle 0.7% io 0.1% irq 1.1% sirq
        Load average: 0.31 0.21 0.16 2/58 1162
        PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
        454 1 admin S 19248 15.2 0 1.1 transmission-daemon -g /opt/etc/tr
        1162 1158 admin R 1432 1.1 0 0.2 top
        215 2 admin SW< 0 0.0 0 0.2 [usb-storage]
        539 538 admin S N 7008 5.5 0 0.0 minidlna -f /etc/minidlna.conf -R
        534 1 admin S 7008 5.5 0 0.0 minidlna -f /etc/minidlna.conf -R
        538 534 admin S 7008 5.5 0 0.0 minidlna -f /etc/minidlna.conf -R
        1140 530 admin S 6132 4.8 0 0.0 /usr/sbin/smbd -D -s /etc/smb.conf
        530 1 admin S 6020 4.7 0 0.0 /usr/sbin/smbd -D -s /etc/smb.conf
        527 1 admin S 5820 4.6 0 0.0 nmbd -D -s /etc/smb.conf
        395 1 admin S 4424 3.5 0 0.0 watchdog
        1 0 admin S 4384 3.4 0 0.0 /sbin/init noinitrd
        361 1 admin S 4376 3.4 0 0.0 /sbin/wanduck
        423 1 admin S 4376 3.4 0 0.0 usbled
        590 1 admin S 4376 3.4 0 0.0 ntp
        373 1 admin S 4376 3.4 0 0.0 wpsaide
        596 1 admin S 4376 3.4 0 0.0 disk_monitor
        399 395 admin S 4376 3.4 0 0.0 ots
        147 1 admin S 4368 3.4 0 0.0 console
        379 1 admin S 4020 3.1 0 0.0 httpd
        372 1 admin S 3896 3.0 0 0.0 /bin/wps_monitor
        admin@RT-N16-D849:/tmp/home/root#

      • mjpg streamer not running
        I can't do more from my side, if you have Team Viewer installed, send me id and temporary password by email (contact form)

      • dixie

        i have sent you my teamviewer password. thanks!

SoftEther VPN Running on AsusWRT Routers
Minidlna UPnP Media Server through Debian Jessie Arm
How to Mount Samba Shares inside Chrooted Debian
Nginx Web Server with PHP Support through Optware-NG
Minidlna UPnP Media Server through Debian Jessie Arm
How to Mount Samba Shares inside Chrooted Debian
Spreed WebRTC server and web client
Asterisk VoIP Server running on AsusWRT Routers
SoftEther VPN Running on AsusWRT Routers
NZBGet through Entware
Minidlna UPnP Media Server through Debian Jessie Arm
NetData System Monitor Entware

SUBSCRIBE

To be notified by email when a new tutorial is posted :)

Thanks for Subscribing! I'll keeping you up-to-date with latest tutorials!

Something went wrong, try again...