Newbie video (ie, reading and displaying) question

Hi folks,

I’ve been pouring over the Gstreamer docs the past few days and was
quite relieved to find SDL. Basically, I’m looking for a simple library
to let me read video and display graphics images inside a GTK window, so
that I can integrate it into an already existing GTK audio app, which
takes care of it’s own audio i/o directly.

The SDL docs are great, but I don’t see any examples / utilities for
reading video files (eg., mpeg, quicktime, etc…).

Thanks,

DT–
Technical Director - Virginia Center for Computer Music
http://www.virginia.edu/music/vccm.html

SMPEG lets you play MPEG video to an SDL surface (e.g., a window).
I recently posted some 6-month-old code I was toying around with, simply
to entertain myself, which intercept’s SMPEG’s decoded video frames, and
applies interesting effects to them before sending them off to the screen.

It’s not exactly a tutorial, and probably isn’t very good code, and does
a lot more than you need to, but it might be useful :slight_smile:

http://www.newbreedsoftware.com/lab/mpgfx/

As for Quicktime, I’m not sure what solution there is right now.
(Heck, thanks to the lack of support from Apple, it’s really hard to play
them under Linux period. Mplayer does a fairly satisfactory job, I think.
I believe it might use Windows DLLs to get the job done, though :^( )

[Note: I’m no Quicktime or Mplayer expert, so I could be way off ;^) ]

-bill!
bill at newbreedsoftware.com Got kids? Get Tux Paint!
http://newbreedsoftware.com/bill/ http://newbreedsoftware.com/tuxpaint/On Mon, Dec 15, 2003 at 11:49:32PM -0500, David Topper wrote:

The SDL docs are great, but I don’t see any examples / utilities for
reading video files (eg., mpeg, quicktime, etc…).

Quoting Bill Kendrick :> On Mon, Dec 15, 2003 at 11:49:32PM -0500, David Topper wrote:

The SDL docs are great, but I don’t see any examples / utilities for
reading video files (eg., mpeg, quicktime, etc…).

SMPEG lets you play MPEG video to an SDL surface (e.g., a window).
I recently posted some 6-month-old code I was toying around with, simply
to entertain myself, which intercept’s SMPEG’s decoded video frames, and
applies interesting effects to them before sending them off to the screen.

It’s not exactly a tutorial, and probably isn’t very good code, and does
a lot more than you need to, but it might be useful :slight_smile:

http://www.newbreedsoftware.com/lab/mpgfx/

As for Quicktime, I’m not sure what solution there is right now.
(Heck, thanks to the lack of support from Apple, it’s really hard to play
them under Linux period. Mplayer does a fairly satisfactory job, I think.
I believe it might use Windows DLLs to get the job done, though :^( )

[Note: I’m no Quicktime or Mplayer expert, so I could be way off ;^) ]

I would also check out the ffmpeg project - it contains libavcodec (mplayer also
uses libavcodec) which now has native support for sorensen (used for quicktime),
and virtually every other codec you could want. ffmpeg also contains ffplay,
which is a simple sdl-based player.

-brad