i'm working with omxplayer in Python. Is there a way to filter the elapsed time shown by executing omxplayer with the '-s' parameter and save it as a string?
I'm avoiding using omxplayer-wrapper because this string i'm trying to get will actually going to be inside another program that is already executing omxplayer, and i would prefere to "recycle" the process instead of modifying the whole script just to use the wrapper. (if still want to know, i'm working with a modified version of this: https://github.com/jehutting/omxplayer-pir)
For example, i've got this piece of code that let me execute omxplayer from console with ./ command and print the result, but have no clue to achieve what i want to do.
#!/usr/bin/env python
from subprocess import Popen
videoFile = 'home/pi/filename.mov'
execute = Popen(['omxplayer', '-s', videoFile])