Video plays in the editor but not in the compile

Started by Toonloon, Sat 02/07/2011 00:27:11

Previous topic - Next topic

Toonloon

I can't find anything in the tutorial about this.

When i run the game in the editor, it works perfectly. My video plays in the first room, then the character moves straight into the second room and the game begins. But when I tried to share the build with a colleague, I tested it first and I could hear the audio from the video, but not see anything.

I suspect it's something to do with the size of the video, but I've been wrong about everything else.

The video is an avi and it's resolution is 720 x 576. My game is set to 800 x 600. Does that matter? Am I going to have to rebuilt the video from scratch with custom 800 x 600 resolution?

Thanks.

Wyz

Just checking: From which function to you call the video function?
Life is like an adventure without the pixel hunts.

monkey0506

Also, you do have the AVI in the Compiled folder, right? The only video type that can be compiled into the game EXE is OGG Theora with the OGV extension, anything else has to be distributed with the game.

Toonloon

#3
function room_Load()
{
 PlayVideo("title1.avi", eVideoSkipNotAllowed, 1);    


Yes, it is in the compiled folder, but I think I'll re-do the file in Premiere and use the file extension you suggested, as I would prefer for it to be included in the .exe.

Thanks again for the tip.

EDIT: I've tried a couple of OGV converters and none of them have worked. How do you convert your videos? I made my video in Adobe Premiere and exported as an Microsoft AVI. What's the best way to do this please?

Khris

#4
This should be helpful:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=43883.msg583901#msg583901

If you can only hear audio but not see video, it's most likely a codec problem. I experienced the same with vertigoaddict's current MAGS game; but looking at the video outside of AGS worked fine. Not sure what the problem is but ogv seems to be the best route.

Mehrdad

#5
Thats right Khris.BUT....I have before this problem too.Arj0n solved that.

"function room_Load()"  doesnt show video.

anyway type and use this code :

Code: ags


function room_AfterFadeIn()
{
PlayVideo("title1.avi", eVideoSkipNotAllowed, 1); 
}

My official site: http://www.pershaland.com/

Khris

Toonloon said it worked fine when the game was tested, just not when a colleague wanted to play it on a different machine.
And just for reference, it's not enough to paste that into the script, the function has to be linked to the event.

SMF spam blocked by CleanTalk