Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: DirectShow and Capturing Frame Buffer

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2007
    Posts
    1

    DirectShow and Capturing Frame Buffer

    Is there any code posted that performs video capture (for various codecs) from an OpenGL framebuffer using DirectShow? I'm thinking about something like Fraps or Taksi, but using DirectShow and not VFW.

  2. #2
    Advanced Member Frequent Contributor yooyo's Avatar
    Join Date
    Apr 2003
    Location
    Belgrade, Serbia
    Posts
    883

    Re: DirectShow and Capturing Frame Buffer

    Take look on Filters/Ball example in DirectShow. Anyway, this taks require some knowledge of DirectShow.

    Some videocodecs accept RGB video-pixelformat so you can grab backbuffer in sys mem and send it to source filter. Most of videocodecs require YUY2 or similar video-pixelformat, so you may need to convert backbuffer to YUY2 and then copy content to source filter. If you want to send frames to overlay, then you MUST use YUY2 video-pixelformat.

    Also, try to use PBO's for async data transfer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •