Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MJPG-streamer doesn't exit when webcam is unplugged #372

Open
StupidProgramming opened this issue Nov 27, 2022 · 1 comment
Open

MJPG-streamer doesn't exit when webcam is unplugged #372

StupidProgramming opened this issue Nov 27, 2022 · 1 comment

Comments

@StupidProgramming
Copy link

I have a webcam plugged into my system, and MJPG-streamer is working fine. but when i unplug the webcam, the mjpg-streamer stays at "cleaning up resources allocated by input thread" and the result is that my script can't re-open the camera once it is reconnected.

@username7291
Copy link

That is usual, im not sure if mjpg-streamer causes this or Linux/Rasbian does. The only you can do is reboot the whole System. Would no problem to quit first then unplug the webcam but USB Plugs on Raspberry seems not long time stable(maybe oxidize different Metal?) and from time to time a usb device loses the connection and you have to reboot. 1 time even the whole USB System crashes means all USB Ports are gone not only the Camera.
If you kill mjpg-streamer you cant restart it and the last time this happends, i think, i dont seen the video device of the cam with ls /dev the other camera(different mjpg-streamer instance) was there and still worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants