Is there any way to play AVI in Irrlicht v1.3?

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
FireCross88
Posts: 14
Joined: Wed Jul 04, 2007 4:57 am

Is there any way to play AVI in Irrlicht v1.3?

Post by FireCross88 »

Magic Library only works with v1.1. Please help! Deadline nearing!
FireCross88
Posts: 14
Joined: Wed Jul 04, 2007 4:57 am

Post by FireCross88 »

And with OpenGL! I saw alot of codes but only work with DirectX!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Try my video texture. it's an awful interface (borrowed from MagicLibrary :wink: ) but it is cross-platform (due to the use of avifile). Should be aqccessible via the weblink in my signature.
beshrkayali
Posts: 85
Joined: Mon Jun 11, 2007 11:22 am
Location: Damascus - Syria
Contact:

Post by beshrkayali »

i can't find it :x
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

no 'avi' found on your page ;)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Hmm, yes, you're right. It's named VideoTexture.cpp, but it's still not there. I'll add it to the file format page.
Edit: I've now found the old link, was on the file format for 1.0 page - don't know why I did not update it for the latest patch pages... But now it's properly working for 1.3.1 :D
Last edited by hybrid on Fri Aug 03, 2007 11:21 pm, edited 1 time in total.
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

Thanks mate ^^
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

hybrid wrote:Hmm, yes, you're right. It's named VideoTexture.cpp, but it's still not there. I'll add it to the file format page.
Edit: I've now found the old link, was on the file format for 1.0 page - don't know why I did not update it for the latest patch pages... But now it's properly working for 1.3.1 :D
Cool can you tell us more about it what does it use for playing the videos is it both dx and opengl (Or opengl only?). What codecs are supported, does it load sound also and what video sizes are supported (Some I tried in the past couldn't load more than 300x700 ish video size).

Cheers
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
FireCross88
Posts: 14
Joined: Wed Jul 04, 2007 4:57 am

Post by FireCross88 »

Thanks! Will try it out and let you guys know if it works for me!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The code is not using any special hardware acceleration, so it works with all drivers. There are also no size restrictions, the texture can be created at the necessary size after opening the video (I'm currently doing either 512x512 or 1024x1024, but you can adjust these to better values).
Hmm, I just saw that although avifile uses win32-codecs it is not available under windows :( So I guess I'll have to merge with Emil Halim's windows code to make it more portable. Any other suggestions for portable video libraries?
zet.dp.ua
Posts: 66
Joined: Sat Jul 07, 2007 8:10 am

Post by zet.dp.ua »

you can try to use ffmpeg library.
i'm not sure if it works on win32, but ffdshow uses it to decode video
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

avifile also uses ffmpeg if installed 8) It's probably ok for Win32 to use the system routines for aviplay, just as Emil did. But MacOS and Solaris are still unsatisfied...
Georgian
Posts: 60
Joined: Sat Mar 31, 2007 12:55 pm

Post by Georgian »

hi,
hybrid does your video player work on Windows?
or is there any other video player that can play avi or any other format
on windows? (VisualC++)
if such player is available please link :roll:
using Visual Studio 2003 , I use 3D Max 7, I love irrlicht its a really good and easy engine
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

As I just said: No, it does not work under Windows, because the avifile library is not ported to Windows. But Emil Halim posted a video player once which uses win32-api methods to play avi. And doesn't Acki also provide a movie player? Just use the search function for the forum. I haven't bookmarked any of the solutions because they are IMHO all not portable.
evo
Posts: 96
Joined: Mon Jun 27, 2005 6:46 pm
Location: The Netherlands

Post by evo »

This works (only) on Windows platform.
http://home.wanadoo.nl/iherweij/download/AVIPlayer.zip
Should work on Irr 1.3
You can remove the Audiere stuff if you don't need it.

See this old thread for more background information:
http://irrlicht.sourceforge.net/phpBB2/ ... ght=#86708
Post Reply