[Solved] mjpg_streamer not working correctly for me

Hi guys.

I have tplink c59 router powered by latest openwrt snapshot (for tplink c59)

root@a81m3:/home/sam# grep OpenW /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r12138-1e3bfbafd3'
root@a81m3:/home/sam#

openwrt recognized my webcamera:

Feb  4 13:22:18 a81m3 a81m3-kernel: : [14433.727534] usb 1-1.2: new full-speed USB device number 7 using ehci-platform
Feb  4 13:22:18 a81m3 a81m3-kernel: : [14433.961767] usb 1-1.2: not running at top speed; connect to a high speed hub
Feb  4 13:22:18 a81m3 a81m3-kernel: : [14434.010858] uvcvideo: Found UVC 1.00 device USB2.0_Camera (093a:2700)
Feb  4 13:22:18 a81m3 a81m3-kernel: : [14434.051342] input: USB2.0_Camera: USB2.0_Camera as /devices/platform/ahb/1b000000.usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input3

but whenever I'm trying to broadcast video stream like bellow:

root@a81m3:/home/sam# mjpg_streamer -i "/usr/lib/mjpg-streamer/input_uvc.so -d /dev/video0 -f 1 -r VGA -l auto --timestamp" -o "/usr/lib/mjpg-streamer/output_http.so -l 192.168.174.1 -p 58180 -c sam:13579 -w /tmp/stream/"
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 1
 i: Format............: JPEG
 i: TV-Norm...........: DEFAULT
UVCIOC_CTRL_ADD - Error at Pan (relative): Not a tty (25)
UVCIOC_CTRL_ADD - Error at Tilt (relative): Not a tty (25)
UVCIOC_CTRL_ADD - Error at Pan Reset: Not a tty (25)
UVCIOC_CTRL_ADD - Error at Tilt Reset: Not a tty (25)
UVCIOC_CTRL_ADD - Error at Pan/tilt Reset: Not a tty (25)
UVCIOC_CTRL_ADD - Error at Focus (absolute): Not a tty (25)
UVCIOC_CTRL_MAP - Error at Pan (relative): Not a tty (25)
UVCIOC_CTRL_MAP - Error at Tilt (relative): Not a tty (25)
UVCIOC_CTRL_MAP - Error at Pan Reset: Not a tty (25)
UVCIOC_CTRL_MAP - Error at Tilt Reset: Not a tty (25)
UVCIOC_CTRL_MAP - Error at Pan/tilt Reset: Not a tty (25)
UVCIOC_CTRL_MAP - Error at Focus (absolute): Not a tty (25)
UVCIOC_CTRL_MAP - Error at LED1 Mode: Not a tty (25)
UVCIOC_CTRL_MAP - Error at LED1 Frequency: Not a tty (25)
UVCIOC_CTRL_MAP - Error at Disable video processing: Not a tty (25)
UVCIOC_CTRL_MAP - Error at Raw bits per pixel: Not a tty (25)
 o: www-folder-path......: /tmp/stream/
 o: HTTP TCP port........: 58180
 o: HTTP Listen Address..: 192.168.174.1
 o: username:password....: sam:13579
 o: commands.............: enabled
Unable to start capture: No space left on device
 i: Can't enable video in first time
 i: cleaning up resources allocated by input thread

socket is open:

root@a81m3:/home/sam# netstat -an | grep 58
tcp        0      0 192.168.174.1:58180     0.0.0.0:*               LISTEN
root@a81m3:/home/sam#

but connected via http clients (http://192.168.174.1:58180/?action=stream) after authentication got just black screen...

From internet forums I've fount notification "Unable to start capture: No space left on device" is reporting not enough bandwidth for video (web camera connected to tplink router via usb 2.0 hub). (or I'm wrong)?
I tried different low-resolutions (even CGA and QQGA) and lowering fps, but it didn't help.

Could someone suggest or show me "live" working configs?

Thank you guys.

Fresh update.

Replaced again the USB Hub, but this time with an USB3.0 Hub, although I know it will be limited to USB2.0 speed.
I can't explain why, but its working great now!!!! :slight_smile:

Could it be because the USB stick I'm using for the root disk is USB3, and somehow was requesting all the bandwidth?

Anyway thank for your help!

Simply count how much bandwidth the raw data consumes; that's your answer.