0

我有一个应用程序,其中我有来自存储在专有数据库中的 RTSP 流的 H.264 帧。我需要能够向 H.264 解码器呈现一个帧(当然是按顺序排列的帧)并取回解码后的帧(位图等)输出。我不能使用传统的 DirectShow 流,因为我没有流。有没有可以以这种方式使用的编解码器?稍后我也需要采用其他方式(给定位图或其他格式的图像,创建一个 H.264 流)。您可以提供的任何帮助将不胜感激。

4

2 回答 2

1

As Isso mentioned already, you can push the H.264 data into DirectShow pipeline and have the frame decoded. Additionally to this, there is H.264 Video Decoder MFT (Windows 7 and more recent only) which might be an easier way to use the decoder and to apply it to an individual "frame". You can use other decoders as well, such as FFmpeg/libavcodec however you would still need to interface to the decoders typically designed for stream processing.

于 2012-07-01T13:49:05.413 回答
1

创建一个 DirectShow Source Filter,它从数据库中组装 h264 流,然后您可以将其传递给标准 DirectShow H264 解码器。查看 DirectShow 示例以获取示例源代码。

于 2012-06-20T02:17:48.983 回答