Noob speaking

I've been working on a project for a while now. I'm using a Rpi Zero W (yeah wifi!) for displaying content on a 9" screen. It will be placed at shops to show a video of a product. People can touch some metal pins (which are attached to capacitive sensors and mapped to keys of the keyboard) when that happens, i want the video to stop and show the info for that pin for a while before resuming with the looped video. Additionally, a pushbutton attached to the GPIO that sets the video to the beginning.

So: show a fullscreen video on a loop, nine different keys to trigger nine images that would be displayed for a time. (stopping the video and resuming after that time).

What i've tried:

  • Write a little script for omx player. Instad of images, have everything in one video, so that if one of the key is pressed, it just jumps to a specific time, some seconds later it jumps back to where the video was. The problem i encountered there was that i cant figure out how to change the time of omx player while the video is playing. I posted here about this issue. Still waiting for a response :(

  • Pi Presents. I can't figure out how to set triggers for displaying images in the middle of the video. I posted this question in what seems to be the most active forum

  • Write everything in html/css. This would be the best solution as i could easily program transitions, sadly i haven't found an efficient enough way for playing video on the Zero player, it just lags a lot...

Isn't there a Python library for media, in which i can combine Video and images?

Thanks in advance for any help!

  • You might want to look at PySDL2 for images and video. – PaulF8080 Mar 2 '17 at 8:00
  • Do you think this is performant enough for a zero to run on? – Alvaro Garcia Mar 2 '17 at 11:40
  • Yes. The Python code calls the SDL library, which is written in C. My guess is the OMX player uses SDL. It's Python instead of HTML so it may be more more the you want to do, though. – PaulF8080 Mar 2 '17 at 14:01

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.