如何使用DirectShow避免两个视频之间的空隙? [英] How avoid the gap between two videos, using directshow?

查看:74
本文介绍了如何使用DirectShow避免两个视频之间的空隙?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用直接放映播放视频,在每个视频清除对象(图形,控件,媒体等)之后,视频之间出现了间隙.如何避免这种间隙?
请帮助

Hi ,

I am using direct show to play video,after each video i am clearing the objects(graph,control,media etc).So there appears a gap between the vedio.How can we avoid this gap?
Pls help

推荐答案

自从我上次告诉您以来,这个问题的答案没有改变.您需要预先加载另一个,这样您就可以在另一个结束时以另一控件播放它,或者付出等待它准备好播放的代价.
The answer to this question has not changed since I last told you. You need to have the other one preloaded so you can play it in a different control the moment the other one ends, or pay the price of waiting for it to be ready to play.


您好

我尝试使用不同的控件进行播放.但是两个视频之间仍然存在间隙.每个视频播放完后,我都会使用Marshal.ReleaseComObject(graph),graph = null清除图形.我认为通过释放com对象似乎存在间隙.但是,如果不释放该对象,则视频中保留的透明形式会发生闪烁.
为了避免这种闪烁,我在每个视频之后都使用了marshal.ReleaseComObject.是否有其他方法可以避免出现这种间隙.我需要连续播放视频而没有任何间隙吗?

如果我们不释放这些组件,则透明形式会闪烁.

有可能.
Hi

I have tried playing using different controls .But still there is gap between the two video.After each video completes i am clearing the graph using Marshal.ReleaseComObject(graph),graph=null. I think by releasing the com objects there seems a gap .But with out releasing this a flickering occurs for the tranaparent form kept over the video .
To avoid this flickering i used marshal.ReleaseComObject after each video.Is there any other way to avoid this gap .I need to play video continously without any gap?

If we are not releasing this components ,the trnaparent form flickers .

Is it possible.


这篇关于如何使用DirectShow避免两个视频之间的空隙?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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