Is Py5 good for display graphics on a headless Pi? #423
Replies: 2 comments 1 reply
-
Hi, @fallenartist ! First, can you tell me how you found out about py5? I'm curious about what I can do to help grow the community and users. py5 can work on a headless machine, although my understanding of headless means there is no display of any kind. py5 does require a frame buffer so if there is no physical display, you will need to run a virtual frame buffer instead. Something like: /usr/bin/Xvfb :0 -screen 0 1024x768x24 &
export DISPLAY=":0" If the raspberry pi is connected to a video projector, then the projector can serve as the display. Everything you mentioned sounds achievable with py5. py5 has all of Processing's typography and graphics functionality so you are covered there. For interaction it supports mouse and keyboard events. If your touch button uses some electronics you build and connect to the raspberry pi, then you'd need to write some event code for that, but you'd be doing that anyway with pygame. I'm not familiar with writing python code to stream movies directly from YouTube but I am sure that is achievable. My only question there is what video resolution you are streaming. 4K might have performance problems but getting that to work well would be a challenge for any library. I would suggest you prototype that part first. If you like I can help you optimize that code for performance to use py5 in the most efficient way possible. |
Beta Was this translation helpful? Give feedback.
-
Many thanks @hx2A ! |
Beta Was this translation helpful? Give feedback.
-
Hello. I just discovered Py5! I'm gathering some hardware for a permanent interactive wall installation that will utilise Raspberry Pi 4. The Pi will be hooked up to a video projector and a speaker. The idea is to display some information and trivia in a loop and interrupt with a sound or a video when a touch button is pressed. Also some stuff streamed from YouTube. Ideally, I'd like for the information to be animated, including typography and graphic elements, so it looks more refined.
I planned to code the graphics with Python and Pygame, among other libraries, but maybe Py5 would be a better solution? What do you think? Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions