The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
[SDL2]-Simple Method To Play Videos In SDL2?
JeZ-l-Lee


Joined: 20 Sep 2009
Posts: 572
Location: Long Island, New York, United States, Earth
[SDL2]-Simple Method To Play Videos In SDL2?

Hi,

My team and I need an easy method to play AVI videos using:
SDL2, SDL2_Image, SDL2_Mixer, & SDL2_TTF which is cross-platform.

Is there anything out there that can do the above?
We want video images to be pumped through SDL2
and audio pumped through SDL2_Mixer.

Any help would be greatly appreciated, thank you!
[SDL2]-Simple Method To Play Videos In SDL2?
Pallav Nawani


Joined: 19 May 2011
Posts: 122
Location: Dehradun, India
There is no ready-made solution for this. SDL2_image can only open jpeg images, and SDL2_Mixer has no provision for an external audio source. You will probably need to integrate ffmpeg the hard way. Or you can play ogg theora vorbis videos instead. Again, you will need to do all the hard work.

Pallav Nawani
IronCode Gaming Private Limited
Website: http://www.ironcode.com
Twitter:  http://twitter.com/Ironcode_Gaming
Facebook: http://www.facebook.com/Ironcode.Gaming
Mobile: 9997478768



On Tue, Nov 18, 2014 at 5:43 AM, JeZ-l-Lee wrote:
Quote:
[SDL2]-Simple Method To Play Videos In SDL2?

Hi,

My team and I need an easy method to play AVI videos using:
SDL2, SDL2_Image, SDL2_Mixer, & SDL2_TTF which is cross-platform.

Is there anything out there that can do the above?
We want video images to be pumped through SDL2
and audio pumped through SDL2_Mixer.

Any help would be greatly appreciated, thank you!



JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

[SDL2]-Simple Method To Play Videos In SDL2?
Pallav Nawani


Joined: 19 May 2011
Posts: 122
Location: Dehradun, India
Edit: You could take a look at ffplay, a SDL based video playing using ffmpeg.

Pallav Nawani
IronCode Gaming Private Limited
Website: http://www.ironcode.com
Twitter:  http://twitter.com/Ironcode_Gaming
Facebook: http://www.facebook.com/Ironcode.Gaming
Mobile: 9997478768



On Tue, Nov 18, 2014 at 5:43 AM, JeZ-l-Lee wrote:
Quote:
[SDL2]-Simple Method To Play Videos In SDL2?

Hi,

My team and I need an easy method to play AVI videos using:
SDL2, SDL2_Image, SDL2_Mixer, & SDL2_TTF which is cross-platform.

Is there anything out there that can do the above?
We want video images to be pumped through SDL2
and audio pumped through SDL2_Mixer.

Any help would be greatly appreciated, thank you!



JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

[SDL2]-Simple Method To Play Videos In SDL2?
Jonas Kulla
Guest

2014-11-18 1:13 GMT+01:00 JeZ-l-Lee:
Quote:
[SDL2]-Simple Method To Play Videos In SDL2?

Hi,

My team and I need an easy method to play AVI videos using:
SDL2, SDL2_Image, SDL2_Mixer, & SDL2_TTF which is cross-platform.

Is there anything out there that can do the above?
We want video images to be pumped through SDL2
and audio pumped through SDL2_Mixer.

Any help would be greatly appreciated, thank you!


https://icculus.org/theoraplay/

It's not as "straightforward" as you might want, but it has an SDL example
inside the source tree. This is for playing ogg theora video.