video multiplatform

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
mvalle
Posts: 18
Joined: Tue Oct 02, 2007 4:58 am
Location: Brazil

video multiplatform

Post by mvalle »

Hello,

I would like to display a video (with sound) when my game starts. I looked for it on the forum and I found some messages describing ways to display video on irrlicht, but it seems all of them are specific for windows.
I am developing my game on windows, using mingw + eclipse, but the production platform will be a linux machine.

Does someone know a solution for this? A way (or lib) to play video in linux and in windows, without needing to use #ifdef s?

Thanks in advance.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Why not using ifdef's? Someone posted a video player with OpenCV recently, but you'll have to use uncompressed avi formats. If that's the better choice...
mvalle
Posts: 18
Joined: Tue Oct 02, 2007 4:58 am
Location: Brazil

Post by mvalle »

so... I could use ifdefs... And I am trying some things here with that post of open cv. However, the post says nothing about sound and you need to advance in frames manually... There is no file buffer done automatically or thing like that...
I was not expecting to worry this much about technology, I am really focused on my game. But if there is no other choice and there isn't really something already, I will consider to create a lib to do this job.
Does anyone know if there is some on going project related to this kind of stuff?

Regards!
torleif
Posts: 188
Joined: Mon Jun 30, 2008 4:53 am

Post by torleif »

SDL has a mpeg(SMPEG) library which will play mpegs. You can also play AVI's which don't require libraries

There is no easy solution, so expect to be casting arrays of pixels from one format to another. And don't be afraid of #ifdefs. They're not that bad.
mvalle
Posts: 18
Joined: Tue Oct 02, 2007 4:58 am
Location: Brazil

Post by mvalle »

I found a lib which seems to do what I want:
http://www.arjanhouben.nl/SDL_ffmpeg/

However, it's based on SDL... There is no way to integrate it with an irrlicht video device, is there?
mvalle
Posts: 18
Joined: Tue Oct 02, 2007 4:58 am
Location: Brazil

Post by mvalle »

Please ignore my last question. The lib allows manipulation of video, it doesn't show the video on a device nor play sound.

However, I think it could be kind of easy to do so.
Will keep posting news on this forum, for people who could become interested in that too.

[]s
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

mvalle wrote: However, I think it could be kind of easy to do so.
Will keep posting news on this forum, for people who could become interested in that too.

[]s
yes, please do so. :)
Post Reply