Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: AndyT on July 14, 2013, 10:53:42 AM

Title: Entity video problem - only audio is playing
Post by: AndyT on July 14, 2013, 10:53:42 AM
Hi to all,

i have weird problem - i am trying to play video from the entity, f.e.

var Video = Scene.CreateEntity();
Video.X = 50;
Video.Y = 70;
Video.Scale = 50;
Video.PlayTheora("Videos\pokus.ogv");

The playback runs (somewhere), but only audio is playing, i can´t see the video anywhere  :(
I don´t understand it at all...
Could anyone guess what the problem can be?

The Game.PlayTheora works ok...

Thanks a lot...
Title: Re: Entity video problem - only audio is playing
Post by: eborr on July 16, 2013, 12:48:01 AM
One thing to check on, are you using the main layer when showing the video ?

Another way to test would be to attach the video to a scene entity rather than an entity created on the fly
Title: Re: Entity video problem - only audio is playing
Post by: AndyT on July 16, 2013, 11:30:00 AM
Yes, i have tried both, if i create sprite or region entity on the main layer, still the same result, i hear only audio, but no video... Drives me crazy...
Title: Re: Entity video problem - only audio is playing
Post by: Spellbreaker on July 17, 2013, 08:10:47 PM
Dude, I think I got the Solution for you.

Make sure that the resolution of the video is a multiple of 16. ( eg. if you need 120x120, make it 128x128 ( simply add some transparency )) . That personally solved all my troubles I had with theora entitys some time ago ;)

Greets,

Spellbreaker
Title: Re: Entity video problem - only audio is playing
Post by: AndyT on July 19, 2013, 05:25:58 PM
OK i´ve sorted it out, just to let you know guys how stupid i am, i had the previous scene faded out manually and i forgot to fade in the current scene  ;D

Sorry for wasting your time and thanks for all the advices...
Title: Re: Entity video problem - only audio is playing
Post by: Spellbreaker on July 24, 2013, 05:55:28 PM
(http://i342.photobucket.com/albums/o409/hiwatt72/bth_homer-simpson-doh_zps74e3ecce.jpg)

;) Shit happens ;)