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

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
kralos
Posts: 1
Joined: Tue May 29, 2012 12:47 pm

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

Post 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 :)
CuteAlien
Admin
Posts: 9634
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

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

Post 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).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
rubenwardy
Posts: 91
Joined: Mon Mar 05, 2012 4:51 pm
Location: Bristol, UK
Contact:

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

Post 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
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

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

Post 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?
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

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

Post 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.
AndrewMcElroy
Posts: 1
Joined: Sat Sep 10, 2016 7:08 pm

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

Post by AndrewMcElroy »

Has anyone made this work on iOS?
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

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

Post 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.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
CuteAlien
Admin
Posts: 9634
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

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

Post 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...
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

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

Post 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.
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

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

Post 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 ?
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
CuteAlien
Admin
Posts: 9634
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

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

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply