Open LuckyLuzz opened 5 years ago
Hey, your web dirs are different. e.g. -w /usr/local/www
Try changing the one in the script.
yeah there was som kind off dobble name thing. The script name was mjpg_streamer and the accual installed programm ist also called that name. So as I was thinking to start the script it started directly the streaming programm like I would typ: /usr/local/bin/mjpg_streamer
ended up using crontab to call the script + gave the script a different name.
sudo su crontab -e @reboot /etc/init.d/webcam_stream
strange but can be closed. thanks for your help!
Hey, im running in at 404 not found invalid input plugin number if i try to open "http://192.168.1.110:8080/?action=stream" First install was working for me, but after a reboot i couldn't get it back up running.
What may my issue be, something you can help me with?? The install steps are like yours.
output from mjpg-streamer.service
● mjpg-streamer.service - A Linux-UVC streaming application with Pan/Tilt Loaded: loaded (/etc/systemd/system/mjpg-streamer.service; disabled; vendor preset: enabled) Active: active (running) since Fri 2021-09-03 12:42:45 UTC; 4min 22s ago Main PID: 9911 (mjpg_streamer) Tasks: 2 (limit: 4182) Memory: 336.0K CGroup: /system.slice/mjpg-streamer.service └─9911 /usr/local/bin/mjpg_streamer
Sep 03 12:42:45 localhost mjpg_streamer[9911]: o: HTTP TCP port........: 8080 Sep 03 12:42:45 localhost mjpg_streamer[9911]: o: HTTP Listen Address..: (null) Sep 03 12:42:45 localhost mjpg_streamer[9911]: o: username:password....: disabled Sep 03 12:42:45 localhost mjpg_streamer[9911]: o: commands.............: enabled Sep 03 12:42:45 localhost mjpg_streamer[9911]: MJPG-streamer [9911]: www-folder-path......: disabled Sep 03 12:42:45 localhost mjpg_streamer[9911]: MJPG-streamer [9911]: HTTP TCP port........: 8080 Sep 03 12:42:45 localhost mjpg_streamer[9911]: MJPG-streamer [9911]: HTTP Listen Address..: (null) Sep 03 12:42:45 localhost mjpg_streamer[9911]: MJPG-streamer [9911]: username:password....: disabled Sep 03 12:42:45 localhost mjpg_streamer[9911]: MJPG-streamer [9911]: commands.............: enabled Sep 03 12:42:45 localhost mjpg_streamer[9911]: MJPG-streamer [9911]: starting output plugin: output_http.so (ID: 00)
cd mjpg-streamer-experimental make sudo make install
then
sudo adduser webcam video sudo usermod -a -G video webcam init mjpg-streamer.default => /etc/default/mjpg-streamer mjpg-streamer.init => /etc/init.d/mjpg-streamer After copying the above files run:
sudo update-rc.d mjpg-streamer defaults sudo systemctl daemon-reload systemd mjpg-streamer.service => /etc/systemd/system/mjpg-streamer.service
I am also getting the same thing a described above with the 404 error when trying to run as a service.
`mjpg-streamer.service - A Linux-UVC streaming application with Pan/Tilt Loaded: loaded (/etc/systemd/system/mjpg-streamer.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2022-01-17 22:43:15 CST; 7s ago Main PID: 1783 (mjpg_streamer) Tasks: 2 (limit: 1935) CGroup: /system.slice/mjpg-streamer.service └─1783 /usr/local/bin/mjpg_streamer
Jan 17 22:43:15 PiDevil mjpg_streamer[1783]: DBG(/home/pi/projects/mjpg-streamer/mjpg-streamer-experimental/mjpg_streamer.c, main(), 411): starting 1 output plugin(s) Jan 17 22:43:15 PiDevil mjpg_streamer[1783]: DBG(/home/pi/projects/mjpg-streamer/mjpg-streamer-experimental/plugins/output_http/output_http.c, output_run(), 225): launching server thread #00 Jan 17 22:43:15 PiDevil mjpg_streamer[1783]: MJPG-streamer [1783]: MJPG Streamer Version: git rev: 310b29f4a94c46652b20c4b7b6e5cf24e532af39 Jan 17 22:43:15 PiDevil mjpg_streamer[1783]: DBG(/home/pi/projects/mjpg-streamer/mjpg-streamer-experimental/plugins/output_http/httpd.c, server_thread(), 1555): waiting for clients to connect Jan 17 22:43:15 PiDevil mjpg_streamer[1783]: MJPG-streamer [1783]: www-folder-path......: disabled Jan 17 22:43:15 PiDevil mjpg_streamer[1783]: MJPG-streamer [1783]: HTTP TCP port........: 8080 Jan 17 22:43:15 PiDevil mjpg_streamer[1783]: MJPG-streamer [1783]: HTTP Listen Address..: (null) Jan 17 22:43:15 PiDevil mjpg_streamer[1783]: MJPG-streamer [1783]: username:password....: disabled Jan 17 22:43:15 PiDevil mjpg_streamer[1783]: MJPG-streamer [1783]: commands.............: enabled Jan 17 22:43:15 PiDevil mjpg_streamer[1783]: MJPG-streamer [1783]: starting output plugin: output_http.so (ID: 00)`
Hey, I run into a problem with autostart script. Hope you could maybe help. I installed the mjpg-streamer following commands:
till here everything is fine, but when I try to use a script to start the cam I get the "invalid input plugin number" message in firefox.
Script is:
sudo nano /etc/init.d/mjpg_streamer
Commandline Message:
So the point is that I am not able to start the stream from a script.
OrangiPi H2 ARMBIAN 5.69 stable Debian GNU/Linux 9 (stretch) 4.19.13-sunxi
Any thoughts?
Thanks! :)
http://www.gtkdb.de/index_36_2098.html https://sebastien.andrivet.com/fr/posts/installing-multiple-octoprints-raspberry-pi-3-running-raspbian/