Read the statement by Michael Teeuw here.
HELP to use a cam with MM PLEASE
-
@shbatm
i try to use mjpg_streamer :
$ mjpg_streamer -o āoutput_http.so -w ./wwwā -i āinput_uvc.so -f 1 -q 75 -yābut i have this error : bind:Address already in use.
also : Innappropriate ioctl for device (25)help!
-
@axel said in HELP to use a cam with MM PLEASE:
bind:Address already in use.
The default port is the same as the Mirror, 8080. Try adding
-p 8081to your command to change the port. -
This post is deleted! -
@shbatm
it works well but now i tried To start mjpg on boot in vain. I used the crontab but how To write it with the options?? -
@axel - Create a script with your command, name it something obvious like
startcam.sh. Make it executable withchmod +x startcam.shand then use pm2 to autostart and maintain the script:pm2 start startcam.shWhen youāre satisfied with pm2ās handling, save the state:pm2 saveIn the future, please use the markdown features of the board when posting code & logs.
-
@bhepler
i did it but the status is not online but stopped. After a moment, the status changed To errored!! Help please⦠-
@axel - Okay. Letās skip PM2 for now and just concentrate on getting your script running.
Edit the
startcam.shscript and paste in the mjpg_streamer command:
mjpg_streamer -o āoutput_http.so -w ./wwwā -i āinput_uvc.so -f 1 -q 75 -yā -p 8081Once you have the script file to where itās only that command, you can try to run that script manually by typing
./startcam.sh. That should be the equivalent of typing the command in yourself.Try that and let us know how it goes.
-
@bhepler
Ok i can run manually the script.
and now?
š -
@axel he said
you can try to run that script manually by typing ./startcam.sh.he left off that you need to mark the script as executable
chmod +x ./startcam.sh -
@sdetweil
i did it before š -
@axel - Now that you can run your script and have it execute the command (Iām assuming that when you run the script, it does what you want) you just have to tell pm2 to manage that script.
Tell pm2 to manage the script:
pm2 start startcam.sh
Tell pm2 to remember & autostart the script:pm2 saveLet us know how it goes.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better š
Register Login