开发者

Debugging DirectShow Filter

开发者 https://www.devze.com 2023-04-03 09:34 出处:网络
I\'m developing a DirectShow filter that it\'s input connects to H.264 encoder\'s output, the filterpurpose is to insert FEC bits just before theH.264 NAL\'s header,

I'm developing a DirectShow filter that it's input connects to H.264 encoder's output, the filter purpose is to insert FEC bits just before the H.264 NAL's header, what requires me to read the encoder's data on the bit LEVEL.

I alre开发者_运维百科ady made the FEC filter DLL and connected it using GraphEdit. Suppose I want to see some LOG msg with the video data(bits) entering my filter in the GraphEdit anyone knows how to generate those log msgs or log file?


there're two possibilities:

1) implement logging of anything you need to know to external file in you FEC filter

2) you can put "smart tee" filter before (and/or after) your FEC filter to "tee" the stream and connect the second pin to "dump" filter (http://msdn.microsoft.com/en-us/library/dd388553(v=vs.85).aspx) that can write all received samples to the file for later analysis


OutputDebugString and attaching a debugger will print the messages into the debug window of the IDE.

On the other hand, you can use output logger like DbgView which capture all OutputDebugString messages in the system.


Some tools for analyzing data flow between filters:

Open source graph editor GraphStudioNext analyzer filter (and analyzer file writer) will show you a visual log of activity when inserted between two filters of interest. You'll need to build it yourself to get this feature for now.

Geraint Davie's monitor filter will write a log file of activity to disk.

See this question: How to debug c++ DirectShow filter for further techniques

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号