D
D
Dmitry2017-04-05 10:19:35
Python
Dmitry, 2017-04-05 10:19:35

How to play a video file in Python?

The essence of the problem is that I can’t find how to run the video file
, when you run the script, play the video from a specific folder,
tell me how?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TomasHuk, 2017-04-05
@ipatov_dn

Try these options:
1. Through subprocess

import subprocess
subprocess.call("d:\\file.avi", shell=True)

2. Via os
import os
os.startfile("d:\\file.avi")

R
RedHairOnMyHead, 2017-04-05
@ThePyzhov

First link on google. poke

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question