Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Avi writing using DirectShow

Avi writing using DirectShow

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsjsonhelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    P e t e r
    wrote on last edited by
    #1

    My application writes the avi-files using the VFW Windows API-calls. But the problem I encounter now is the size limit of the avifile using VFW. I understand that using DirectShow instead of VFW solves this problem. But DirectShow is quite new to me. Could anybody give me some hints how to use DirectShow for writing avifiles? (Using interfaces like IGraphBuilder?) I am looking for a DirectShow-function that is a equivalent for AVIStreamWrite. At this function it is possible to present a data pointer. I have been looking in the DirectShow-documentation but I cannot find a function to which I can present a data pointer from a bitmap/frame.

    H 1 Reply Last reply
    0
    • P P e t e r

      My application writes the avi-files using the VFW Windows API-calls. But the problem I encounter now is the size limit of the avifile using VFW. I understand that using DirectShow instead of VFW solves this problem. But DirectShow is quite new to me. Could anybody give me some hints how to use DirectShow for writing avifiles? (Using interfaces like IGraphBuilder?) I am looking for a DirectShow-function that is a equivalent for AVIStreamWrite. At this function it is possible to present a data pointer. I have been looking in the DirectShow-documentation but I cannot find a function to which I can present a data pointer from a bitmap/frame.

      H Offline
      H Offline
      Hesham Desouky
      wrote on last edited by
      #2

      Will directshow is different from VFW API First it is com based, so no more flat API calls, just com objects Second, DirectShow framework depends upon waht is called a Graph and Filters. So I think what you need is to develop your own data stream filter (there is examples with directshow) and build a graph to capture from your stream filter to the avi file. Data Stream Filter ----> VIDEO ENCODER Filter (if any) ---> AVI MUX Filter ---> File Writer Filter. Hope this helps to figure out what reading you need in directshow to do your work Hesham

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups