By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,035 Members | 1,324 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,035 IT Pros & Developers. It's quick & easy.

Is there Multi-media support in Python ?

P: n/a
Is there multi-media support in Python? So I can...

1 - play video in all the standard formats... windows & Mac?
2 - play flash files
3 - Power Point
4 - Standard graphic formats
5 - Sound in all the standard formats
6 - etc

Please note requirements: And, on video's, flash files, Power Point, Graphic
files, I need to have those show within my programs "window" along with some
other text... so I need to be able to size the video and locate it in the
window... so if the program simply pop's up the Windows Media Player or
QuickTime or whatever as a separate window... no good... it all needs to be
integrated into a single window along with text and other stuff...

If so, is it in the standard release or has someone created a module just
for multi-media integration?

Thanks for any help - Will

Jul 18 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
DH
Will wrote:
Is there multi-media support in Python? So I can...

1 - play video in all the standard formats... windows & Mac?
2 - play flash files
3 - Power Point
4 - Standard graphic formats
5 - Sound in all the standard formats
6 - etc

Please note requirements: And, on video's, flash files, Power Point, Graphic
files, I need to have those show within my programs "window" along with some
other text... so I need to be able to size the video and locate it in the
window... so if the program simply pop's up the Windows Media Player or
QuickTime or whatever as a separate window... no good... it all needs to be
integrated into a single window along with text and other stuff...

If so, is it in the standard release or has someone created a module just
for multi-media integration?

Thanks for any help - Will


Not really. Not like the java media framework or QT4Java.
Someone is working on video playing in python that works on Windows or
Macs but it's still being developed:
http://www2.wcer.wisc.edu/Transana/Develop

Also, in wxPython on Windows only, you can embed Internet Explorer or
other ActiveX objects including the Media Player & Powerpoint I assume.
Run the demo for an example: http://www.wxpython.org/
I guess the easiest thing to do would just be to embed Internet Explorer
and have it load a page that plays the movie or flash file.

Even easier though would just be to make your application a web
application and let the browser be the whole interface.
Jul 18 '05 #2

P: n/a
"Will" <ws*******@netpv.com> writes:
Is there multi-media support in Python? So I can...

1 - play video in all the standard formats... windows & Mac?
2 - play flash files
3 - Power Point
4 - Standard graphic formats
5 - Sound in all the standard formats
6 - etc

Please note requirements: And, on video's, flash files, Power Point, Graphic
files, I need to have those show within my programs "window" along with some
other text... so I need to be able to size the video and locate it in the
window... so if the program simply pop's up the Windows Media Player or
QuickTime or whatever as a separate window... no good... it all needs to be
integrated into a single window along with text and other stuff...

If so, is it in the standard release or has someone created a module just
for multi-media integration?


Well, maybe pygame contains something like this.

OTOH, there's Henk Punt's venster library, which is based on the ctypes
module. (If you use windows you may want to look into ctypes anyway - it
allows to make windows api calls even when they are not wrapped by Mark
Hammond's win32all extensions.)

venster contains samples which embed the internet explorer webbrowser
control in a window, it can has a sample which plays flash files in a
window, and it shows how to embed the windows media player.

You can probably to something similar using the pythonwin application
framework in win32all (oh, wait, the official name is now pywin32) which
is based on a python wrapping of the mfc.

Thomas
Jul 18 '05 #3

P: n/a
Thomas,

I'll check out your & DH's suggestions. I was hoping for a clean easy to do
this.

DH mentioned that someone was working on this... any idea who?

Doing it on the net is not an option we want to consider now for a varity of
reasons.

Thanks for the help - I will check out your suggestions.

Will

"Thomas Heller" <th*****@python.net> wrote in message
news:ll**********@python.net...
"Will" <ws*******@netpv.com> writes:
Is there multi-media support in Python? So I can...

1 - play video in all the standard formats... windows & Mac?
2 - play flash files
3 - Power Point
4 - Standard graphic formats
5 - Sound in all the standard formats
6 - etc

Please note requirements: And, on video's, flash files, Power Point, Graphic files, I need to have those show within my programs "window" along with some other text... so I need to be able to size the video and locate it in the window... so if the program simply pop's up the Windows Media Player or
QuickTime or whatever as a separate window... no good... it all needs to be integrated into a single window along with text and other stuff...

If so, is it in the standard release or has someone created a module just for multi-media integration?


Well, maybe pygame contains something like this.

OTOH, there's Henk Punt's venster library, which is based on the ctypes
module. (If you use windows you may want to look into ctypes anyway - it
allows to make windows api calls even when they are not wrapped by Mark
Hammond's win32all extensions.)

venster contains samples which embed the internet explorer webbrowser
control in a window, it can has a sample which plays flash files in a
window, and it shows how to embed the windows media player.

You can probably to something similar using the pythonwin application
framework in win32all (oh, wait, the official name is now pywin32) which
is based on a python wrapping of the mfc.

Thomas

Jul 18 '05 #4

P: n/a
Will wrote:
Is there multi-media support in Python? So I can...

1 - play video in all the standard formats... windows & Mac?
2 - play flash files
3 - Power Point
4 - Standard graphic formats
5 - Sound in all the standard formats
6 - etc


Python is a programming language. All it does is computations. Python
can be embedded into environments that can do more than computations.
e.g. you can embed it into a Windows MFC window or a Pygame application
or a Macintosh Carbon application. In each environment you will get a
different mix of features.

If you tell us your operating system we can tell you what environment
you might want to embed Python in with all of these capabilities. Python
itself has a lot less to do with it than the GUI you are using Python
within.

Paul Prescod

Jul 18 '05 #5

P: n/a
DH
Paul Prescod wrote:
Will wrote:
Is there multi-media support in Python? So I can...

1 - play video in all the standard formats... windows & Mac?
2 - play flash files
3 - Power Point
4 - Standard graphic formats
5 - Sound in all the standard formats
6 - etc

Python is a programming language. All it does is computations. Python
can be embedded into environments that can do more than computations.
e.g. you can embed it into a Windows MFC window or a Pygame application
or a Macintosh Carbon application. In each environment you will get a
different mix of features.

If you tell us your operating system we can tell you what environment
you might want to embed Python in with all of these capabilities. Python
itself has a lot less to do with it than the GUI you are using Python
within.


He already did. See the excerpt you quoted.
Jul 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.