Newbie question on animation

Hello, I’d like to show a short mpeg movie or flic in a loop on the
main screen and at the same time blit some images over. Can anyone
point to me what libraries to use? I’m just beginning to use SDL but
just the standard libraries.

Thanks
Javier____________________________________________________
Sell on Yahoo! Auctions ? no fees. Bid on great items.
http://auctions.yahoo.com/

I’d probably do this:

  • Use “SMPEG” library
  • Have it blit to an off-screen surface
  • Whenever I have a chance, copy from that surface to the main window
  • Blit my own junk on top of it, on the main window
  • SDL_Flip() or SDL_UpdateRect() to make it display

You could get SMPEG to blit directly to your main window’s surface, but
I think you’ll need to worry about timing a little bit more.
(By the time you’re done blitting your own stuff on top of the MPEG video,
SMPEG might blit a new frame :^) )

Good luck!On Fri, Jul 08, 2005 at 11:18:07AM -0700, Javier Soques wrote:

Hello, I’d like to show a short mpeg movie or flic in a loop on the
main screen and at the same time blit some images over. Can anyone
point to me what libraries to use? I’m just beginning to use SDL but
just the standard libraries.


-bill! Picn*x14 — Linux Anniversary Picnic & BBQ!
bill at newbreedsoftware.com Sunnyvale Baylands Park, Sunday, August 14th
http://newbreedsoftware.com/ http://linuxpicnic.org/ to RSVP & volunteer!

Thanks, I’ll give it a try.

— Bill Kendrick wrote:> On Fri, Jul 08, 2005 at 11:18:07AM -0700, Javier Soques wrote:

Hello, I’d like to show a short mpeg movie or flic in a loop on the
main screen and at the same time blit some images over. Can anyone
point to me what libraries to use? I’m just beginning to use SDL
but
just the standard libraries.

I’d probably do this:

  • Use “SMPEG” library
  • Have it blit to an off-screen surface
  • Whenever I have a chance, copy from that surface to the main
    window
  • Blit my own junk on top of it, on the main window
  • SDL_Flip() or SDL_UpdateRect() to make it display

You could get SMPEG to blit directly to your main window’s surface,
but
I think you’ll need to worry about timing a little bit more.
(By the time you’re done blitting your own stuff on top of the MPEG
video,
SMPEG might blit a new frame :^) )

Good luck!


-bill! Picn*x14 — Linux Anniversary Picnic
& BBQ!
bill at newbreedsoftware.com Sunnyvale Baylands Park, Sunday,
August 14th
http://newbreedsoftware.com/ http://linuxpicnic.org/ to RSVP &
volunteer!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com