Can't use mjpg-streamer with latest version of OpenWrt 21.02!

Then mjpeg-streamer is not running on the Zyxel.

Which could mean that you enabled the mjpeg-streamer service, but did not start it yet (after it has been installed and "enabled", it goes into autostart at boot, but if you didn't reboot the device yet, there was no occasion for autostart, which means directly after installing you have to start it. once. Or reboot.)

Failing that, you need to check the logfiles on the Zyxel. It may very well be that mjpeg-streamer fails to start, and the logfile would tell you why.

Ok. Please everyone wait for 10 min. I will reset the router and set up again than I'll upload all the logs here. We'll see what's going on.

1 Like


So, this is the first issue!
I just reset the router settings, installed mjpg-streamer, rebooted the router. Nothing else I did! I can't even enable it. Why?

try simply /webcam or /

(post deleted by author)

/ worked. Enabled. Reboteed. But no connection to the webcam. 192.192.1.2:8080 doesn't work. Logs here.

Tue Aug 31 22:22:25 2021 user.info MJPG-streamer [1667]: MJPG Streamer Version.: 2.0
Tue Aug 31 22:22:25 2021 user.info MJPG-streamer [1667]: ERROR: could not find input plugin
Tue Aug 31 22:22:25 2021 user.info MJPG-streamer [1667]:        Perhaps you want to adjust the search path with:
Tue Aug 31 22:22:25 2021 user.info MJPG-streamer [1667]:        # export LD_LIBRARY_PATH=/path/to/plugin/folder
Tue Aug 31 22:22:25 2021 user.info MJPG-streamer [1667]:        dlopen: Error loading shared library input_uvc.so: No such file or directory

So? What should I do?

you said you had installed kmod-video-uvc, did you reinstall it after reset ?

Installed.

You'll ned to see if (and where) the input_uvc.so is actually located on the router ....

that's only way of doing that, is by using SSH to access it.

I don't know the commands. Access accomplished to router via SSH but which commands do I need to check it? Could you write down that?

This is looking strange to me:
grafik

Apart from that: Have you installed all other dependencies of kmod-video-uvc?

Just install mjpg-streamer-input-uvc for starters.

1 Like

Which dependencies? kmod-video-core is also installed.

Installed.

Now just restart the service.

I dumped the contents of the 19.07 and 21.02 ipks.

19.07/etc/init.d/mjpg-streamer
19.07/etc/hotplug.d/usb/20-mjpg-streamer
19.07/etc/config/mjpg-streamer
19.07/control.tar.gz
19.07/data.tar.gz
19.07/usr/lib/output_http.so
19.07/usr/lib/input_uvc.so
19.07/usr/bin/mjpg_streamer
19.07/www/webcam/index.html
19.07/debian-binary
21.02/etc/init.d/mjpg-streamer
21.02/etc/hotplug.d/usb/20-mjpg-streamer
21.02/etc/config/mjpg-streamer
21.02/control.tar.gz
21.02/data.tar.gz
21.02/usr/bin/mjpg_streamer
21.02/debian-binary

mjpg-streamer 19.07 installs some plugins and extra files, output_http.so, input_uvc.so and /www/webcam/index.html. In 21.02 they're moved into their own packages.

mjpg-streamer-input-file
mjpg-streamer-input-http
mjpg-streamer-input-uvc
mjpg-streamer-output-file
mjpg-streamer-output-http
mjpg-streamer-output-rtsp
mjpg-streamer-output-zmq
mjpg-streamer-www
mjpg-streamer-www-simple
3 Likes

Well. Do I need to install all of those single packages?

probably not *file, and perhaps not mjpg-streamer-input-http, the other one i'd keep.