Creating Test Files

Before you run a streaming test on a DMO, you must generate a file with test data for that DMO. The file must conform to a custom format which is recognized by DMOTest. For information about the format, see DMO Test Application File Format.

The test data consists of samples taken from a media source file. The source file must contain data that the DMO can process. For example, if you are testing an audio effect filter, use an audio source file.

To create a test file, you will need:

  • A media file that contains the format you want to test.
  • The DMO Data Dump filter (included with the Microsoft® DirectX® 8 SDK).
  • The GraphEdit utility for Microsoft® DirectShow®

Note  If you're not sure what media formats the DMO can accept, see Viewing a DMO's Input Types.

To generate the test data, do the following:

  1. Launch GraphEdit.
  2. Render the media file that you want to use.
    • From the File menu, choose Render Media File.
    • Select the media file.
    • Click OK.
    • GraphEdit creates a filter graph and displays it.
  3. Locate the filter whose output pin produces the media type you want to test.
    • Right-click a connection point (the arrow that connects an output pin to an input pin).
    • On the pop-up menu, choose Properties.
    • GraphEdit displays a property page that lists the media type for the connection.
    • Repeat these steps until you locate the correct filter.
  4. Delete all the downstream filters. (Follow the arrows from the output pin.)
    • For each filter, select the filter and type DELETE.
  5. Add the DMO Data Dump filter to the graph.
    • From the Graph menu, choose Insert Filters.
    • Expand the DirectShow Filters node.
    • Select DMO Data Dump and click Insert Filters.
    • Type a name for the data file, or select an existing data file to overwrite.
    • Click Open.
    • Click Close.
  6. Connect the output pin from step 3 to the DMO Data Dump filter.
    • Drag the mouse from the output pin to the DMO Data Dump filter's input pin.
    • Or, you can right-click the output pin and choose Render.
  7. Run the graph.
    • Click the play button.
    • Or, choose Play from the Graph menu.
    • Wait for the graph to stop. (The play option will become enabled again.)
  8. Exit GraphEdit.

For more information about GraphEdit, see the topic "Using the GraphEdit Utility" in the DirectShow documentation. Or, run GraphEdit and choose Contents from the Help menu.