Domanda

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?

È stato utile?

Soluzione

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.

Altri suggerimenti

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).

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top