Video with SDL (H264)?

Hello,

I would like to play back a video with SDL.
The video is encoded with H264.

Has someone done this before?
Can someone be so kind to give me start
with some example code how to do this?

Or can someone give me a example for playing back video on windows using
a directshow filter ?

Many thanks in advance

Gunnar

If you can switch to mpeg1, you can try:

http://www.lokigames.com/development/smpeg.php3On 8/24/06, Gunnar von Boehn wrote:

Hello,

I would like to play back a video with SDL.
The video is encoded with H264.


Guillaume Cottenceau - http://zarb.org/~gc/

Hello,

I would like to play back a video with SDL.
The video is encoded with H264.

Has someone done this before?
Can someone be so kind to give me start
with some example code how to do this?

Use ffmpeg. ffmpeg comes with a sample app that uses SDL. ffmpeg also is one
of the best h264 decoders in existence.

Or can someone give me a example for playing back video on windows using
a directshow filter ?

You don’t. That is not a portable solution. Use ffmpeg.On Thursday 24 August 2006 06:56, Gunnar von Boehn wrote:

Many thanks in advance

Gunnar


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


Patrick McFarland || www.AdTerrasPerAspera.com
"Computer games don’t affect kids; I mean if Pac-Man affected us as kids,
we’d all be running around in darkened rooms, munching magic pills and
listening to repetitive electronic music." – Kristian Wilson, Nintendo,
Inc, 1989

Hello Gunnar,

Thursday, August 24, 2006, 11:56:52 AM, you wrote:

Hello,

I would like to play back a video with SDL.
The video is encoded with H264.

ffmpeg (specifically, libavcodec) does seem to be the best way to do
this.

I didn’t have much luck building a stripped down version of this
though. By default it builds with tons of codecs.

There’s also the x264 library, part of videolan, but that’s licenced
under “all your code are belong to GNU” so it most likely isn’t
suitable.–
Best regards,
Peter mailto:@Peter_Mulholland

Everything Patrick said is right. However, keep in mind that like
almost all multimedia codecs out there, H264 is patent-protected and
therefore not free to use. Unless you actually have a license to use
it, I’d suggest you use another codec instead. There’s the old MPEG1
codec, and also Ogg Theora which is in alpha stages but still usable.On 8/26/06, Patrick McFarland wrote:

On Thursday 24 August 2006 06:56, Gunnar von Boehn wrote:

Hello,

I would like to play back a video with SDL.
The video is encoded with H264.

Has someone done this before?
Can someone be so kind to give me start
with some example code how to do this?

Use ffmpeg. ffmpeg comes with a sample app that uses SDL. ffmpeg also is one
of the best h264 decoders in existence.

Or can someone give me a example for playing back video on windows using
a directshow filter ?

You don’t. That is not a portable solution. Use ffmpeg.

  • SR