PDA

View Full Version : how to capture output from an Opengl application in a video file?



ardalanbiz
05-28-2004, 10:51 AM
Hi everyone,

I have written few programs using opengl that I want to capture my output in a video file. The platform I am using to program is Linux. Any suggestions?

Thanks a lot.

jwatte
05-28-2004, 01:28 PM
I have found the absolutely easiest way of doing this to be:

1) buy a card with TV out
2) hook up VCR
3) record

This is faster, cheaper, and simpler than anything else you could try, including complicated, slow, read-back-and-record-to-disk methods.

If you want to publish a movie, you capture back from the VCR (you can use a DV camcorder as VCR) and edit/encode from that.

If you want higher quality, you buy or rent a DVI-to-component-video scan converter, and professional video recording equipment (DV-50, D-1, or similar), although the scan converter is likely to run you at least $1,500 and the recording equipment probably $5k.

Bobo.Bobo
05-29-2004, 12:59 PM
You can change your apps to write avi files with every frame (glReadPixels). Or if you can't make avi then make bmps or jpgs and then join it to avi in VirtualDub.

JanHH
05-29-2004, 02:16 PM
I just did that with avifile (http://avifile.sourceforge.net/). It is quite easy to use, but there are some problems:

- somehow the created avi files only work on linux, not viewable under windows (really strange, I think)
- only a few codecs are supported
- there is hardly any documentation (but you can ask me for some sample code).

If anyone knows a better working alternative I would also be curious.

Jan

ardalanbiz
05-29-2004, 04:01 PM
Thanks guys,

I was looking for a way along the lines of creating an avi file. I am going to give a try, but if there is another way that also works on Windows, please let me know. I want to post my avi(video) file on a website as demo.

Thanks again.

SirKnight
05-29-2004, 07:58 PM
Try this:
http://www.codeproject.com/audio/avigenerator.asp

Code Project is a great website. :D

-SirKnight

JanHH
05-29-2004, 08:04 PM
this is windows-only, right? :( but looks interesting.

SirKnight
05-29-2004, 08:31 PM
Yes it's for windows only. I think most if not all programs on Code Project is for windows. Except for maybe basic C++ articles but everything else though. But he did want soemthing for windows so this should work just fine.

-SirKnight

JackoffAsor
06-03-2004, 05:15 PM
Originally posted by ardalanbiz:
Hi everyone,

I have written few programs using opengl that I want to capture my output in a video file. The platform I am using to program is Linux. Any suggestions?

Thanks a lot.you use Camtasia Studio wut up!