[SDL] Playing a movie in a non-full screen rectangle - possible?
Thomas Hentschel Lund
thomas at trylleskoven.dk
Thu Sep 4 07:02:01 PDT 2003
Thanks - nice URL. I was hoping not to use OpenGL though, but straight
As the author on nehe states, its almost impossible to google for info
on playing videos from code - much less details like how to do it
Just all the codec stuff scares the sh*t out of me, so I have no clue on
where to start on this. So thx for one solution I can fall back upon.
Anyone else? Is there really no one who played around with video
ons, 2003-09-03 kl. 10:15 skrev J Anderson:
> Thomas Hentschel Lund wrote:
> > Hi,
> > I would really like to play a mpeg2 movie (could be converted to
> > anything else if needed) as a part of an application in a rectangle that
> > is not full screen. But I simply cant find any info on how to do this,
> > and a few feeble n00b attempts to write the code simply fails with hard
> > crashes.
> > I've looked at the smjpeg and smpeg lib and what else I could find on
> > the sdl page + Google, but all I can find are full screen examples, or
> > examples that do not run on Windows (the main platform for my app).
> > So could someone please point me to some example code that shows me how
> > to create a rectangle on a screen and play a movie? I'll promise to send
> > tons of virtual beer ;-)
> > Thanks a lot!!!
> > /Thomas
> You could try the avi format, parhaps on an opengl context as in:
> Good luck
> SDL mailing list
> SDL at libsdl.org
Thomas Hentschel Lund <thomas at trylleskoven.dk>
More information about the SDL