Page 1 of 1

Is it possible to play a video (.avi, etc.) ?

Posted: Tue May 29, 2012 12:52 pm
by kralos
Hello !

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

Thank you :)

Re: Is it possible to play a video (.avi, etc.) ?

Posted: Tue May 29, 2012 1:20 pm
by CuteAlien
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).

Re: Is it possible to play a video (.avi, etc.) ?

Posted: Wed May 30, 2012 12:22 pm
by rubenwardy
You should of looked through the posts or searched the forum first, as this topic was posted just before you, half a page down

Here was the answer given

http://irrlicht3d.org/wiki/index.php?n=Main.Video

Re: Is it possible to play a video (.avi, etc.) ?

Posted: Wed May 30, 2012 12:57 pm
by mongoose7
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?

Re: Is it possible to play a video (.avi, etc.) ?

Posted: Wed May 30, 2012 1:18 pm
by hendu
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.

Re: Is it possible to play a video (.avi, etc.) ?

Posted: Fri Sep 16, 2016 5:29 am
by AndrewMcElroy
Has anyone made this work on iOS?

Re: Is it possible to play a video (.avi, etc.) ?

Posted: Mon Sep 19, 2016 11:03 am
by Mel
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.

Re: Is it possible to play a video (.avi, etc.) ?

Posted: Mon Sep 19, 2016 11:16 am
by CuteAlien
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...

Re: Is it possible to play a video (.avi, etc.) ?

Posted: Mon Sep 19, 2016 5:32 pm
by hendu
Decoders, even third-party decoders, fall under the patents. That's why Firefox couldn't legally ship H.264 decoding before Cisco offered theirs.

Re: Is it possible to play a video (.avi, etc.) ?

Posted: Fri Oct 21, 2016 2:53 pm
by REDDemon
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 ?

Re: Is it possible to play a video (.avi, etc.) ?

Posted: Fri Oct 21, 2016 4:16 pm
by CuteAlien
Hm, you mean that one I guess: http://irrlicht.sourceforge.net/forum/v ... =6&t=39695
I remember 3D and sound - not sure if it had video.