Filter Q &

Source: Internet
Author: User

In graphedit, you can find the filter in the DirectShow filters directory. Its name is "fitler tracer ". Next, I will introduce the use of this filter in the form of Q &.


1. How to use this filter?

A: Run graphedit to build your filter graph link. Then, add the filter tracer filter and connect it to the appropriate location of the filter link or keep it unconnected. Open the filter property page to perform operations.


2. How to view the status of all filters in the filter graph?

A: Add "filter tracer" filter and open its attribute page. On the "Graph Info" page, you can see all the filters listed in the current filter graph. In the "filter" combo box, select a filter you want to view. As a result, the following lists all the pins of the filter and the current values of each pin (if the PIN is in the connection success State) or all supported mediatype (if the PIN is disconnected ).


3. How do I know whether the filter is connected correctly?

A: Check the Current Filter connection mediatype on the "Graph Info" page to see if majortype, subtype, and formattype are correct; check whether the information described in "format details" is the same as you expected. By selecting "text" or "hex", you can see two different formats of "format details.


4. How can I obtain the CLSID of the specified filter?

A: add the filter you want to view to the filter graph and select the filter on the "Graph Info" page of "filter tracer, the friendly name and CLSID of the filter are displayed in the "filter CLSID" at the bottom of the attribute page. Double-click the string and right-click it to copy the CLSID to the clipboard.


5. How to directly open the attribute page of the specified filter on the "filter tracer" attribute page?

A: select a filter on the "Graph Info" Page and click "…" on the right of the "filter" combo box. Button.


6. How to block a link of filter graph?

A: add the "filter tracer" filter to access this filter link and open its attribute page. On the "filter tracer" Page, check the "receive" multiple selection box. Note: before stopping filter graph, you must cancel the blocking status.


7. How do I remove the timestamp when the filter sends the sample?

A: add the "filter tracer" filter to access this filter link. On the "filter tracer" Page, check the "tstamp" multiple selection box. As a result, the sample will be played directly when it reaches Renderer.


8. How can I cut the critical y of quality control?

A: add the filter tracer filter to access this filter link. On the filter tracer page, check the multiple selection boxes of notify. Therefore, the notifications sent by the Renderer Filter will not reach the source filter along this link.


9. How to disconnect the mediaseeking link?

A: As you know, filter graph manager applies for the mediaseeking interface from the Renderer Filter level-1 to the mediaseeking interface. To disconnect the application link, we only need to connect the "filter tracer" filter to this filter link and check the "mseeking" multiple selection box on the "filter tracer" page.


10. What should I do if I want filter graph to send samples one by one for interaction?

A: add the "filter tracer" filter and access it. On the "filter tracer" Page, check the "stepsample" multiple selection box. Run filter graph and press "stepsample" in the "feature diagnosing" group each time to transfer the current sample. Note: The "stepsample" status must be canceled before the filter graph is stopped.


11. How to Write the raw data of sample to a file?

A: On the "filter tracer" Page, check the "get sample data" Multi-choice box.


12. How to Write the attribute information of each sample to a file?

A: On the "filter tracer" Page, check the "get sample Info" Multi-choice box.


13. How to Write the currently connected format binary data to a file?

A: On the "filter tracer" Page, check the "get media format" Multi-choice box.


14. How to calculate the actual frame rate of the entire Link playback?

A: On the "filter tracer" Page, check the "get Frame Rate" Multi-choice box. The longer the filter graph is run, the more precise the frame rate is.


15. How to write data from a sample into a BMP file?

A: Check the "Write a BMP file" multiple selection box on the "filter tracer" Page and connect the "filter tracer" filter, it is generally located in the previous position of "video Renderer. Note that the "filter tracer" filter only accepts mediatype of rgb24 or rgb32. In addition, you can specify the number of samples to be written to the file after "no.


16. How to test the mediaseeking interface of filter graph?

A: connect "filter tracer" to the filter. In the "feature diagnosing" group on the "filter tracer" attribute page, click "get_pos: use the input pin of the filter tracer filter to obtain the current position through the imediaseeking interface; the "reset_pos" button: Use the input pin of the filter tracer filter to obtain the imediaseeking interface and call the "setposition" method; "reset_graph" button: Filter
The imediaseeking interface of graph manager calls the "setposition" method.


17. How to monitor each transferred sample in real time?

A: connect the "filter tracer" filter to an appropriate location and run the filter graph. Then you can see a monitoring window. In this invigilation window, you can see the system running time of the filter graph, the start time of each sample, the number and progress of sample transfers, and other information. You can also implement some control through the right-click menu of the monitoring window, such as running, pausing, stopping the filter graph, and adjusting the transfer speed of the sample.


18. How to add another filter to the current filter graph?

A: Sometimes, we only need the "filter tracer" filter to print some information. The final Renderer Filter can be followed by a "null Renderer" and does nothing. You only need to click "add" in the "Tools" group on the "filter tracer" attribute page.


19. How to modify the "merit" value of the specified filter?

A: In the "Tools" group on the "filter tracer" attribute page, first enter the specified filter in "filter CLSID", and then click "get, read the friendly name registered by the filter and the existing merit value. You can modify the "merit" value and click "set" to set it.


20. In the filter graph, an output pin of a filter supports many mediatype types, but I only want to use one of them for connection. What should I do?
A: connect the "filter tracer" filter to the back of the filter. Open the attribute page. On the "myoutput" page, you can see all mediatype. select one of them, press "Apply ". Connect the output pin of the "filter tracer" filter to the next one.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.