pyeMedia

Message
Erik,

Wow, that’s really ambitious.

I write an open source app using wxPython for academic video analysis called Transana, which you might find interesting to look at. The web site is at http://www.transana.org and the source code is at http://sourceforge.net/projects/transana. You might particularly want to look at video_player.py, which (when run as a stand-alone) will play most videos that can be displayed in Windows Media Player or QuickTime on Windows or just QuickTime on the Mac, or gstreamer Linux. It’s based on wx.MediaCtrl.

If you make good progress on your app, I’d be really interested in seeing your code. Some day I’d love to add the capacity to take the virtual clips I create and manufacture a real stand-alone video file from them.

David K. Woods, Ph.D.
Researcher, Transana Lead Developer
Wisconsin Center for Education Research
University of Wisconsin, Madison
http://www.transana.org

···

-----Original Message-----
From: Erik Vandamme [mailto:erik1vandamme@gmail.com]
Sent: Thursday, February 21, 2008 3:17 PM
To: wxPython-users@lists.wxwidgets.org
Subject:
Re: [wxPython-users] pyeMedia

David,
I am trying to make a video pre-edit program for web presentation.
So the operator:
loads in a bunch of video clips,(AVI or Mpeg2 or Mpeg4)
looks at clips and
decides which ones to dock the head or tail of( cause he started to early and/or forgot to stop the camera)
all clips are then combined/compressed into .flv or .swf format and ftp-ed to professional editors who will publish it on the web

So now I am also trying wxMedia, but I am still so clumsy with Python(wx - boa) that I can barely discern bugs from my own mistakes!!!

**Erik Vandamme
54 Hilltop Road - WAMBERAL NSW 2260 Australia
erik1vandamme@gmail.com
Skype - erik_vandamme
02 43843613 - 0406 042750**

David Woods wrote:

Erik,

If I remember right, you have to build your own binaries from the source. 
What is it you are trying to do?  There may be better ways of doing it than pyMedia, which is buggy if I remember right and a bit stale by now.  It's been a year and a half since they updated their source code.

David

-----Original Message-----
From: Erik Vandamme [mailto:erik1vandamme@gmail.com ]
Sent: Wednesday, February 20, 2008 11:04 PM
To: wxPython-users@lists.wxwidgets.org
Subject:
Re: [wxPython-users] pyeMedia

Thanks David,
I cant foind a windows binary and all the doco i find talks about wxWidgets, not wxPython??
Cheers

**Erik Vandamme
54 Hilltop Road - WAMBERAL NSW 2260 Australia
erik1vandamme@gmail.com
Skype - erik_vandamme
02 43843613 - 0406 042750**

David Woods wrote:


Eric,
I played with PyMedia a year or so ago, but gave it up for wxMediaCtrl, which met my video needs better. That was obviously several wx versions ago. I also found PyMedia to be too slow to do some audio extraction I needed.
David
----- Original Message -----
From: Erik Vandamme <erik1vandamme@gmail.com>
Date: Wednesday, February 20, 2008 5:07 pm
Subject: [wxPython-users] pyeMedia
To: wxPython User-List <wxPython-users@lists.wxwidgets.org>

HAs anybody played with this video/audio lib? I am using Active Python
2.5 and wxPython 2.8.7.1
I had a very hard time to find a Pyemedia windows binary to match. However none of the examples seem to work (or better they don't do
anything and stop without leaving any trace or error log).
Any suggestions?
Cheers
-- Erik Vandamme
54 Hilltop Road - WAMBERAL NSW 2260 Australia
erik1vandamme@gmail.com
Skype - erik_vandamme
02 43843613 - 0406 042750
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
  --------------------------------------------------------------------- To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
  For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

--------------------------------------------------------------------- To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

David,
I am supposed to be the slick programmer, nut I am probably missing a
basic issue with Python,.
I did as you … :slight_smile: see what happened:

… video.ShowPlayerControls(flags =
wx.media.MEDIACTRLPLAYERCONTROLS_STEP

)

… video.Play()

… def OnCloseWindow(self,event):

… self.Destroy()

… class MyApp(wx.App):

File “”, line 17

class MyApp(wx.App):

    ^

SyntaxError: invalid syntax

def OnInit(self):

File “”, line 1

def OnInit(self):

^

IndentationError: unexpected indent

    frame = MyFrame(None,'Form1')

File “”, line 1

frame = MyFrame(None,'Form1')

^

IndentationError: unexpected indent

    frame.Show(True)

File “”, line 1

frame.Show(True)

^

IndentationError: unexpected indent

return True

File “”, line 1

return True

^

IndentationError: unexpected indent

app=MyApp(redirect=True)

Traceback (most recent call last):

File “”, line 1, in

NameError: name ‘MyApp’ is not defined

app.MainLoop()

Traceback (most recent call last):

File “”, line 1, in

NameError: name ‘app’ is not defined

David Woods wrote:

···
**
Erik Vandamme
54 Hilltop Road - WAMBERAL NSW 2260 Australia
Skype - erik_vandamme
02 43843613 - 0406 042750**

erik1vandamme@gmail.com

Message
Erik,

Wow, that’s really ambitious.

I write an open source app using wxPython for
academic video analysis called Transana, which you might find
interesting to look at. The web site is at http://www.transana.org and the
source code is at http://sourceforge.net/projects/transana.
You might particularly want to look at video_player.py, which (when run
as a stand-alone) will play most videos that can be displayed in
Windows Media Player or QuickTime on Windows or just QuickTime on the
Mac, or gstreamer Linux. It’s based on wx.MediaCtrl.

If you make good progress on your app, I’d be
really interested in seeing your code. Some day I’d love to add the
capacity to take the virtual clips I create and manufacture a real
stand-alone video file from them.

David K. Woods, Ph.D.

Researcher, Transana Lead Developer

Wisconsin Center for Education Research

University of Wisconsin, Madison

http://www.transana.org

-----Original Message-----
From: Erik Vandamme Thursday, February 21, 2008 3:17 PM
Re: [wxPython-users] pyeMedia

David,

I am trying to make a video pre-edit program for web presentation.

So the operator:

loads in a bunch of video clips,(AVI or Mpeg2 or Mpeg4)

looks at clips and

decides which ones to dock the head or tail of( cause he started to
early and/or forgot to stop the camera)

all clips are then combined/compressed into .flv or .swf format and
ftp-ed to professional editors who will publish it on the web

So now I am also trying wxMedia, but I am still so clumsy with
Python(wx - boa) that I can barely discern bugs from my own mistakes!!!

David Woods wrote:

To unsubscribe, e-mail: For additional commands, e-mail:
mailto:erik1vandamme@gmail.com
Sent:
**To:**wxPython-users@lists.wxwidgets.org
Subject:

**
Erik Vandamme
54 Hilltop Road - WAMBERAL NSW 2260 Australia
Skype - erik_vandamme
02 43843613 - 0406 042750**

erik1vandamme@gmail.com

Erik,

If I remember right, you have to build your own
binaries from the source.

What is it you are trying to do? There may be
better ways of doing it than pyMedia, which is buggy if I remember
right and a bit stale by now. It’s been a year and a half since they
updated their source code.

David

-----Original Message-----
From: Erik Vandamme
Wednesday, February 20, 2008 11:04 PM
Re: [wxPython-users] pyeMedia

Thanks David,

I cant foind a windows binary and all the doco i find talks about
wxWidgets, not wxPython??

Cheers

David Woods wrote:

To unsubscribe, e-mail: For additional commands, e-mail:
mailto:erik1vandamme@gmail.com
Sent:
**To:**wxPython-users@lists.wxwidgets.org
Subject:

**
Erik Vandamme
54 Hilltop Road - WAMBERAL NSW 2260 Australia
Skype - erik_vandamme
02 43843613 - 0406 042750**

erik1vandamme@gmail.com


Eric,
I played with PyMedia a year or so ago, but gave it up for wxMediaCtrl, which met my video needs better. That was obviously several wx versions ago. I also found PyMedia to be too slow to do some audio extraction I needed.
David
----- Original Message -----
From: Erik Vandamme Date: Wednesday, February 20, 2008 5:07 pm
Subject: [wxPython-users] pyeMedia
To: wxPython User-List

HAs anybody played with this video/audio lib? I am using Active Python
2.5 and wxPython 2.8.7.1
I had a very hard time to find a Pyemedia windows binary to match. However none of the examples seem to work (or better they don't do
anything and stop without leaving any trace or error log).
Any suggestions?
Cheers
-- Erik Vandamme
54 Hilltop Road - WAMBERAL NSW 2260 Australia
Skype - erik_vandamme
02 43843613 - 0406 042750
---------------------------------------------------------------------
To unsubscribe, e-mail: For additional commands, e-mail:
---------------------------------------------------------------------
To unsubscribe, e-mail: For additional commands, e-mail:

erik1vandamme@gmail.comwxPython-users@lists.wxwidgets.orgerik1vandamme@gmail.comwxPython-users-unsubscribe@lists.wxwidgets.orgwxPython-users-help@lists.wxwidgets.orgwxPython-users-unsubscribe@lists.wxwidgets.orgwxPython-users-help@lists.wxwidgets.orgwxPython-users-unsubscribe@lists.wxwidgets.orgwxPython-users-help@lists.wxwidgets.orgwxPython-users-unsubscribe@lists.wxwidgets.orgwxPython-users-help@lists.wxwidgets.org

Message
Sorry, I don’t know what it could be. The whole indenting thing is pretty basic to Python, and clearly there’s something about your indents that Python’s not happy with.

But literally, I cut and pasted the code from your earlier e-mail into an IDLE window, fixed the “return True” line which had lost its indent, changed the video file name, and saved the file as a text file with a .py extension. Then I ran it from the command prompt. I know (from experience) that “It Works For Me” isn’t very helpful.

It looks like you’re pasting directly into a python shell rather than creating a file and running it, maybe. Is that what the ‘File “”’ part of the error refers to? I can’t tell. It looks like something about your environment, anyway, and the way you’re trying to run code, but not something about the code itself. Get a “Hello World” program running from a file and expand from there, I guess.

FWIW, the file is attached.

David

Erik.py (907 Bytes)

···

-----Original Message-----
From: Erik Vandamme [mailto:erik1vandamme@gmail.com]
Sent: Thursday, February 21, 2008 4:19 PM
To: wxPython-users@lists.wxwidgets.org
Subject:
Re: [wxPython-users] pyeMedia

David,
I am supposed to be the slick programmer, nut I am probably missing a basic issue with Python,.
I did as you … :slight_smile: see what happened:

… video.ShowPlayerControls(flags = wx.media.MEDIACTRLPLAYERCONTROLS_STEP
)
… video.Play()

… def OnCloseWindow(self,event):
… self.Destroy()

… class MyApp(wx.App):
File “”, line 17
class MyApp(wx.App):
^
SyntaxError: invalid syntax

def OnInit(self):

File “”, line 1
def OnInit(self):
^
IndentationError: unexpected indent

    frame = MyFrame(None,'Form1')
File "<stdin>", line 1
frame = MyFrame(None,'Form1')
  ^

IndentationError: unexpected indent

    frame.Show(True)

File “”, line 1
frame.Show(True)
^
IndentationError: unexpected indent

return True
File "<stdin>", line 1
  return True
^

IndentationError: unexpected indent

app=MyApp(redirect=True)
Traceback (most recent call last):
File “”, line 1, in
NameError: name ‘MyApp’ is not defined
app.MainLoop()
Traceback (most recent call last):
File “”, line 1, in
NameError: name ‘app’ is not defined

**Erik Vandamme
54 Hilltop Road - WAMBERAL NSW 2260 Australia
erik1vandamme@gmail.com
Skype - erik_vandamme
02 43843613 - 0406 042750**

David Woods wrote:

Erik,

Wow, that’s really ambitious.

I write an open source app using wxPython for academic video analysis called Transana, which you might find interesting to look at.  The web site is at [http://www.transana.org](http://www.transana.org) and the source code is at [http://sourceforge.net/projects/transana](http://sourceforge.net/projects/transana)    .  You might particularly want to look at video_player.py, which (when run as a stand-alone) will play most videos that can be displayed in Windows Media Player or QuickTime on Windows or just QuickTime on the Mac, or gstreamer Linux.  It's based on wx.MediaCtrl.
If you make good progress on your app, I'd be really interested in seeing your code.  Some day I'd love to add the capacity to take the virtual clips I create and manufacture a real stand-alone video file from them. 

David K. Woods, Ph.D.
Researcher, Transana Lead Developer
Wisconsin Center for Education Research
University of Wisconsin, Madison
http://www.transana.org

-----Original Message-----
From: Erik Vandamme [mailto:erik1vandamme@gmail.com ]
Sent: Thursday, February 21, 2008 3:17 PM
To: wxPython-users@lists.wxwidgets.org
Subject:
Re: [wxPython-users] pyeMedia

David,
I am trying to make a video pre-edit program for web presentation.
So the operator:
loads in a bunch of video clips,(AVI or Mpeg2 or Mpeg4)
looks at clips and
decides which ones to dock the head or tail of( cause he started to early and/or forgot to stop the camera)
all clips are then combined/compressed into .flv or .swf format and ftp-ed to professional editors who will publish it on the web

  So now I am also trying wxMedia, but I am still so clumsy with Python(wx - boa) that I can barely discern bugs from my own mistakes!!!
**Erik Vandamme
54 Hilltop Road - WAMBERAL NSW 2260 Australia
erik1vandamme@gmail.com
Skype - erik_vandamme
02 43843613 - 0406 042750**

David Woods wrote:

Erik,

    If I remember right, you have to build your own binaries from the source. 
    What is it you are trying to do?  There may be better ways of doing it than pyMedia, which is buggy if I remember right and a bit stale by now.  It's been a year and a half since they updated their source code.

David

-----Original Message-----
From: Erik Vandamme [mailto:erik1vandamme@gmail.com ]
Sent: Wednesday, February 20, 2008 11:04 PM
To:
wxPython-users@lists.wxwidgets.org
Subject:
Re: [wxPython-users] pyeMedia

Thanks David,
I cant foind a windows binary and all the doco i find talks about wxWidgets, not wxPython??
Cheers

**Erik Vandamme
54 Hilltop Road - WAMBERAL NSW 2260 Australia
erik1vandamme@gmail.com
Skype - erik_vandamme
02 43843613 - 0406 042750**

David Woods wrote:


Eric,
I played with PyMedia a year or so ago, but gave it up for wxMediaCtrl, which met my video needs better. That was obviously several wx versions ago. I also found PyMedia to be too slow to do some audio extraction I needed.
David
----- Original Message -----
From: Erik Vandamme <erik1vandamme@gmail.com>
Date: Wednesday, February 20, 2008 5:07 pm
Subject: [wxPython-users] pyeMedia
To: wxPython User-List <wxPython-users@lists.wxwidgets.org>

HAs anybody played with this video/audio lib? I am using Active Python
2.5 and wxPython 2.8.7.1
I had a very hard time to find a Pyemedia windows binary to match. However none of the examples seem to work (or better they don't do
anything and stop without leaving any trace or error log).
Any suggestions?
Cheers
-- Erik Vandamme
54 Hilltop Road - WAMBERAL NSW 2260 Australia
erik1vandamme@gmail.com
Skype - erik_vandamme
02 43843613 - 0406 042750
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
      --------------------------------------------------------------------- To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
      For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
  --------------------------------------------------------------------- To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
  For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

--------------------------------------------------------------------- To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org