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:
- Launch GraphEdit.
- 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.
- 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.
- For each filter, select the filter and type DELETE.
- 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.
- 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.
- Click the play button.
- Or, choose Play from the Graph menu.
- Wait for the graph to stop. (The play option will become enabled again.)
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.