OGG and Keyframes

Hi again…

So I’ve got a movie texture streaming from a server as a GUITexture. Seems to work pretty well, the only problem is that it seems to out of sync most of the time; although it seems like it “catches up” later.

Does ogg make use of any sort of keyframes to sync the sound and video? If I set more frequent keyframes in the .mp4 I’m sourcing from, would the ogg carry those over?

Hi,

can I just ask how you went about this. I am trying to stream a number of video files from the server but the script I use is having none of it.

Have uploaded the mpg4 file to server but am not sure how to call this in Unity.

Help would be appreciated.

Cheers in advance. :roll:

Unity only uses Ogg Theora video, not mpg4. You can use mpg4 as a source file in Unity, but it gets converted to Ogg; you can only stream Ogg.

–Eric

Thanks Eric, I figured out after I posted this that you can export the ogg file from within Unity.

Can I just ask what code you used to stream your video from the server. Have tried a couple of scripts but cannot get the video to display through within the browser game engine.

Cheers

Ian

There’s a basic example with MovieTexture.isReadyToPlay. If that doesn’t help, post some code you’ve tried.

–Eric