Playing an .mov, .avi etc. file??
Markus von Ehr
vonehr at ira.uka.de
Thu Jan 4 06:07:18 EST 2001
harrc at my-deja.com wrote:
>
> Does anyone know of a good way from Python to play a video file (.avi
> or .mpg or .mov)? Or even better, a way to play slected tracks off a
> DVD?
>
> Any info is helpful!
>
> Chad Harrington
>
> Sent via Deja.com
> http://www.deja.com/
On windows systems you can use the win32com module and use OLE/COM
control mechanism. I tried to use MediaPlayer, but had problems.
If you use windows and COM control, please answer in case of success.
# Test dynamic policy
import win32com
import pythoncom
import win32com.client
w=win32com.client.Dispatch("MediaPlayer.MediaPlayer.1")
w.AutoStart=1
w.FileName="c:\Programme\Python\ex1.wav"
w.Play()
More information about the Python-list
mailing list