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

Proposal: Webcam stream overlay with print status #800

Open
bo0tzz opened this issue Dec 30, 2022 · 0 comments
Open

Proposal: Webcam stream overlay with print status #800

bo0tzz opened this issue Dec 30, 2022 · 0 comments

Comments

@bo0tzz
Copy link

bo0tzz commented Dec 30, 2022

I've been poking away at building a system that takes the webcam stream and overlays some information about the print status. I was building this independently from octopi/octoprint, but I've realised that with octopi 1.0.0 it might be pretty easy to include a feature like this natively.

ffmpeg can overlay text onto a video with a single line, for example:

-vf "drawtext=textfile=/run/webcam/overlay.txt:reload=1:fontcolor=white:fontsize=40:box=1:[email protected]:x=w-tw:y=0

That line could be added to ffmpeg_hls.service. As far as I can tell, the overhead of having this always enabled is essentially nil.

The other side would then be a basic octoprint plugin that writes some information about the current print status to the /run/webcam/overlay.txt.

I would love to hear your thoughts on adding this. If it is wanted, I could flesh it out some more and maybe create a PR (though that might take me a while).

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

1 participant