WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Old 09-01-2005, 12:51 AM
Gilliard Gilliard is offline
Join Date: Jul 2005
Location: Switzerland
Posts: 7
How to synchronize play/pause of 2 video streams in stereo

I prepare an application in which both left and right channels in stereo mode must display different avi (or mpeg) video streams.
The video must be started / stopped, of course both channels exactly on the same frame.
But, due to the fact that 2 python commands are needed to play/pause the 2 "cameras", it sometimes happens that one stops or starts before the other, in which case both streams are no more synchronized.

Is there a mean to play / pause 2 video streams exactly on the same frame ?

Here an excerpt of my code :
	self.leftcam = viz.add(self.leftEyeMovie, viz.TEX_RECT)
	self.rightcam = viz.add(self.rightEyeMovie,viz.TEX_RECT)

def play(self): 
	if self.playBoth: ## 2 commands cannot always act at the same time
	elif self.playLeft:
	elif self.playRight:

def pause(self):
	if self.playBoth:
	elif self.playLeft:
	elif self.playRight:
Bertrand Gilliard
Reply With Quote
Old 09-01-2005, 08:58 AM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849

Are you noticing a synchronization issue with the sample code you supplied? Media files have a jumpto command which can jump playback to specific time in the video. Other than that, the only way to have the videos be perfectly synchronized is to combine them into a single video that displays them side by side.
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 03:40 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC