简体   繁体   English

如何学习DirectShow编码器/解码器编程?

[英]How to learn DirectShow Encoder/decoder programming?

I have created a project using directShow that takes the captured video from a webcam and preview it. 我已经使用directShow创建了一个项目,该项目将从网络摄像头捕获的视频进行预览。 Now I want to encode on run time video captured alive and save it on desk then play it back I want to use it as part from my code(dll for example) not a standalone part. 现在,我想对实时捕获的运行时视频进行编码,并将其保存在桌面上,然后回放,我想将其用作代码(例如dll)的一部分,而不是独立的一部分。

Any links can help me to get how to do that please I am in search process for a week and feel not understood with the methodology? 任何链接都可以帮助我获得如何执行此操作的方法,请问我在一周的搜索过程中对方法学感到不理解?

If you're writting new app, or you're interested in learn about video processing you should consider using Microsoft Media Foundation . 如果您要编写新的应用程序,或者对学习视频处理感兴趣,则应考虑使用Microsoft Media Foundation DirectShow is an 'obsolete' and shortly will be discontinued technology. DirectShow是“过时的”,不久将停止使用该技术。

If despite this, you're still interested in DirectShow, you could start with MSDN DirectShow Documentation (Examples are in C++ but the idea is the same). 如果尽管如此,您仍然对DirectShow感兴趣,则可以从MSDN DirectShow文档开始(示例在C ++中,但是想法是相同的)。

As short summary you must understand this concepts. 作为简短摘要,您必须了解此概念。

  • What is a DirectShow Filter , and wich types exists (Source,Transform,Renderers and Capture). 什么是DirectShow筛选器 ,并且存在哪些类型(源,转换,渲染器和捕获)。 Introduction to DirectShow DirectShow简介
  • How can I connect multiple Filters in a Graph ,how filters are connected between them, and how I can control the playback. 如何在图表中连接多个过滤器,如何在它们之间连接过滤器,以及如何控制播放。 Start with Building the Filter Graph . 构建过滤器图开始

Some utils that can help you: 一些实用程序可以为您提供帮助:

NOTE: As you tagged this post with 'C#' and 'Directshow.NET' tags, I will consider that you're using DirectShow.NET library (the unofficial port of DirectShow to .NET). 注意:当您用'C#'和'Directshow.NET'标签标记该帖子时,我会认为您正在使用DirectShow.NET库(DirectShow到.NET的非官方端口)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM