Bsplayer is a videoplayer. I want to start bsplayer with the parameter -stime-x, where x is the amount of seconds. This result in playing a movie from say 23 minutes 10 seconds with the parameter -stime=1390. The whole thing I can manage to do in DOS and looks like:
"c:\program files\webteh\bsplayerpro\bsplayer.exe" "D:\rodin\rodin.mp4" -stime=1390
but whatever I try and search for on this forum and google of course
I cannot settle this in python code. I want to hop to a interesting time positions in the vid with a menu. What i have is this:
import webbrowser import os import win32api print 'Marko Rodin\n' print 'what starting time? ' a=raw_input('hour:') b=raw_input('minutes, ') c=raw_input('seconds ') d=(int(a)*3600)+int(b)+int(c) #win32api.ShellExecute(0,"open", "Vortex Based Mathematics by Marko Rodin.mp4","-stime=1390","D:\\rodin",1) DOESNOT WORK os.execve("c:\\program files\\webteh\\bsplayerpro\\bsplayer.exe", ["-stime=str(d)"], "d:\\rodin\\rodin.mp4") # TypeError: execve() arg 3 must be a mapping object
What's wrong with this and is there another shorter way to start the vid in this manner?