Startup Videos: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (updated)
Line 1: Line 1:
[[Category:Tutorials]]You can change the Valve startup video when playing HL2 by placing a valid AVI file called "valve.avi" in the <code>youremail\half-life 2\hl2\media</code> folder.  
[[Category:Tutorials]]You can change the startup video for a game by placing a valid AVI file called "valve.avi" in the <code>media</code> folder (i.e. <code>../half-life 2/hl2</code>, <code>../counter-strike source/cstrike</code>, etc.).{{note|Source 2007 uses "valve.bik" instead of "valve.avi".}}


Or if you are making a mod for HL2 you can place any AVI file in your <code>SourceMods\yourmodname\media</code> folder. In order for the video to play when you start your mod you will need to create a StartupVids.txt file in the <code>SourceMods\yourmodname\media</code> folder. Inside the StartupVids.txt file you simply specify the filename(s) of the video you want to be played on a separate line. For example ...
If you are making a mod for HL2 you can place any AVI or BIK file in your mod's <code>media</code> folder. In order for the video to play when you start your mod you will need to create a StartupVids.txt file in <code>media</code>. Inside StartupVids.txt you simply specify the filename(s) of the video(s) you want to be played on a separate line. For example ...
<pre>
<pre>
media/vid1.avi
media/vid1.avi
media/vid2.avi
media/vid2.bik
</pre>
</pre>


Keep in mind that the avi video will probably need be be encoded using the Cinepak codec. (XVid does not seem to work) Also it is not known what other audio codecs are supported, other then Microsoft ADPCM.
Keep in mind that an AVI video will need to be encoded using the Cinepak codec. It is not known whether audio codecs other than Microsoft ADPCM are supported.


If you want to suppress the startup videos, you can add the <code>-novideo</code> parameter to your [[Command Line Options#Source_Games|Command Line]].
If you want to suppress the startup videos, you can add the <code>-novideo</code> parameter to your [[Command Line Options#Source_Games|Command Line]].


DivX is also supported, however there appears to be a size limit to the startup video so if a video is not played then its filesize is too large, this has been tested with an avi file over 100mb.
DivX is also supported, however there appears to be a size limit to the startup video, so if a video is not played then its filesize is too large, this has been tested with an AVI file over 100 MB.

Revision as of 10:17, 18 September 2007

You can change the startup video for a game by placing a valid AVI file called "valve.avi" in the media folder (i.e. ../half-life 2/hl2, ../counter-strike source/cstrike, etc.).

Note.pngNote:Source 2007 uses "valve.bik" instead of "valve.avi".

If you are making a mod for HL2 you can place any AVI or BIK file in your mod's media folder. In order for the video to play when you start your mod you will need to create a StartupVids.txt file in media. Inside StartupVids.txt you simply specify the filename(s) of the video(s) you want to be played on a separate line. For example ...

media/vid1.avi
media/vid2.bik

Keep in mind that an AVI video will need to be encoded using the Cinepak codec. It is not known whether audio codecs other than Microsoft ADPCM are supported.

If you want to suppress the startup videos, you can add the -novideo parameter to your Command Line.

DivX is also supported, however there appears to be a size limit to the startup video, so if a video is not played then its filesize is too large, this has been tested with an AVI file over 100 MB.