从.mov文件用抓帧DirectShow.net [英] Grab frame from .mov file using DirectShow.net

查看:341
本文介绍了从.mov文件用抓帧DirectShow.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过抓住从C#.NET .mov文件框架DirectShow.net

How to grab frame from .mov file in c#.net by using DirectShow.net

推荐答案

DirectShow和DirectShow.NET不作任何特殊与 .MOV 文件。通常,您可以创建一个过滤器图,您管理的样品采集卡过滤器,它的回调为您提供了通过视频流的帧。

DirectShow and DirectShow.NET don't make it any special with .MOV files. You typically create a filter graph with a Sample Grabber filter that you manage, and its callback gives you frames of video stream that passes through.

您可能想看看DirectShow.NET DxScan样本,\样本\编辑\ DxScan。它抓住帧从一个给定的电影文件。

You might want to look at DxScan sample in DirectShow.NET, \Samples\Editing\DxScan. It grabs frames from a given movie file.

一个示例应用程序扫描的媒体文件寻找黑帧

A sample application scanning a media file looking for black frames

大多数工作在ISampleGrabberCB.BufferCB完成。查看评论   那里。此外,用于扫描黑色帧的算法是效率不高   因为它可以。然而,样品给你如何这可能是一个想法   完成的。

Most of the work is done in ISampleGrabberCB.BufferCB. See the comments there. Also, the algorithm used to scan for black frames isn't as efficient as it could be. However, the samples gives you an idea of how this could be done.

这篇关于从.mov文件用抓帧DirectShow.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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