调试 DirectShow 过滤器

发布于 2024-12-03 08:25:26 字数 214 浏览 1 评论 0原文

我正在开发一个 DirectShow 过滤器,它的输入连接到 H.264 编码器的输出, 过滤器的目的是在 H.264 NAL 标头之前插入 FEC 位, 需要我在位级别上读取编码器的数据。

我已经制作了 FEC 过滤器 DLL 并使用 GraphEdit 连接它。 假设我想查看一些 LOG 消息,其中视频数据(位)进入 GraphEdit 中的过滤器 有人知道如何生成这些日志消息或日志文件吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

人事已非 2024-12-10 08:25:26

有两种可能性:

1)将您需要知道的任何内容记录到 FEC 过滤器中的外部文件中

2)您可以在 FEC 过滤器之前(和/或之后)放置“智能 Tee”过滤器以“Tee”流,然后将第二个引脚连接到“转储”过滤器 (http://msdn.microsoft.com/en-us/library/dd388553(v=vs.85).aspx),该过滤器可以将所有收到的样本写入文件以供以后分析

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

爱*していゐ 2024-12-10 08:25:26

OutputDebugString 并附加调试器将打印将消息发送到 IDE 的调试窗口中。

另一方面,您可以使用像 DbgView 这样的输出记录器来捕获所有 OutputDebugString 消息在系统中。

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.

掌心的温暖 2024-12-10 08:25:26

用于分析过滤器之间的数据流的一些工具:

开源图形编辑器 GraphStudioNext 分析器当插入到两个感兴趣的过滤器之间时,过滤器(和分析器文件编写器)将向您显示活动的可视日志。您现在需要自己构建它才能获得此功能。

Geraint Davie 的监视器过滤器 会将活动日志文件写入磁盘。

请参阅此问题:如何调试 c++ DirectShow 过滤器以进一步了解技巧

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文