VideoTextureReplacer doesnt play AVI?

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

VideoTextureReplacer doesnt play AVI?

Post 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!!!!
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.
User avatar
AndyCR
Posts: 1449
Joined: Wed Jul 06, 2005 5:08 pm
Location: Colorado, USA
Contact:

Post by AndyCR »

I'm pretty sure there is an example in the example level that shows off the entity types, that is an avi.
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Post 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. :)
Everyone can see the difficult, but only the wise can see the simple.
-----
incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

Post 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.
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Post 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...
Everyone can see the difficult, but only the wise can see the simple.
-----
incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

Post 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?
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.
User avatar
jonas
Posts: 779
Joined: Tue Jul 05, 2005 5:43 pm
Location: Texas, USA
Contact:

Post 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.
Jonas

Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
Post Reply