There seem to be no downloads or docs about that portability claim.
So their remark about challenging is probably quite right. I think
I'll wait until there are downloads for MacOSX, and Windows before
declaring it portable.
I think python gst needs a lot of work.
The documentation could be improved a lot. I just tried some examples
in the debian package. Python gst is only available for python 2.3 not
python 2.4 on debian. Pymedia is not part of debian yet, although a
.deb package is available. I didn't think much of the examples...
One of the python-gst examples had an indentation error.
File "vorbisplay.py", line 125
pass
^
IndentationError: expected an indented block
It was a simple fix. I played some .ogg files with it and it used up
twice as much cpu as pygame did to play the same file. I'm not sure
why, but I think it may be to do with the sample rate?
It's a lot lower level than the pygame interface for playing music.
Pygame can use 2 lines to play music. load("somefile.ogg") then
play(). Gstreamer offers more possibilities though.
Pymedia offers a flexible interface for playing sounds too. However
pymedia also has the high level Player class.
player= pymedia.Player()
player.start()
player.startPlayback( '<YOUR_MP3_FILE>' )
As far as video goes... pygame only has smpeg support, and not on windows.
I can not find an example with gstreamer to play video. The play.py
example had this error.
Traceback (most recent call last):
File "play.py", line 270, in ?
sys.exit(main(sys.argv))
File "play.py", line 263, in main
w = PlayerWindow()
File "play.py", line 126, in __init__
self.player = GstPlayer()
File "play.py", line 20, in __init__
self.player = gst.element_factory_make("playbin", "player")
gst.PluginNotFoundError: playbin
The gst123 example didn't seem to work for videos either. It printed
no error, and showed no video.
Both pymedia and python gst have changing apis as they are developed.
pygame is fairly stable(stagnant ;) api wise.
Anyway... that is my perception of the three packages. Each have
their own strengths and weaknesses.
On 4/20/06, Mark Heslep <[EMAIL PROTECTED]> wrote:
> Rene Dudfield wrote:
> > Pymedia works on windows and *nix. I think gstreamer just works on
> > *nix. Not positive though. I don't think either work on macosx.
> >
> It works on Win32, MacOS though its definitely Unix centric:
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/faq/html/chapter-general.html#general-platforms
> > gstreamer is a plugin pipeline architecture, where you can construct
> > pipelines for processing sound and video.
> >
> >
> >
> Yes. Its generally a backend which is used by projects like the media
> player Totem, Fluendo, etc. You can though create a command line player
> with a simple:
> > gst-launch playbin uri=file:///<my media clip>
> In this case 'playbin' is a built in, dynamically constructed pipeline
> containing a file source element, a decoder element, and a video display
> 'sink' element all linked together. If the URI had specified a net or
> DVD target it would have used the appropriate source handler. This
> command line parsing feature makes a great debugging tool for code.
>
> Anyway, my interest here was to see where the two projects might gain
> from one another. In particular I'd like to see the Python focus of gst
> to grow stronger.
>
> Mark
>
>
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users