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

[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

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: 9997478768On Tue, Nov 18, 2014 at 5:43 AM, JeZ-l-Lee < JessePalserMailingLists at gmail.com> wrote:

[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 Gmail com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

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: 9997478768On Tue, Nov 18, 2014 at 5:43 AM, JeZ-l-Lee < JessePalserMailingLists at gmail.com> wrote:

[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 Gmail com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

2014-11-18 1:13 GMT+01:00 JeZ-l-Lee :

[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.