Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5266

Graphics, sound and multimedia • Help with replacing 'omxd' on Pinball Integrated Python code

$
0
0
I asked the VLC forum and didn't get any bites so I am hoping for a more active conversation over here. I have a side project where I built a mod for Tron Legacy Pinball that adds a screen that plays video clips based on the current mode you are in. The modes are read from a serial interface with a raspberry pi and then translated to play a series of videos in a playlist managed by omxd (https://github.com/subogero/omxd) and played on a pi 3 with omxplayer. Fairly simple setup but managing the different modes, inserting videos into the current playlist and playing them immediately make it a bit more complex than your standard "video wall" playlist. Because the pinball code is what is controlling omxplayer, I need to be able to interrupt the video playing, play something else, then continue the existing playlist. I would like to bring all this code up to date on a pi5 with VLC as the backend player now that OMXPlayer is deprecated in the latest raspbian versions.

Here is an example of what the video screen, player, and interaction with the pinball machine looks like now: https://www.youtube.com/watch?v=bF0BTE2vpwo

example python code with omxd controlling omxplayer: https://raw.githubusercontent.com/flynn ... ron_v19.py

You can see I use omxd to manipulate the active playlist, inject new videos based on the current modes of the pinball machine, change the order depending on the priority of the video (and mode playing), etc.

Questions:
Is there a similar process or playlist management function as omxd in VLC? I specifically hope there are options for the following:

Code:

a fileadd to playlist after current itemI fileinterrupt playlist, play file on default output, then continue playlistL fileplay file on default after current item, then continue playlist clear the playlist and stop currently playing file
Are these three things possible from python to VLC or something that has feature parity with omxd?

# Insert to playlist before current item and tell VLC to play immediately., # Append to end of playlist, # Add to playlist after current playing item.


Is my only option to enable HTTP control of VLC and if so can that handle all three options above?

I would like to start working on a pi5 version of this that uses VLC as the video backend. Of course I could use an old distro where OMXPlayer still exists but my understanding is that is deprecated and all dev efforts are going to VLC. Any help would be appreciated.

Statistics: Posted by flynnsbit — Thu Mar 07, 2024 10:38 pm — Replies 0 — Views 15



Viewing all articles
Browse latest Browse all 5266

Trending Articles