如何在两台PC上使用dshow同步两个视频 [英] How to synchronize two videos with dshow on two pc

查看:101
本文介绍了如何在两台PC上使用dshow同步两个视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现一个播放器,用于在不同的PC上同步两个视频.
不幸的是,我遇到了一些阻止我这样做的问题.如下:
(1).使用vmr9播放avi文件时,播放器删除了样本.
我测试了不同的视频渲染器,例如haali,vmr7,vmr9 ...,结果是相同的,仍然丢弃了样本.我知道质量控制管理可以说明原因.但是实施自己的质量控制非常困难. br/> 有谁告诉我解决这个可怕问题的解决方案?
(2).IMediaSeeking的SetPositions函数太慢.
有什么解决方案可以通过删除样本实现同步吗?

非常感谢您!

I want to implement a player for synchronizing two videos on different pc.
Unluckily,I met some problems to prevent me to do it. As follows:
(1).The player dropped samples when it played a avi file with vmr9.
I tested different video renders ,such as haali,vmr7,vmr9... And the results is the same that it still dropped samples.I knew quality control management could tell the reasons.But It is so difficult to implement own quality control.
Is anyone to tell me the solution to resolve the terrible problem?
(2).The function SetPositions of IMediaSeeking is too slow.
Is any solution to implement Synchronization with dropping samples?

Thank you very much!

推荐答案

当您告诉另一台计算机您的视频在哪里时,它已经可以继续播放了,这将是不可能的,本身. IMO最好的选择是同步视频的开头,然后在程序中播放视频,这两个程序要定期确保视频的位置与经过的时间一致.这样,您就拥有一个基准,而不是两台机器之间的持续通信.
It''s going to be impossible, by the time you tell the other computer where your video is, it will have moved on, itself. Your best bet IMO is to synch the start of the video, then play the videos in programs which both regularly make sure that the position of the video is in line with how much time has elapsed. That way, you have one benchmark, not continual communication between two machines.


这篇关于如何在两台PC上使用dshow同步两个视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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