May 29

Movie Module Progress Report: Week 2

Category: Uncategorized

At the beginning of the week, I was volunteering at an AI/GI/CRV conference, so I didn’t get very much work done on the module at that point. It was a very interesting conference, lots of fascinating talks, and I worked hard for the conference.

As of Thursday, the conference was finished, and I set about working on the problems plaguing me from last week. After awhile, I decided it would be a better idea to step back, rewrite the code, from a simpler base, and get that working first.

Before, I had been trying to have a PyMovie struct, and three stream structs, for audio, video, and subtitles. However, this was proving to be more complex than I had thought. So now, its all one struct, and I’ve come up with a new design, based on ffmovie.c in the repository that does not use the SDL_Event loop. That was my other realization, that I had to avoid the event loop, and the new design works around it.

It took me one day to rewrite a new base of code, that was smaller, simpler, and easier to hold in my head, get it to a state of compilation, and it works on import. 90% of the initialization of a new Movie object works, and it throws a segfault at the last portion, which I will now be spending time figuring out.

Edit: Per the request of a commenter:

My branch is available at svn://seul.org/svn/pygame/branches/tylerthemovie

1 comment

1 Comment so far

  1. somebody May 30th, 2009 4:34 am

    Would you be so kind to point to the git/svn/hg server of your work?