Page 1 of 2

Getting video output

Posted: Fri Oct 10, 2008 3:29 am
by skumar
Hi,
I have an app that can record cameraFPS movement into a file.The same can play the file giving an animation...

I would like to Convert that to video in realtime....Does anyone know any video library(with good licence) that can handle the captured screen to compile an avi file.Is it possible to combine the technique of many screen capture program to irrlicht?

Thanks in advance.....

Posted: Fri Oct 10, 2008 7:17 am
by rogerborg
When you searched the forum, read the previous threads on this subject, and tried them out, what problems did you find with those proposed solutions?

Posted: Fri Oct 10, 2008 7:27 am
by skumar
I have searched but i failed to get a good solution(im not satisfied by the forum search engine)

Most of the suggestions were external screen capture programs ...but what i want is some library that can compile a series of screenshots to avi or mpg ....

Most of the google searches ended up in avi reading only libs....

I would strain more to reverse such things....if a lib is available....

Posted: Fri Oct 10, 2008 7:35 am
by aheymann
I have used CamStudio - source code is available.

Posted: Fri Oct 10, 2008 7:45 am
by skumar
is that easy to use the code from camstudio...for avi...in irrlicht?

Do you have any working examples...?

Posted: Fri Oct 10, 2008 7:55 am
by aheymann
It is not easy at all, but I managed to incorporate it into my code - it is not part of irrlicht at all, but can be used within a 3D environment. I have created some classes to allow video/audio capture. I need to look at it and see if I can make it available in general.

Anton

Posted: Fri Oct 10, 2008 7:59 am
by skumar
Thanx for that....

When i first looked at its code ...it was too confusing....really i am not a pro...just moving ahead...i need a lot of time for understanding others code...

i think video encoding are one of the hardest part of programming.....

any way my search continues...

Posted: Fri Oct 10, 2008 12:20 pm
by JP
What are you trying to achieve? Are you trying to render a cutscene? Do you just want to video your game, like fraps does, so you can upload a video?

If it's either of those then it doesn't have to be realtime at all, it's pretty much acceptable for it to take a week to render it, so long as the resulting video is nice.

Posted: Fri Oct 10, 2008 4:08 pm
by skumar
thanx gp..

i just mentioned realtime only...it can take ages to render...no prob...

I am experimenting with different libs....report soon about my advancements.....

Posted: Fri Oct 10, 2008 4:11 pm
by JP
There's various things to consider if you're trying to render out video such as getting the timings of animations, movements etc right. This has been discussed a fair amount before so searching the forum should help out.

Some video editing packages, like virtual dub i think, accept a load of .TGA images which it will create into a video for you so you could just render out each frame as a .TGA (a very simple image format) and then get virtual dub to make the video for you.

It all depends on what you want to do though really, if it's for your own personal use that might be a good approach, if it's for users of your game to use then it might not be such a good approach.

Posted: Sat Oct 11, 2008 2:56 am
by skumar
thankx jp.....

But i think i need some integrated solution....not an external app...

I have seen some libraries taking image data pointer for making vids....

I like work on something like those....

I think after taking screenshot()...we can lock() that image to get into the image data of the present screenshot()...

Am i right?

Posted: Sat Oct 11, 2008 7:48 am
by skumar
Finally i got it in a very easy way....with

Revel XviD library...
http://revel.sourceforge.net/

Its very easy to integrate

Posted: Sun Oct 12, 2008 4:26 am
by skumar
Thankx all...

I am almost there....i have made my first irrlicht video...from inside the app itself...i just tested by modifying the hello world demo....

Here is the link to a small video(XviD format)....

http://www.mediafire.com/download.php?c8metzo1d42

There are some issues associated with frame rate....i hope it can be tackled soon....

Posted: Sun Oct 12, 2008 1:01 pm
by fmx
The Revel XviD library is really quite useful, thanks for sharing your solution with us! :)

best of luck!

Posted: Wed Oct 15, 2008 5:12 am
by skumar
Currently i am trying to make a stable intergration of Revel....The situation is as follows....

Revel needs raw image data ,its color format,and bytes per pixel for making one frame...

Irrlicht only need to take the screenshot and pass the image data by lock(). But there are some doubts about the color format....

My question is...

What are the factors that determine the bits per pixel,color format of the IImage from the createScreenshot() function...What all circumstances it changes...

Is it only related to the prameters i used when creating the device?

Please help