问题描述
我应制定记录和播放录制的视频在记录继续申请(不停止图)。我知道如何使用和使用DirectShow开发,但我需要我的图形架构。我应该使用什么过滤器?
I should develop an application that records and plays recorded video while recording continues (without stopping graph). I know how to use and develop using DirectShow but I need architecture of my graph. What filters should I use?
我使用DirectShow做了它与原始视频和的但我应该压缩的视频,我不知道怎么做,在压缩视频文件(这是不封闭的,因为记录继续)。
I did it with raw video using DirectShow and SampleGrabber but I should compress video and I have no idea how to do it in compressed video file (which is not closed, because recording continues).
我觉得MPEG-2记录是最适合我的应用程序,但请指导我有关筛选我应该使用。
I think MPEG-2 recording is the best for my application but please guide me about filters I should use.
感谢
推荐答案
您是否尝试过的?
录制文件,并在同一时间看这是一个有点问题,因为分路器需要重新分析的书面文件,了解新部件。我从来没有见过一个分流器这样做。
Recording a file and watching it at the same time is a little bit problematic, because the Demuxer needs to reparse the written file, to know about the new parts. I have never seen an demuxer doing this.
另外一大问题是文件锁定! DirectShow的FileWriter的和大多数其他类似的过滤器锁定的书面文件。因此,没有其他进程可以打开文件进行读取。
The other big problem is the file-locking! The DirectShow filewriter and most other similar filters lock the file for the writing. So no other process can open the file for reading.
您正在寻找一个时光平移系统。有一些这种thirt方SDK。但它也可以与自己的DirectShow过滤器来实现,但你将需要大量的时间和知识这一点。我知道这是可能的,因为我在录像机做到了由我公司(的)。
You are searching for a TimeShift system. There are some thirt-party SDK for this. But it can also be implemented with own DirectShow Filters, but you will need a lot of time and knowledge for this. I know it's possible because I have done it in the videoplayer from my company (utilius fairplay 5).
这篇关于视频记录,并使用DirectShow在同一时间播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!