GOTV allows you to broadcast games live with a slight delay. This means that outsiders who are not participating in the game can follow what is happening on the server. This technology is also used in well-known Counter-Strike tournaments so that spectators can watch the action. Additionally, broadcasts can be automatically saved, allowing you to watch them again at any time.
The GOTV service is activated via the server.cfg configuration file. The necessary commands must be added there:
tv_enable 1
tv_delay 90
tv_advertise_watchable 1
The commands above are mandatory to activate and make the GOTV master server reachable. However, there are additional commands for extended configuration:
| Command | Description |
|---|---|
| tv_allow_camera_man "0|1" | Allows viewers to take over as cameraman |
| tv_allow_static_shots "0|1" | Uses fixed-position cameras for recordings |
| tv_autorecord "0|1" | Automatically records all games as GOTV demos. All games are recorded automatically; the demo file format is auto-YYYYMMDD-hhmm-map.dem |
| tv_autoretry "0|1" | Attempts to reconnect after a network timeout |
| tv_chattimelimit "seconds" | Limits viewers to writing only every x seconds |
| tv_debug "0|1" | Displays GOTV debug information |
| tv_delaymapchange "0|1" | Delays map change until the broadcast is finished |
| tv_maxclients "n" | Maximum number of clients on the GOTV server |
| tv_maxrate "n" | Max allowed bandwidth for GOTV viewers, 0 = unlimited |
| tv_msg "text" | Sends a message to all viewers |
| tv_name "name" | GOTV hostname. Defines the GOTV name as it appears in the server browser and status bar |
| tv_nochat "0|1" | Enables/disables GOTV chat |
| tv_password "password" | Protects the GOTV broadcast with a password |
| tv_record "filename" | Starts recording a GOTV demo |
| tv_stop | Stops the GOTV broadcast |
| tv_stoprecord | Stops recording a GOTV demo |
| tv_title | Defines the name of the GOTV broadcast |
Once the function is enabled on the server, access is possible via the IP address and the assigned GOTV port on the server. To connect, you need the in-game console. There you can connect using the following command:
connect SERVERIP:27020
Manually and automatically recorded demos are saved in the main directory (/gxxxxx/csgo/game/csgo) of the CS:GO server. These can be downloaded via the provided FTP access. If you don’t know how to access via FTP yet, here is a guide: FTP Access.
Using the demo playback in the game, you can select the downloaded demo via Load and start it with the Play button.
