Page 1 of 2

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

Posted: Fri Aug 03, 2007 9:53 am
by FireCross88
Magic Library only works with v1.1. Please help! Deadline nearing!

Posted: Fri Aug 03, 2007 9:56 am
by FireCross88
And with OpenGL! I saw alot of codes but only work with DirectX!

Posted: Fri Aug 03, 2007 12:38 pm
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.

Posted: Fri Aug 03, 2007 2:35 pm
by beshrkayali
i can't find it :x

Posted: Fri Aug 03, 2007 7:11 pm
by Dorth
no 'avi' found on your page ;)

Posted: Fri Aug 03, 2007 7:42 pm
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

Posted: Fri Aug 03, 2007 7:59 pm
by Dorth
Thanks mate ^^

Posted: Sat Aug 04, 2007 2:27 am
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

Posted: Sat Aug 04, 2007 5:32 am
by FireCross88
Thanks! Will try it out and let you guys know if it works for me!

Posted: Sat Aug 04, 2007 10:09 am
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?

Posted: Sat Aug 04, 2007 10:36 am
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

Posted: Sat Aug 04, 2007 6:57 pm
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...

Posted: Mon Sep 03, 2007 1:15 pm
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:

Posted: Mon Sep 03, 2007 1:21 pm
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.

Posted: Mon Sep 03, 2007 9:50 pm
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