从网络UWP解码MP4流
在标准的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简而言之,我要总结一下:
为了使用
sourcereader
与原始字节流相机,您需要mfcreateTemPfile
或shcreatemememstream
。两种方法都无法在UWP上使用,并且仅在桌面上可用。您将需要直接使用
CLSID_MSH264DECODERMFT
转换。For brevity I'll summarise:
In order to use the
SourceReader
object with a raw byte stream, you need eitherMFCreateTempFile
orSHCreateMemStream
. Both methods are unavailable on UWP and are only available on desktop.You will need to directly use the
CLSID_MSH264DecoderMFT
transform.