playing avi files on Mac

Hi all,

I’m facing difficulties to play a video on Mac.
I tried to follow the manual with :

import direct.directbase.DirectStart
from pandac.PandaModules import *
import sys

class Start(DirectObject):
	def __init__(self):
		self.accept("escape", sys.exit)
		
		card= loader.loadModel("card.bam")
		card.reparentTo(render)
		
		myMovieTexture=loader.loadTexture("Movies/0001_0201.avi")
		card.setTexture(myMovieTexture)
Start()
run()

which make Panda crash:

Then I followed the Media-Player simple with :

import direct.directbase.DirectStart
from pandac.PandaModules import *
import sys

class Start(DirectObject):
	def __init__(self):
		self.accept("escape", sys.exit)
		
		card= loader.loadModel("card.bam")
		card.reparentTo(render)
		
		self.tex = MovieTexture("name")
		self.tex.read("Movies/0001_0201.avi")
		card.setTexture(self.tex)
		card.setTexScale(TextureStage.getDefault(), self.tex.getTexScale())
Start()
run()

Where two colors are looped : blue → red → blue …

I got the same result if I try the PandaSneezes.avi sample.
The sample works correctly on Windows.

What version of Panda are you running? This may be an error that we have fixed on the cvs trunk.

David

Still 1.6.2
Will try tomorrow with 1.7