Custom Camera Feed #2548
Replies: 9 comments 5 replies
-
I also wanted this for my P1S because the camera sucks, so I took a shot at it. It started simple with hardcoded custom URL, and then it got hard when I needed to start thinking about the UX stuff :) Anyways here is my fork:
and it Works On My Machine™ pretty nicely. Tested only on Windows 11, for some reason cannot log in with the Linux AppImage and Mac I don't have at hand. I noticed some small hiccups sometimes when starting/stopping bambulab's camera manually (why does there even need to be manual start/stop?) and it stays black but custom camera works well. Bambulab's way of handling the camera stream is so weird that I didn't want to start deciphering how it's supposed to work, so I just mostly worked around it. In the end both cameras work and you can switch between them. I use Raspberry Pi camera with camera-streamer and the You can find build artifacts here If there is any interest having this kind of feature upstream, I might be able to continue work on it and make a PR. Would need help at least with deciding how the UX/UI should look. Also the camera URL isn't persisted anywhere yet so need to input it every time the slicer starts, might look into that next. |
Beta Was this translation helpful? Give feedback.
-
That's awesome! I'd love to contribute anyway possible! Unfortunately I
don't have coding experience lol. But I can help with any sort of testing
etc.
…On Wed, Dec 13, 2023, 2:18 PM Tuomas Salokanto ***@***.***> wrote:
I also wanted this for my P1S because the camera sucks, so I took a shot
at it.
It started simple with hardcoded custom URL, and then it got hard when I
needed to start thinking about the UX stuff :)
Anyways here is my fork:
https://github.com/stuomas/OrcaSlicer/tree/custom-camera-source
and it Works On My Machine™ pretty nicely. Tested only on Windows 11, for
some reason cannot log in with the Linux AppImage and Mac I don't have at
hand.
I noticed some small hiccups sometimes when starting/stopping bambulab's
camera manually (why does there even need to be manual start/stop?) and it
stays black but custom camera works well. Bambulab's way of handling the
camera stream is so weird that I didn't want to start deciphering how it's
supposed to work, so I just mostly worked around it. In the end both
cameras work and you can switch between them.
I use Raspberry Pi camera with camera-streamer
<https://github.com/ayufan/camera-streamer> and the http://
<ip>:<port>/video.mp4 at least works. If you want to test this out, you
can use any URL to an mp4 file for example from here
<https://gist.github.com/jsturgis/3b19447b304616f18657>
orca_screencast.gif (view on web)
<https://github.com/SoftFever/OrcaSlicer/assets/16635041/4fd1089d-4a7d-4421-b80e-5489f960a0e3>
You can find build artifacts here
https://github.com/stuomas/OrcaSlicer/actions/runs/7197604520
If there is any interest having this kind of feature upstream, I might be
able to continue work on it and make a PR. Would need help at least with
deciding how the UX/UI should look. Also the camera URL isn't persisted
anywhere yet so need to input it every time the slicer starts, might look
into that next.
—
Reply to this email directly, view it on GitHub
<#2548 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APYY2JNVRKMJ3PAAFCZHTN3YJH5PHAVCNFSM6AAAAAA6WYSWHCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQNBWGMYDC>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Excuse my ignorance, but with your fork, how would I get it? Do I have to
compile myself or do I download it as a zip?
|
Beta Was this translation helpful? Give feedback.
-
Appreciate it! I don't have any real coding experience and my experience on
github has been limited to downloading pre existing stuff lol.
|
Beta Was this translation helpful? Give feedback.
-
Absolutely! I don't even have the camera URL input and I think
its beautiful! lol! Been dying to get a custom feed in there! Because I
want to use like an old phone or a pi as an IP camera
|
Beta Was this translation helpful? Give feedback.
-
Having a hair bit of trouble getting a URL to work. What kind of URL should
I use? RTSP? Another kind? I'm using the ip webcam app on android and none
of those urls seem to work.
|
Beta Was this translation helpful? Give feedback.
-
Niiiice! I'm getting email updates from this thread so I'll know when you
or anyone else posts here and I'll test accordingly
…On Thu, Dec 14, 2023, 3:16 PM Tuomas Salokanto ***@***.***> wrote:
I think I found an ok solution to make also MJPEG work (IP Webcam app's
/video endpoint for example) that also greatly simplifies many other
things: using WebView instead of wxMediaCtrl. I'll work on that on the
weekend so stay tuned hehe
—
Reply to this email directly, view it on GitHub
<#2548 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APYY2JN6265NWW65MWPQJI3YJNNDPAVCNFSM6AAAAAA6WYSWHCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQNJXGQ2TO>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
New iteration on new branch https://github.com/stuomas/OrcaSlicer/tree/custom-camera-source-webview Supports also MJPEG stream from android's IP Webcam app ( Also the URL and enable/disable status is persisted and restored when program starts. Still small bug that upon starting the program with persisted URL, the javascript that removes the video controls/scrollbars does not work, only works when changing source manually🤔 |
Beta Was this translation helpful? Give feedback.
-
Opened PR #3415 |
Beta Was this translation helpful? Give feedback.
-
I can't imagine it would be too difficult to add the function to input a custom stream address into the video player section? Would be great for those of us wanting to monitor our prints with our custom cameras. And then maybe later adding functionality to do basic in app timelapses of sorts. I'd absolutely be willing to learn if anyone would be willing to walk through the code with me.
Beta Was this translation helpful? Give feedback.
All reactions