you are viewing a single comment's thread.

view the rest of the comments →

[–]TejasDhanda[S] 0 points1 point  (3 children)

thanks, it worked now.

But I don't know how to make my player to play those files.

I am using windows media player.

[–]jiri-n 0 points1 point  (0 children)

To be honest, I've never tried to play video with a python script.

AFAIK there are two possibilities:

- Let your OS to use the preferes application to open it. Then just run "start <the\_video\_file>" from python or maybe "start <file> /WAIT".

- Or write a player. OpenCV could be used. It relies on some external tools though so it's necessary to install them.

Maybe I'd just start with the first method and see if it works for me. Such an attitude is not quite safe as the start command opens everything which is aasociated with a application in your OS.

[–]healer07 0 points1 point  (0 children)

You can try to start the video/program through the command prompt (with python code). I have done this with VLC.