For Programmers: Free Programming Magazines  


Home > Archive > VC Language > November 2005 > how to play two movies synchronously in one computer? (in direct x)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to play two movies synchronously in one computer? (in direct x)
bn

2005-11-20, 7:58 am

Hi,

I need to play two films on a PC,both of them to be played quite
synchronously. I have two IMediaControl, each for a film and I do start them
just one after the other. But there is a delay between the two. the delay is
different, maybe 1 ms maybe 15 ms. Is there any solution for a better timing
?

thanks,
Behzad


The March Hare [MVP]

2005-11-20, 7:02 pm

On Sat, 19 Nov 2005 13:33:16 +0330, bn wrote:

> I need to play two films on a PC,both of them to be played quite
> synchronously. I have two IMediaControl, each for a film and I do start them
> just one after the other. But there is a delay between the two. the delay is
> different, maybe 1 ms maybe 15 ms. Is there any solution for a better timing


Look at using one video renderer (VMR9 or VMR7) with the
IVMRMixerControl[9] interface.

You have chosen the wrong newsgroups. The best choice for your question
is:

microsoft.public.win32.programmer.directx.video

I have set the follow up there.

microsoft.public.directx.video is an end-user newsgroup. Questions about
dshow and its SDK, samples and tools belong in the dshow programmer groups.
See http://tmhare.mvps.org/help.htm#where for information on where to post.


--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
Alexander Grigoriev

2005-11-20, 7:02 pm

Are you playing them on a PC display, or on a separate video output?

With 40 ms frame interval, 15 ms skew is too little. 1 ms is negligible, and
in general, with 60 dps display (16 ms period), you should not mind it at
all.

"bn" <b@y.c> wrote in message news:e8BVjlb7FHA.2092@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I need to play two films on a PC,both of them to be played quite
> synchronously. I have two IMediaControl, each for a film and I do start
> them
> just one after the other. But there is a delay between the two. the delay
> is
> different, maybe 1 ms maybe 15 ms. Is there any solution for a better
> timing
> ?
>
> thanks,
> Behzad
>
>



bn

2005-11-21, 7:04 pm

thanks for your reply,
most of the time 15 ms is not important, but when u have a moving object,
15 ms time difference is quite visible. I think it is because the frame
rate, u may have 15 msec time difference, but it could be a frame forward,
.... .and when u have a moving object 1 frame may be important.


"Alexander Grigoriev" <alegr@earthlink.net> wrote in message
news:O1MK$lf7FHA.1708@TK2MSFTNGP10.phx.gbl...
> Are you playing them on a PC display, or on a separate video output?
>
> With 40 ms frame interval, 15 ms skew is too little. 1 ms is negligible,

and
> in general, with 60 dps display (16 ms period), you should not mind it at
> all.
>
> "bn" <b@y.c> wrote in message

news:e8BVjlb7FHA.2092@TK2MSFTNGP12.phx.gbl...
delay[color=darkred]
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com