2012-09-17, 13:02
there is a way to run a python script before playback ?
i tryed this
but didn't work properly because my program (xbmc_ffaudio.exe) and playback run togheter
i wanna find a way to run exe, waiting for the complete execution and then run the playback
p.s.
the final purpose is change the delay in ffdshow audio setting when there is a video in 24p
my exe check the file and set a determinate profile.
(in ffdshow there is not a condition to set a profile with a determinate fps :|)
i tryed this
Code:
import xbmc
class MyPlayer(xbmc.Player):
def __init__( self):
xbmc.Player.__init__(self)
def onPlayBackStarted(self):
exe = "C:\\Users\\xxx\\AppData\\Roaming\\XBMC\\addons\\service.myaddon\\xbmc_ffaudio.exe"
file = self.getPlayingFile()
xbmc.executebuiltin('XBMC.System.ExecWait("%s" -f "%s" -p ffdaudio24p)' % (exe,file))
player = MyPlayer()
while(not xbmc.abortRequested):
xbmc.sleep(100)
but didn't work properly because my program (xbmc_ffaudio.exe) and playback run togheter
i wanna find a way to run exe, waiting for the complete execution and then run the playback
p.s.
the final purpose is change the delay in ffdshow audio setting when there is a video in 24p
my exe check the file and set a determinate profile.
(in ffdshow there is not a condition to set a profile with a determinate fps :|)