Playing a movie in a non-full screen rectangle -possible?

As far as I’m aware, VideoLAN (http://www.videolan.org/) has a SDL backend
and plays MPEG-2. It’s also GPL, so you should be able to look at that and
see how they do it…

Neil> ----- Original Message -----

From: thomas@trylleskoven.dk (Thomas Lund)
To:
Sent: Thursday, September 04, 2003 3:01 PM
Subject: Re: [SDL] Playing a movie in a non-full screen rectangle -possible?

Thanks - nice URL. I was hoping not to use OpenGL though, but straight
forward SDL.

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
non-full screen.

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
playback?

/Thomas

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 :wink:

Thanks a lot!!!

/Thomas

You could try the avi format, parhaps on an opengl context as in:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=35.

Good luck


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

Thomas Hentschel Lund


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