Notifications
Clear all

FYI: OctoPrint and V3 Raspberry Pi Cameras  

Page 2 / 2
  RSS
Walter Layher
(@walter-layher)
Prominent Member
RE:

Just make a backup of your existing OctoPrint config (without all the uploads, images, and videos). Install the new image and choose restore from backup at the first login. You should be up and running in no time with the old config including all plugins and the new libcamera stack.

I myself just had to adjust the timezone setting and run the config for my WLED plugin to activate the hardware interfaces for that (i2c and spi).

Posted : 27/05/2023 5:56 pm
Just Brad
(@just-brad)
Trusted Member
RE:

 

Posted by: @walter-layher

Just make a backup of your existing OctoPrint config (without all the uploads, images, and videos). Install the new image and choose restore from backup at the first login. You should be up and running in no time with the old config including all plugins and the new libcamera stack.

I myself just had to adjust the timezone setting and run the config for my WLED plugin to activate the hardware interfaces for that (i2c and spi).

I did a bunch more OS style mods that will require new image / patch of the OS, installation of a bunch of other software to keep the Raspberry PI in use when not using the printer.  (open office, VLC, calibre, etc.).   If I could get another few PI #4 right now I would just just keep the OctoPi/Print dedicated.  If I could get a new out of the box from England P4, I would pay 2x price...but most of the hardware for sale that is easy to buy often have been returned due to "issues".   I will keep the old thumb drive for v2 support...

 

Step one is finished; a spare USB thumb drive has been installed / booted for the first time, now for packages, etc.

 

[added] Yes, the PI 4 is configured to boot from USB - The cover for the memory card failed so this is a good workaround.

Posted : 27/05/2023 6:16 pm
Walter Layher
(@walter-layher)
Prominent Member
RE: FYI: OctoPrint and V3 Raspberry Pi Cameras

Ah, that is too bad. I have my OctoPrint Pis just for that and nothing else.

Chris Riley just had a video about the "Le Potato" SBC that is around 40 Euros. Id does need a special version of RaspiOS because of different SOC, but whatever you do there are always some compromises ...

Posted : 27/05/2023 6:30 pm
Extra Fox
(@extra-fox)
Reputable Member
Topic starter answered:
RE: FYI: OctoPrint and V3 Raspberry Pi Cameras

So I had to setup OctoPrint on a base of Raspberry Pi OS. I had too many networking problems that I couldn't sort out with the OctoPi image and going this route seems to have solved that problem. Of course now I don't have the implementation of the new "camera-streamer" application that's being used in the latest image.

So I'm going through the process of setting that up and being an amateur is making it way more challenging than the folks who write the responses on the OctoPrint forums and the Github instructions would make it seem like. I think I'm getting closer though. I just have to create a service that supports my Camera v3 module (imx708).

Aaron

Posted : 27/05/2023 7:50 pm
Extra Fox
(@extra-fox)
Reputable Member
Topic starter answered:
RE: FYI: OctoPrint and V3 Raspberry Pi Cameras

I got it sorted, I don't think I took the easiest way, but here's how it went down: https://community.octoprint.org/t/raspberry-pi-camera-module-3-configuration-issues/52005/5?u=extra_fox

The response immediately above mine might actually be the better method to approach this by.

https://community.octoprint.org/t/raspberry-pi-camera-module-3-configuration-issues/52005/4?u=extra_fox

Aaron

Posted : 27/05/2023 9:58 pm
Just Brad
(@just-brad)
Trusted Member
RE: FYI: OctoPrint and V3 Raspberry Pi Cameras

 

Posted by: @extra-fox

I got it sorted, I don't think I took the easiest way, but here's how it went down: https://community.octoprint.org/t/raspberry-pi-camera-module-3-configuration-issues/52005/5?u=extra_fox

The response immediately above mine might actually be the better method to approach this by.

https://community.octoprint.org/t/raspberry-pi-camera-module-3-configuration-issues/52005/4?u=extra_fox

I know the feeling of always wanting to pick a different path...I do have the rebuilt Octoprint running now on my first test print.  The issue is that I flipped back using the pre-made setup for Octopi/print - and found out the software I want to install only works in 64 bit mode, not the 32 bit OS that it is running with.

I was happy on the choice to drop the poor performance of the built in wifi on the pi and go with a cable to a wifi media bridge.    I am happy I have a spare thumb drive so I can have my cake and eat it to...one running config that will work but not have all the s/w - and one to try and get the new camera setup + the other software I want on that machine.

 

Well; 11 more hours left into the test print before I flip that coin on which path to take. 

 

 

Posted : 28/05/2023 1:17 am
Walter Layher
(@walter-layher)
Prominent Member
RE: FYI: OctoPrint and V3 Raspberry Pi Cameras

For those of you who use the new libcamera stack on OctoPi 1.0.0: Try this plugin here! With this you can switch the webcam stream between the old mjpeg streamer format and the new format with h.264/webrtc. After install you can click on the webcam image in "Control" and switch between "Camera Streamer" and "Classic Webcam". And then compare the difference in the network bandwidth of the two. The new format uses only a fraction of the network bandwidth for high quality video, uses less cpu, and also has less latency.

Posted : 02/06/2023 9:46 pm
Just Brad
(@just-brad)
Trusted Member
RE:

 

Posted by: @walter-layher

For those of you who use the new libcamera stack on OctoPi 1.0.0: Try this plugin here! With this you can switch the webcam stream between the old mjpeg streamer format and the new format with h.264/webrtc. After install you can click on the webcam image in "Control" and switch between "Camera Streamer" and "Classic Webcam". And then compare the difference in the network bandwidth of the two. The new format uses only a fraction of the network bandwidth for high quality video, uses less cpu, and also has less latency.

It looked interesting - but -

https://github.com/cp2004/OctoPrint-WebRTC-CameraStreamer/releases/latest/release.zip

 

resulted in 404 error message - that link was spotted in the updated readme file.  and yes; it was deleted, but the only

location I could figure to get the plugin.

Posted : 03/06/2023 3:15 am
Walter Layher
(@walter-layher)
Prominent Member
RE: FYI: OctoPrint and V3 Raspberry Pi Cameras

This is the one I used: https://github.com/cp2004/OctoPrint-CameraStreamer-Control/archive/refs/heads/main.zip
The author of the plugin mentioned here that in his opinion it is not quite finished yet and he doesn't want to have to react to bug reports until then. So if you just use it (it works fine for me on two machines) and not bother him if it does not work for you, I think it will be okay. 🙂

Posted : 03/06/2023 11:37 am
Extra Fox
(@extra-fox)
Reputable Member
Topic starter answered:
RE: FYI: OctoPrint and V3 Raspberry Pi Cameras

This is the one that Foosel directly references as far as what will be rolled into the OctoPi image. It's also the one I used and it seems to work just fine.

https://github.com/ayufan/camera-streamer

Aaron

Posted : 04/06/2023 1:36 am
Walter Layher
(@walter-layher)
Prominent Member
RE:

Yes, I am using that too, but without the plugin I still had an mjpeg stream that used a lot more bandwidth on the network than the h.264/webrtc stream that I got with the plugin.

See the discussion about it here.

Posted : 04/06/2023 7:55 am
Extra Fox
(@extra-fox)
Reputable Member
Topic starter answered:
RE: FYI: OctoPrint and V3 Raspberry Pi Cameras

Oh right, I forgot about that one. I was waiting on it to become a full-blown plugin, if that happens I guess? I suppose I could just install it though.

So far, I haven't tried making any timelapse and just streaming through to the OctoPrint dashboard doesn't really seem to be impacting performance at all. I suppose if I used something that allowed me to stream outside of my LAN I might see issues though.

Aaron

Posted : 04/06/2023 2:03 pm
Page 2 / 2
Share: