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

Start and stop stream just when open or close URL in browser #368

Open
cjjaeckson opened this issue Oct 27, 2022 · 1 comment
Open

Start and stop stream just when open or close URL in browser #368

cjjaeckson opened this issue Oct 27, 2022 · 1 comment

Comments

@cjjaeckson
Copy link

cjjaeckson commented Oct 27, 2022

Hi,
first of all: Thanks a lot for that nice tool! I'm loving it!
I have a quick question, or rather a change request.
Currently my webcam stream starts as soon as I run the following code:
/usr/local/bin/mjpg_streamer -i "input_uvc.so -f 24 -r 1920x1080" -o "output_http.so -w /usr/local/share/mjpg-streamer/www"
Is there a possibility to start and stop the stream only when the URL is called or closed in the web browser? Long time ago I used a git project (PICS by kwasmich) which had this feature.
This feature could save a lot of power and computing capacity, since 99% of the time I don't look at the stream.
I don't want to rule out that I just haven't discovered the feature yet. :D
Could someone help me with this perhaps? Thanks a lot!

@atunivie
Copy link

I'd like to second cjjaeckson's both thanks for the great tool and his request. It would be great if mjpg_streamer would just pause when there's no client connected.

Context: I'm running octopi with two cameras (only capable of yuv, that saved me some bucks) and most of the time, I'm not looking at any of them, even less at both of them at the same time. So the processor is constantly veeery busy with two processes that actually wouldn't need to do anything.

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

No branches or pull requests

3 participants