[pygame] State of the movie module in pygame 1.9.0

2010-05-10 Thread Bram Cymet
Hi,

What is the state of the movie module in pygame 1.9? Is it still the old
one using smpeg or had it been updated to use ffmpeg?

Thanks,

-- 
Bram Cymet
Software Developer
Canadian Bank Note Co. Ltd.
Cell: 613-608-9752




Re: [pygame] State of the movie module in pygame 1.9.0

2010-05-10 Thread René Dudfield
hi,

it's the old one.

The new one needs porting to mac/windows... but should work on linux at
least.

cheers,


On Mon, May 10, 2010 at 12:27 PM, Bram Cymet bcy...@cbnco.com wrote:

 Hi,

 What is the state of the movie module in pygame 1.9? Is it still the old
 one using smpeg or had it been updated to use ffmpeg?

 Thanks,

 --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752





Re: [pygame] State of the movie module in pygame 1.9.0

2010-05-10 Thread Bram Cymet
Thanks,

I am using linux. Do you know where I can find the patch to use ffmpeg
in pygame?

On 05/10/2010 07:44 AM, René Dudfield wrote:
 hi,

 it's the old one.

 The new one needs porting to mac/windows... but should work on linux
 at least.

 cheers,


 On Mon, May 10, 2010 at 12:27 PM, Bram Cymet bcy...@cbnco.com
 mailto:bcy...@cbnco.com wrote:

 Hi,

 What is the state of the movie module in pygame 1.9? Is it still
 the old
 one using smpeg or had it been updated to use ffmpeg?

 Thanks,

 --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752





-- 
Bram Cymet
Software Developer
Canadian Bank Note Co. Ltd.
Cell: 613-608-9752




Re: [pygame] State of the movie module in pygame 1.9.0

2010-05-10 Thread Tyler Laing
You just need to change a few lines in the build file Setup.in:

#_movie src/_gsound.c src/_gmovie.c src/_gcommand.c src/gmovie.c $(SDL)
$(AVFORMAT) $(SWSCALE) $(MIXER) $(DEBUG)

Uncomment that line.

Then type ./configure

and then compile and build. :)The code is all there and should work if you
have the ffmpeg libraries installed. Let me know if it doesn't.

On Mon, May 10, 2010 at 5:09 AM, Bram Cymet bcy...@cbnco.com wrote:

  Thanks,

 I am using linux. Do you know where I can find the patch to use ffmpeg in
 pygame?

 On 05/10/2010 07:44 AM, René Dudfield wrote:

 hi,

 it's the old one.

 The new one needs porting to mac/windows... but should work on linux at
 least.

 cheers,


 On Mon, May 10, 2010 at 12:27 PM, Bram Cymet bcy...@cbnco.com wrote:

 Hi,

 What is the state of the movie module in pygame 1.9? Is it still the old
 one using smpeg or had it been updated to use ffmpeg?

 Thanks,

 --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752





 --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752





-- 
Tyler Laing
Online Editor
The Phoenix Newspaper
(1) 250 863-4869

University of British Columbia - Okanagan
 University Way
Kelowna, BC UNC 109
Student Services Building


Re: [pygame] State of the movie module in pygame 1.9.0

2010-05-10 Thread Bram Cymet
I got it to compile fine but now I am getting a seg fault when running
__movie_test.py in the examples directory:

Program received signal SIGSEGV, Segmentation fault.
0x7fffea37c63e in _movie_init (self=0xbe3cb0, args=value optimized
out,
kwds=value optimized out) at src/gmovie.c:89
89if(surf  PySurface_Check(surf))

Any idea what could be messing up?

On 05/10/2010 10:19 AM, Tyler Laing wrote:
 You just need to change a few lines in the build file Setup.in:

 #_movie src/_gsound.c src/_gmovie.c src/_gcommand.c src/gmovie.c
 $(SDL) $(AVFORMAT) $(SWSCALE) $(MIXER) $(DEBUG)

 Uncomment that line.

 Then type ./configure

 and then compile and build. :)The code is all there and should work if
 you have the ffmpeg libraries installed. Let me know if it doesn't.

 On Mon, May 10, 2010 at 5:09 AM, Bram Cymet bcy...@cbnco.com
 mailto:bcy...@cbnco.com wrote:

 Thanks,

 I am using linux. Do you know where I can find the patch to use
 ffmpeg in pygame?

 On 05/10/2010 07:44 AM, René Dudfield wrote:
 hi,

 it's the old one.

 The new one needs porting to mac/windows... but should work on
 linux at least.

 cheers,


 On Mon, May 10, 2010 at 12:27 PM, Bram Cymet bcy...@cbnco.com
 mailto:bcy...@cbnco.com wrote:

 Hi,

 What is the state of the movie module in pygame 1.9? Is it
 still the old
 one using smpeg or had it been updated to use ffmpeg?

 Thanks,

 --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752





 -- 
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752

 




 -- 
 Tyler Laing
 Online Editor
 The Phoenix Newspaper
 (1) 250 863-4869

 University of British Columbia - Okanagan
  University Way
 Kelowna, BC UNC 109
 Student Services Building


-- 
Bram Cymet
Software Developer
Canadian Bank Note Co. Ltd.
Cell: 613-608-9752




Re: [pygame] State of the movie module in pygame 1.9.0

2010-05-10 Thread Tyler Laing
Could you please comment out lines in __movie_test.py so we can figure out
which init this error is happening on?

-Tyler

2010/5/10 Bram Cymet bcy...@cbnco.com

  I got it to compile fine but now I am getting a seg fault when running
 __movie_test.py in the examples directory:

 Program received signal SIGSEGV, Segmentation fault.
 0x7fffea37c63e in _movie_init (self=0xbe3cb0, args=value optimized
 out,
 kwds=value optimized out) at src/gmovie.c:89
 89if(surf  PySurface_Check(surf))

 Any idea what could be messing up?


 On 05/10/2010 10:19 AM, Tyler Laing wrote:

 You just need to change a few lines in the build file Setup.in:

 #_movie src/_gsound.c src/_gmovie.c src/_gcommand.c src/gmovie.c $(SDL)
 $(AVFORMAT) $(SWSCALE) $(MIXER) $(DEBUG)

 Uncomment that line.

 Then type ./configure

 and then compile and build. :)The code is all there and should work if you
 have the ffmpeg libraries installed. Let me know if it doesn't.

 On Mon, May 10, 2010 at 5:09 AM, Bram Cymet bcy...@cbnco.com wrote:

  Thanks,

 I am using linux. Do you know where I can find the patch to use ffmpeg in
 pygame?

 On 05/10/2010 07:44 AM, René Dudfield wrote:

 hi,

 it's the old one.

 The new one needs porting to mac/windows... but should work on linux at
 least.

 cheers,


 On Mon, May 10, 2010 at 12:27 PM, Bram Cymet bcy...@cbnco.com wrote:

 Hi,

 What is the state of the movie module in pygame 1.9? Is it still the old
 one using smpeg or had it been updated to use ffmpeg?

 Thanks,

 --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752





  --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752






 --
 Tyler Laing
 Online Editor
 The Phoenix Newspaper
 (1) 250 863-4869

 University of British Columbia - Okanagan
  University Way
 Kelowna, BC UNC 109
 Student Services Building



 --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752





-- 
Tyler Laing
Online Editor
The Phoenix Newspaper
(1) 250 863-4869

University of British Columbia - Okanagan
 University Way
Kelowna, BC UNC 109
Student Services Building


Re: [pygame] State of the movie module in pygame 1.9.0

2010-05-10 Thread Tyler Laing
Oh wait. Have you changed the filename in __movie_test.py to a valid
moviefile?

-Tyler

2010/5/10 Tyler Laing trinio...@gmail.com

 Could you please comment out lines in __movie_test.py so we can figure out
 which init this error is happening on?

 -Tyler

 2010/5/10 Bram Cymet bcy...@cbnco.com

  I got it to compile fine but now I am getting a seg fault when running
 __movie_test.py in the examples directory:

 Program received signal SIGSEGV, Segmentation fault.
 0x7fffea37c63e in _movie_init (self=0xbe3cb0, args=value optimized
 out,
 kwds=value optimized out) at src/gmovie.c:89
 89if(surf  PySurface_Check(surf))

 Any idea what could be messing up?


 On 05/10/2010 10:19 AM, Tyler Laing wrote:

 You just need to change a few lines in the build file Setup.in:

 #_movie src/_gsound.c src/_gmovie.c src/_gcommand.c src/gmovie.c $(SDL)
 $(AVFORMAT) $(SWSCALE) $(MIXER) $(DEBUG)

 Uncomment that line.

 Then type ./configure

 and then compile and build. :)The code is all there and should work if you
 have the ffmpeg libraries installed. Let me know if it doesn't.

 On Mon, May 10, 2010 at 5:09 AM, Bram Cymet bcy...@cbnco.com wrote:

  Thanks,

 I am using linux. Do you know where I can find the patch to use ffmpeg in
 pygame?

 On 05/10/2010 07:44 AM, René Dudfield wrote:

 hi,

 it's the old one.

 The new one needs porting to mac/windows... but should work on linux at
 least.

 cheers,


 On Mon, May 10, 2010 at 12:27 PM, Bram Cymet bcy...@cbnco.com wrote:

 Hi,

 What is the state of the movie module in pygame 1.9? Is it still the old
 one using smpeg or had it been updated to use ffmpeg?

 Thanks,

 --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752





  --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752






 --
 Tyler Laing
 Online Editor
 The Phoenix Newspaper
 (1) 250 863-4869

 University of British Columbia - Okanagan
  University Way
 Kelowna, BC UNC 109
 Student Services Building



 --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752





 --
 Tyler Laing
 Online Editor
 The Phoenix Newspaper
 (1) 250 863-4869

 University of British Columbia - Okanagan
  University Way
 Kelowna, BC UNC 109
 Student Services Building




-- 
Tyler Laing
Online Editor
The Phoenix Newspaper
(1) 250 863-4869

University of British Columbia - Okanagan
 University Way
Kelowna, BC UNC 109
Student Services Building


Re: [pygame] State of the movie module in pygame 1.9.0

2010-05-10 Thread Tyler Laing
I'll take a look at this when I get home tonight. For now I'm at work. What
this indicates to me is that for some reason surf is seen as an object.

2010/5/10 Bram Cymet bcy...@cbnco.com

  Yes I did.

 The seg fault seems to happen whenever movie.Movie is called.

 It happens both on the line m=movie.Movie(gsdsjgsdj)

 and then on the line m = movie.Movie(filename)


 On 05/10/2010 11:21 AM, Tyler Laing wrote:

 Oh wait. Have you changed the filename in __movie_test.py to a valid
 moviefile?

 -Tyler

 2010/5/10 Tyler Laing trinio...@gmail.com

 Could you please comment out lines in __movie_test.py so we can figure out
 which init this error is happening on?

 -Tyler

 2010/5/10 Bram Cymet bcy...@cbnco.com

  I got it to compile fine but now I am getting a seg fault when running
 __movie_test.py in the examples directory:

 Program received signal SIGSEGV, Segmentation fault.
 0x7fffea37c63e in _movie_init (self=0xbe3cb0, args=value optimized
 out,
 kwds=value optimized out) at src/gmovie.c:89
 89if(surf  PySurface_Check(surf))

 Any idea what could be messing up?


 On 05/10/2010 10:19 AM, Tyler Laing wrote:

 You just need to change a few lines in the build file Setup.in:

 #_movie src/_gsound.c src/_gmovie.c src/_gcommand.c src/gmovie.c $(SDL)
 $(AVFORMAT) $(SWSCALE) $(MIXER) $(DEBUG)

 Uncomment that line.

 Then type ./configure

 and then compile and build. :)The code is all there and should work if
 you have the ffmpeg libraries installed. Let me know if it doesn't.

 On Mon, May 10, 2010 at 5:09 AM, Bram Cymet bcy...@cbnco.com wrote:

 Thanks,

 I am using linux. Do you know where I can find the patch to use ffmpeg
 in pygame?

 On 05/10/2010 07:44 AM, René Dudfield wrote:

 hi,

 it's the old one.

 The new one needs porting to mac/windows... but should work on linux at
 least.

 cheers,


 On Mon, May 10, 2010 at 12:27 PM, Bram Cymet bcy...@cbnco.com wrote:

 Hi,

 What is the state of the movie module in pygame 1.9? Is it still the
 old
 one using smpeg or had it been updated to use ffmpeg?

 Thanks,

 --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752





  --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752






 --
 Tyler Laing
 Online Editor
 The Phoenix Newspaper
 (1) 250 863-4869

 University of British Columbia - Okanagan
  University Way
 Kelowna, BC UNC 109
 Student Services Building



  --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752






 --
 Tyler Laing
 Online Editor
 The Phoenix Newspaper
 (1) 250 863-4869

 University of British Columbia - Okanagan
  University Way
 Kelowna, BC UNC 109
 Student Services Building




 --
 Tyler Laing
 Online Editor
 The Phoenix Newspaper
 (1) 250 863-4869

 University of British Columbia - Okanagan
  University Way
 Kelowna, BC UNC 109
 Student Services Building



 --
 Bram Cymet
 Software Developer
 Canadian Bank Note Co. Ltd.
 Cell: 613-608-9752





-- 
Tyler Laing
Online Editor
The Phoenix Newspaper
(1) 250 863-4869

University of British Columbia - Okanagan
 University Way
Kelowna, BC UNC 109
Student Services Building


Re: [pygame] State of the movie module in pygame 1.9.0

2010-05-10 Thread Lenard Lindstrom

Hi Tyler and Bram,

One thing I noticed that caused seg faults was a movie file that was too 
short, maybe plays only a minute or two in length. For me it a longer 
movie passed more tests, though not all of them worked well. When 
__movie_test.py got to the point where it was printing numbers to the 
terminal -- maybe the second to last while(1) loop -- the system started 
floundering  --  my computer doesn't  have  much memory  --  so it took 
10 minutes before the computer recognize a shutdown signal and power 
down. Either _movie/ffmpeg are memory hogs or there is a memory leak 
somewhere.


Lenard

Tyler Laing wrote:
I'll take a look at this when I get home tonight. For now I'm at work. 
What this indicates to me is that for some reason surf is seen as an 
object.


2010/5/10 Bram Cymet bcy...@cbnco.com mailto:bcy...@cbnco.com

Yes I did.

The seg fault seems to happen whenever movie.Movie is called.

It happens both on the line m=movie.Movie(gsdsjgsdj)

and then on the line m = movie.Movie(filename)



The Phoenix Newspaper
(1) 250 863-4869

University of British Columbia - Okanagan
 University Way
Kelowna, BC UNC 109
Student Services Building




Re: [pygame] GSoC 2010: A New Draw Module

2010-05-10 Thread Lenard Lindstrom

Hi Julian,

A great idea. If the new module implements all the functionality of the 
current modules, then for backwards compatibility the draw module, or 
something like it, can be implemented in Python on top the new module. 
So the new module should have a different name. Though I ported the 
gfxdraw module from pygame2 into pygame, I have shied away from doing 
any enhancements since my only graphics course was taught by an 
electrical engineer, with an emphasis on hardware and an embedded 
graphics language for Fortran the engineer had written (this was some 
time ago). So I'm glad to see someone else take on the job. Be aware 
though, someone will request anti-aliased circles with line thickness 
greater than one. Oh, and Cairo is considered too slow, so wrapping it 
won't do.


Lenard

jug wrote:

Hello!

I'm going to write a new draw module for pygame and pygame2 as part of
GSoC this year. The aim is to have one draw module for pygame that
implements not only the very basic drawing of a few plain color shapes 
but

also drawing of more advanced shapes and whith more advanced attributes
(ie. curves, rounded corners, aa, etc.) as well as alternative filling 
methods
(ie. procedural or image based textures, filling from another 
surface/image

(cloning), etc.). Unlike now the code will be object oriented thus you'll
need to create a (pen) object before using it to draw stuff. That is 
to to keep
code clean and structured and avoid functions with (terribly) long 
parameter
lists. However, I plan to add some shortcuts for basic functionality 
(and maybe

compatibility).

I'm still thinking about concepts and have some more vague ideas in 
mind so

if you have any ideas or suggestions please tell me :)


While development I'll blog about any progress at


Even though I've got svn access to the pygame repo (thank you, rene) I 
also

have a (currently still empty) hg repo with wiki and issue tracker at
http://bitbucket.org/schlangen/pygamedraw


Regards,
Julian