[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Alpha Release of the movie module



Okay, so week of testing is over, I've got updates, plans, and tasty schedules here at my blog:
http://www.oddco.ca/zeroth/zblog/2009/06/29/movie-module-progress-week-6/

Feedback on proposed addition of features please?

On Mon, Jun 22, 2009 at 3:05 PM, Tyler Laing <trinioler@xxxxxxxxx> wrote:

Due to a few requests, I've also added a very in-depth test script to my branch. It demonstrates each feature, and due to the comprehensiveness, is an excellent candidate to test recent changes with. Of course, it has a short cut to a file I know I have available on my computer, which you will have to change if you want to use it.

It demonstrates play, pause, stop, resizing, surface reassignment, etc. Unfortunately, on my test video file, it dies the fourth time pause is called, after changing the movie object to surfaces rather than Overlays. However, I did commit a recent fix today for stopping and playing again on the same movie object.

-Tyler

On Fri, Jun 19, 2009 at 8:19 PM, Tyler Laing <trinioler@xxxxxxxxx> wrote:
Seeking will be a feature I'll work on for the Beta release. Loops of a section of video is an unusual request, I'd have to consider that. It wouldn't be possible with the ffmpeg backend, not without some serious coding effort. However, using one of the backends which wrap a video player, once they're more mature, would be advisable. You could probably customize the wrapper code to, in the case of VLC, use a playlist, and play arbritary clips on the playlist on command. So yes, I think it would be possible! I should probably also clarify what the projected final features will be as well with the community, as I have a much better grasp of what is possible.


On Fri, Jun 19, 2009 at 7:59 PM, Luke Paireepinart <rabidpoobear@xxxxxxxxx> wrote:
Tyler Laing wrote:
Hello all,

I would like to announce the alpha release of the new movie module. The details can be found here, http://www.oddco.ca/zeroth/zblog/2009/06/19/movie-module-progress-week-5/
but in short here is what the movie module can do now:

   * Play videos, complete with audio
   * Pause, and stop
   * Looping for discrete or infinite numbers of times
   * Resize the window on the fly
   * Direct all the video output to a pygame surface, which can be
     moved around, blitted, flipped upside down, blitted on top of or
     under another surface, etc.
   * Has several backends with basic functionality. Right now the vlc
     backend works, but it has not undergone serious testing yet. The
     ffmpeg-wrapper backend has been what I've spent most of the last
     five weeks on.If the ffmpeg-wrapper backend fails, then it'll
     use the vlc backend, and if that fails, it'll use the dummy
     backend, just so your game or application would continue to work.

Hey Tyler,
one thing I would like to do for an application I'm developing in Pygame is to play a short movie clip (like say 20 seconds) as well as looping parts of it and swapping between multiple short clips.
For example, say the user has a full screen of black.  if they click in the top-left quadrant, one video will play fullscreen until they release their mouse.  then they click in the bottom-right, and a different video will play full-screen until they release their mouse.
So it would be many short clips all playing in a non-predetermined order.
Is this something I could use your module for, potentially? if I preloaded the movies, maybe?  can you do arbitrary seeks and loops of only particular sections of the video?

Thanks,
-Luke



--
Visit my blog at http://oddco.ca/zeroth/zblog



--
Visit my blog at http://oddco.ca/zeroth/zblog



--
Visit my blog at http://oddco.ca/zeroth/zblog