Mjpg-streamer on OpenWrt 21.02.3 doent work doesnt create web folder

tryed many times to install mjpg-streamer on OpenWrt with luci and all worked fine
today i updated my router to OpenWrt 21.02.3 r16554-1d4dea6d4f
and got this


what i did

opkg update && opkg install mjpg-streamer luci-app-mjpg-streamer kmod-video-uvc kmod-usb-storage && reboot

also there is no folder webcam in /www
tryed to google it no luck

Did this installation worked without an error?
Someone in another thread wrote that mjpg-streamer currently doesn't compile

https://downloads.openwrt.org/releases/faillogs-21.02/arm_cortex-a5_vfpv4/packages/mjpg-streamer/compile.txt

1 Like

the last version it works is 19 brunch, since 22 it does not what to do
the folder does not appear in www

As I wrote it seems that compilation current fails therefore the Package is not available on branch 21/22.
Or did you install it successful with opkg?

Well i saw TERMINATED 4 -6 times while installing

Your post says "OpenWrt...doesnt create web folder"...did you create the directory first?

Or do you expect the OpenWrt to create the directory?

That seems to be @ZebraOnPC's problem.

???

in version 19 u no need to create anything the folder creates by instaling
there is only one file and i tried to copy it from version 19 and i could apply setting with no errors but it doesnt work anyway
well i just try on 21.02

Installing kmod-video-uvc (5.4.188-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/targets/x86/generic/packages/kmod-video-uvc_5.4.188-1_i386_pentium4.ipk
Installing kmod-usb-core (5.4.188-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/targets/x86/generic/packages/kmod-usb-core_5.4.188-1_i386_pentium4.ipk
Installing kmod-dma-buf (5.4.188-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/targets/x86/generic/packages/kmod-dma-buf_5.4.188-1_i386_pentium4.ipk
Installing kmod-i2c-core (5.4.188-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/targets/x86/generic/packages/kmod-i2c-core_5.4.188-1_i386_pentium4.ipk
Installing kmod-video-core (5.4.188-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/targets/x86/generic/packages/kmod-video-core_5.4.188-1_i386_pentium4.ipk
Installing kmod-video-videobuf2 (5.4.188-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/targets/x86/generic/packages/kmod-video-videobuf2_5.4.188-1_i386_pentium4.ipk
Configuring kmod-dma-buf.
Configuring kmod-usb-core.
Configuring kmod-i2c-core.
Configuring kmod-video-core.
Configuring kmod-video-videobuf2.
Configuring kmod-video-uvc.


root@OpenWrt:~# opkg install mjpg-streamer
Installing mjpg-streamer (2019-05-24-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/i386_pentium4/packages/mjpg-streamer_2019-05-24-1_i386_pentium4.ipk
Installing libjpeg-turbo (2.0.6-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/i386_pentium4/packages/libjpeg-turbo_2.0.6-1_i386_pentium4.ipk
Configuring libjpeg-turbo.
Configuring mjpg-streamer.
/etc/init.d/mjpg-streamer: device '/dev/video0' does not exist
root@OpenWrt:~# opkg install luci-app-mjpg-streamer
Installing luci-app-mjpg-streamer (git-20.108.38431-8f34e10) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/i386_pentium4/luci/luci-app-mjpg-streamer_git-20.108.38431-8f34e10_all.ipk
Installing luci-compat (git-22.046.85744-f08a0f6) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/i386_pentium4/luci/luci-compat_git-22.046.85744-f08a0f6_all.ipk
Configuring luci-compat.
Configuring luci-app-mjpg-streamer.
root@OpenWrt:~#

camera is not connected but it seems like evrything fine with instaliation but still the problem the same
web folder supposed to be installed but no folder

I experienced the same problem going from 18.x to v23.x. I retried on an old router running 19.x and it worked fine. I even created the missing folders with all possible permissions but no luck. Looking at the log revealed that my cam was not fully compliant with the UVC standard and the openwrt driver tried to patch it. I doubt this is the origin of the problem since the same message was reported in v19.x

I was having the same issue, there does not seem to be any documentation on how this is expected to work, or maybe we can view the stream directly without the LuCI viewer?

Any idea why this might be failing? I've installed with buildroot in 23.05 for GL.inet ar300m and it compiles successfully but I'm getting the invalid message and no stream.

I have kmod-usb-core and kmod-video-uvc installed - is there a way to test that separately?

It seems that the package installation has somehow become incompatible with openwrt versions beyond 19.x. There is at least one missing file as reported in my log when running mjpeg-streamer directly from ssh:

root@gl-6416:/etc/openvpn# mjpg_streamer -i "input_uvc.so -d /dev/video0" -o "output_http.so -w /www/webcam -port 8080"
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)
ERROR: could not find output plugin output_http.so
       Perhaps you want to adjust the search path with:
       # export LD_LIBRARY_PATH=/path/to/plugin/folder
       dlopen: Error loading shared library output_http.so: No such file or directory
root@gl-6416:/etc/openvpn# find / | grep output_http.so
(gave no output)
2 Likes