使用Media Foundation读取1080P高清视频 [英] Reading 1080P HD video using media foundation

查看:140
本文介绍了使用Media Foundation读取1080P高清视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在使用媒体基础读取完整的1080P未压缩视频.该视频约为2G,具有500帧(相当大).我基本上是在用 IMFSourceReader可以逐帧读取.问题在于,单独进行ReadSample调用会花费大量时间(每帧100毫秒),我不确定为什么.我还尝试了1G和300帧的720P视频, 读取每个帧大约需要50毫秒.如何加快此读取过程.我还尝试了不同的流索引(MF_SOURCE_READER_ANY_STREAM,M F_SOURCE_READER_FIRST_VIDEO_STREAM).它没有任何改善.

Hello, I am using media foundation to read full 1080P uncompressed videos. The video is around 2G with 500 frames ( pretty big ). I am basically using IMFSourceReader to read frame by frame. The problem is that ReadSample alone call takes tremendous amount of time (100ms for each frame), I am not sure why. I also tried 720P video which is 1G and 300 frames, ReadSample takes around 50ms to read each frame. How to speed up this reading process. I also tried different stream indexes (MF_SOURCE_READER_ANY_STREAM, MF_SOURCE_READER_FIRST_VIDEO_STREAM). It doesn't improve anything.

推荐答案

您的视频是什么编解码器? 300帧1演出听起来像未经压缩的原始视频.您是否确定速度问题与IO性能无关?

What codec is your video? 1 gig for 300 frames sounds like raw, uncompressed video. you´re sure your speed problem is not IO Performance related?

如果您有1个300帧的演出,那么它大约每帧3mb,从光盘读取50ms似乎没那么多

if you have 1 gig for 300 frames, its about 3mb per frame where 50ms to read from disc does not seem that much


这篇关于使用Media Foundation读取1080P高清视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆