如何从单独的设备混合音频和视频流并将它们传递给samplegrabber [英] how to mix audio and video streams from seperate device and pass them to samplegrabber

查看:82
本文介绍了如何从单独的设备混合音频和视频流并将它们传递给samplegrabber的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感谢您分享您的作品。

感谢您的回复..



实际上我写的(WMV)视频文件(没有音频)IWMWriter来自样本采集器中的BYTE数据。

i想要将音频(来自单独设备的音频流)添加到此视频流中。我尝试将两个流传递给WMAsfWriter(100%工作),也就是说,它用音频写视频文件(wmv)。

但是我只是通过使用这个WMAsfWriter将视频流渲染为实时预览如果我想写一个timeideally videofiles意味着,我需要停止mediacontrol并重新连接WMAsfWriter,然后运行mediacontrol。对于这个方法我暂停我的预览一秒钟,因为mediacontrol停止然后运行。

i需要解决这个问题,请帮助我。

是任何其他编写机器人流的作家,或任何其他手段使用WMAsfWriter而不停止mediacontrol

解决方案

我还没有得到如果你最终得到可以告诉我?

hii thanks for sharing your works.
thanks for your kind reply..

actually i write (WMV)video files(no audio) by IWMWriter from the BYTE data in sample grabber.
i want to add audio (audio streams from seperate device) to this video stream. i tried by passing both streams to WMAsfWriter (100% working) , that is, it writes video file(wmv) with audio.
But i just rendered the video stream to live preview, by using this WMAsfWriter if i want to write videofiles periodacally means , i need to stop the mediacontrol and reconnect the WMAsfWriter and then run the mediacontrol. for this methos i loos my preview for a second to couple of second, because mediacontrol is stopped and then run.
i need to solve this problem, please help me.
Is any other writer to write bot streams, or any other means to use WMAsfWriter without stoping mediacontrol

解决方案

I have not gotten If you finally get Could tell me?


这篇关于如何从单独的设备混合音频和视频流并将它们传递给samplegrabber的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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