问题描述
我应该开发一个应用程序,记录和播放录制的视频,而录制继续(不停止图)。我知道如何使用和开发使用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.
谢谢
推荐答案
您尝试过?
记录文件并同时观看它是有点问题,因为Demuxer需要重新编译写入的文件,以了解新的部件。我从来没有见过这样的分配器。
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文件写入器和大多数其他类似的过滤器锁定文件进行写入。因此没有其他进程可以打开该文件进行读取。
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.
您正在搜索TimeShift系统。这里有一些thirt-party 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!