Directshow连续捕获 [英] Directshow continious capture

查看:104
本文介绍了Directshow连续捕获的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有直接播放的Mp4 Capture应用程序。在我的应用程序中,我需要连续捕获30分钟(或说一些动态值)的视频

I have Mp4 Capture Application in direct show. In my application i need to capture 30 min(or say some dynamic value) video continuously

我做了一个WaitableTimer例程,30分钟后我想停止捕获然后再次开始...但是在停止捕获下一个示例中的捕获后,流未添加到文件中。要开始下一次捕获,我必须再次释放所有捕获变量,再获取设备并构建图,然后我才能开始捕获。

for the I made one WaitableTimer Routine , after 30 minutes i want to stop the capture and then start again ... but after i stop capture on next sample in start capture the stream not get added to the file. to start next capture , i have to release all the capture variables again get devices and build graph and then i can start capture.

我不能停止捕获,然后重命名输出文件,然后再次开始捕获?有什么需要添加其他来做到的吗?

Cant i simply stop capture , then rename the output file and again start capture?? is anything needed to add additional to do that??

请帮助我。

谢谢

编辑:
以下是我用于记录的图形

Edit : Below is the graph i use for recording

Video Source --> x264vfw - H.264/MPEG-4 AVC Codec --------->GDCL MPEG-4 Multiplexer --> File Writer                                             
                                                        | 
Audio Source --> ACM Wrapper --> Monogram AAC Encoder --|


推荐答案

我们做的事情类似于捕获DV-Avi。您是否尝试过:

We do something similar to capture DV-Avi's. Have you tried to:


  1. 停止图表

  2. 删除文件写入器

  3. 创建新的File-Writer(并配置)

  4. 将File-Writer连接到多路复用器

  5. 并重新启动

  1. stop the graph
  2. remove File-Writer
  3. create new File-Writer (and configure)
  4. connect File-Writer to mux
  5. and start again

如果这不起作用,则说明Muxer或其他过滤器之一有问题。您可以轻松进行测试,只需将Muxer替换为音频和视频渲染器,然后尝试播放,停止,播放即可。

If this does not work then there is something wrong with the Muxer or one of the other filters. You can easily test this, just replace the Muxer with an audio and video-renderer and try to play, stop, play.

您还可以尝试使用另一个MP4 Mux过滤器,如 monogram mp4 mux

You can also just try another MP4 mux filter, like the monogram mp4 mux.

这篇关于Directshow连续捕获的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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