Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging DirectShow Filter

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 already 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?

like image 594
Canttouchit Avatar asked Dec 06 '25 01:12

Canttouchit


1 Answers

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

like image 55
Andriy Tylychko Avatar answered Dec 07 '25 15:12

Andriy Tylychko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!