Search code examples
c#openglvideotao-framework

Record video from opengl


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?


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.