Author Topic: Play interactive videos with Raspberry from C ++.  (Read 1766 times)

0 Members and 1 Guest are viewing this topic.

Offline luiHSTopic starter

  • Frequent Contributor
  • **
  • Posts: 592
  • Country: es
Play interactive videos with Raspberry from C ++.
« on: July 02, 2021, 02:19:55 am »

Hi.
I have an application for Raspberry in which I need to trigger videos with sound interactively without delays, they should start playing instantly.

Now I don't use omxplayer, because I already tried it and there is a certain lag when triggering the videos, which makes it not useful for me. My current system, without using omxplayer, works fine, but does not support sound, only video.

I've looked for some info but can't find the solution, I read about using dbus to control omxplayer, but this doesn't seem to allow opening and closing video files for a background loaded omxplayer to avoid lag. It only allows you to control a video that is already in play, not open a new video or close the one that is playing.

Does anyone know any solution based or not on omxplayer, to play videos with sound from a C program? Playback must be instantaneous, there can be no lag.

If omxplayer could be controlled with dbus to send commands to open or close video files, it could help me, but it seems that that is not possible.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf