My question is very simple : Is it possible to play a video (mp4, avi, etc) with Irrlicht ? And if it's possible, have you a tutorial for me ?
I have do some research but I haven't find informations (just old stuff : 2006-2008...)
Videoformats are not build-in. You can use Irrlicht for displaying, but loading and decompressing needs a video-library instead (theora for example or ffmpeg).
Er, maybe, but the OP's request was for formats *actually* in use.
It woud be good to have a sketch of the code. One can certainly find code on the internet to produce frames from, say, MPEG, but to use it as a texture requires the 'lock' call, doesn't it?
hendu wrote:Enjoy selling a product that includes MP* video decoding. Patent royalties ahoy.
There's a reason even most AAA games use Ogg codecs or nowadays VP8.
I thought the patents only covered the compressors in the case of the videos, the RTF documents define only the format of the output stream, and it is open for anybody to implement how to read them. So implementing another video decompressor shouldn't be problematic, should it? eventhough it is true, OGG and WEBM are the only "open" formats out there. I think it wouldn't harm Irr to have a built in video decompressor for texture playback.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Not sure about videos, but I think in the case of mp3 sound it hadn't just been the compression. So maybe same for mp4 video format.
Unfortunately can't help yet with Video-player. I have some support for playing ogg's in my h-craft source-code. But haven't done video-part yet (only did the other way round once in a project - writing to vorbis). Maybe one day...
There was a user that implemented a video player with irrlicht. It had a project too (3d theater playing video with music and 3d characters inside too). Cannot find right now, someone more luck with diggin ?
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me