i-UG / tickets

General repo for tracking all educational tickets
0 stars 0 forks source link

Picamera3 streaming issue #32

Open JoshRyanEOG opened 4 months ago

JoshRyanEOG commented 4 months ago

I’ve been having a little trouble getting our new picamera streaming set up going. It’s using a RaspberryPi 4B and the camera module 3. I have experimented with modifying the code but since updating there is no legacy camera support in the config, and I’m struggling to find options to make the code work around it. I know the camera is referenced as libcamera rather than picamera when previewing it but simple name adjustments also didn’t work. Attached is the original code (issue9.py) and my modified code (issue11.py). I have managed to preview test the camera and it works just fine.

issue_9.txt issue_11.txt

AndyYouens commented 4 months ago

Which operating system you using on the Pi Josh?

from a shell session: cat /etc/os-release

@JoshRyanEOG

JoshRyanEOG commented 4 months ago

Which operating system you using on the Pi Josh?

from a shell session: cat /etc/os-release

@JoshRyanEOG

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"

@AndyYouens

AndyYouens commented 4 months ago

Hi Josh @JoshRyanEOG

Quick update, I have all the pieces working, now I need to construct the python to wrap it all up. Please bear with me.

AndyYouens commented 4 months ago

Hi Josh

Is there the option of going back to a version of Bullseye? It woked fine on that OS.

@JoshRyanEOG

JoshRyanEOG commented 4 months ago

Hi Andy, seem to have an alternative piece of code working, just encountering an internal server error. If it doesn't work for you then yes i'll revert the OS for now.

streamtest.txt

@AndyYouens

AndyYouens commented 4 months ago

Hi Josh

I'm not getting much further tbh, very slow progress from a days work!

I'm not sure how urgent this is, if it is, my advice would be to revert back to bullseye OS.

If you can leave it with me, I'll work on it when time permits.

@JoshRyanEOG

JoshRyanEOG commented 4 months ago

Okay Andy, Thanks so much for helping with it. At least it means i'm not a complete idiot. Its for the i-UG conference so not immediate. I will most likely reverse the OS. Cheers!

@AndyYouens

AndyYouens commented 4 months ago

Leave the ticket open Josh. I'll pick it up when I get time.

Cheers. @JoshRyanEOG