Page 1 of 1

VideoTextureReplacer doesnt play AVI?

Posted: Tue Nov 21, 2006 10:17 pm
by incenseman2003
Has anyone gotten the VideoTextureReplacer to play anything but a GIF?
I have tried more than one AVI and it has failed. There must be something about this that is not mentioned in the manual. There must be something that is not in there.

The manual reads as follows:

"VideoTextureReplacer
The VideoTextureReplacer entity allows the level designer to replace any texture used in the level with a looping video stream.

Field Descriptions
The fields for the VideoTextureReplacer entity are:

Field
Description

OnlyPlayInRadius
If this is TRUE, the video plays only when the player is within the distance defined in Radius, otherwise the video plays all the time after activation.

Radius
Trigger radius for playing the video. If this is zero (0.0), then the video plays at all times. If this is non-zero, then the player has to get within this radius of the VideoTextureReplacer entity to cause the video to start playback.

szTextureName
Name of the level texture to replace with video

szVideoName
Name of the GIF or AVI file to play as the texture replacement


The Radius value, if set to anything other than zero, causes the system to not start video playback unless the player is within a certain distance of the VideoTextureReplacer entity. Used in conjunction with Radius, the OnlyPlayInRadius flag if set to TRUE will only play the video when the player is within the distance defined by Radius."

Is there a certain frame rate that is needed or resolution?

Can someone please give lots fo detail on how to get the VideoTextureReplacer to work.

Thanks

Have a great one!!!!

Posted: Sun Nov 26, 2006 4:27 am
by AndyCR
I'm pretty sure there is an example in the example level that shows off the entity types, that is an avi.

Posted: Sun Nov 26, 2006 9:49 am
by Jay
You can not use compressed avi's - namely ones that use Codecs.
The only thing i think that is supported is some Intel-Codec, don't know which one though

Hoope this helps. :)

Posted: Thu Dec 07, 2006 5:07 pm
by incenseman2003
AndyCR,

The demo that has the VideoTextureReplacer in it uses the Title.gif.



I have 5 pieces of software and no matter what one I use it creates the AVI so that a codec of somekind is invovled. How does on create an AVI that doesnt use codecs?



Edit 3:51 PM 12/7/2006:

The rfsplash.avi uses the Cinepak Codec and I finally got it to work ingame using the VideoTextureReplacer. The texture that I replaced with it is 640X480. Properties for it are:

Width= 640
Height= 480
Duration= 0:00:05
Frame Rate= 15fps
Data rate= 128kbps
video Sample size= 24 bit
Video Compression= Cinepak Codec



However there is another AVI that I have and the texture that I replaced with it is 640X272 and I cannot get that one to play ingame, it is just a black screen that is the size and shape of the video that should be playing. Properties for it are:

Width= 640
Height= 272
Duration= 1:39:59
Bit Rate= 130kbps
Audio Format= MPEG Layer-3
Frame Rate= 25fps
Data rate= 120kbps
video Sample size= none listed
Video Compression= none listed

Does video have to be within a certain Width, Height, Duration, Bit Rate, Audio Format, Frame Rate, Data rate, video Sample size and Video Compression standard to work properly with the VideoTextureReplacer?

This is not covered in the manual.

Posted: Fri Dec 08, 2006 4:19 pm
by Jay
huh? it's possible to get a non-square texture that is not a power of 2 to work? how did you do that?

I always thought all textures and also the videos that are the ones that replace them had to be square...

Posted: Fri Dec 08, 2006 4:56 pm
by incenseman2003
Jay wrote:huh? it's possible to get a non-square texture that is not a power of 2 to work? how did you do that?

I always thought all textures and also the videos that are the ones that replace them had to be square...
I just set it up and it ran. No magic or wizardry. RF took care fo the rest.

I just want to know the limits and paramaters to observe when setting up a video ingame.

Is there anyone that knows this information?

Posted: Sat Dec 09, 2006 12:17 am
by jonas
One thing to keep in mind is rf really likes things to be in multiples of 8.
So your video's dimension's should be in a multiple of 8. It might possibly take it though. I know rf accepts the cine pak codec so you might try using that.

and make sure that your sample rate isn't 8 bit because rf doesn't support 8 bit. It supports 16, 24, 32 but for some reason not 8.