Question

I am using Tao framework and I have a simple opengl control.
How can I record a video from this control and save it to a file?

Était-ce utile?

La solution

See here for a link that mentions both Bitmap screen capture in C# and starts to describe the AVI conversion.

For further information about the library used to in the first link to make an avi file from a collection of bitmap images see here.

See here for an example that uses the Media Player Encoder in order record the screen.

The more complicated and direct way would be to either use a video capture card or write a software device that emulates one and feed that source to DirectShow filter using DirectShow.Net or Pinvoking other DirectShow libaries directly.

Autres conseils

How can I record a video from this control and save it to a file?

Use glReadPixels to get the pixel data. Feed the pixel data into a video encoder (e.g. a DirectShow filter graph, or through ffmpeg/libavcodec or sump the images into files and encode them to video later).

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top