从网络UWP解码MP4流

发布于 2025-02-11 02:30:40 字数 465 浏览 3 评论 0原文

在标准的Win32 C ++程序中,该方法似乎是调用mfCreateTemPfile 并使用imfbytestream从中使用mfcreateSourcereaterArepeReaderFrombyTestreamfrombyTestream创建字节阵列的ImfbyTeStream

uwp中的第二种方法是不可用的,并且在UWP中是不可用的建议。上面的链接也不可用。

我想解码我的零散的MP4流,但我绝对不知道该怎么做,因为我发现的唯一解决方案是不可能的。

有人对我如何实现这一目标有建议吗?

谢谢, 彼得

In a standard Win32 C++ program, the approach seems to be to call MFCreateTempFile and use the IMFByteStream object from this to create a source reader with MFCreateSourceReaderFromByteStream: Create IMFByteStream from byte array

This method is unavailable in UWP and the second suggestion in the above link is also unavailable.

I want to decode my fragmented MP4 stream but I have absolutely no idea how to go about doing this given the only solutions I've found are not possible.

Does anyone have a suggestions on how I could achieve this?

Thanks,
Peter

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

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

发布评论

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

评论(1

泪眸﹌ 2025-02-18 02:30:40

简而言之,我要总结一下:

为了使用sourcereader与原始字节流相机,您需要mfcreateTemPfileshcreatemememstream。两种方法都无法在UWP上使用,并且仅在桌面上可用。

您将需要直接使用CLSID_MSH264DECODERMFT转换。

For brevity I'll summarise:

In order to use the SourceReader object with a raw byte stream, you need either MFCreateTempFile or SHCreateMemStream. Both methods are unavailable on UWP and are only available on desktop.

You will need to directly use theCLSID_MSH264DecoderMFT transform.

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