Viz Engine Administrator Guide
Version 3.12 | Published October 17, 2019 ©
Timed Command Execution
To achieve frame accurate output at a certain time, Viz Engine takes advantage of a time code reader board and special commands. Viz Engine records certain commands and executes them exactly at the time the time code reader board hits this timestamp.
Here, you find the following:
Note: Frame Accurate Timed Command Execution in combination with graphics, live and clip playback requires Viz Engine version 3.9.1 or later. Earlier versions can only guarantee Frame Accurate Timed Command Execution on the Matrox X.mio2, X.mio2+ and X.mio3 (as X.mio2+) boards. Viz Engine can only guarantee a frame accurate output, not a field accurate one.
Time Code Related Commands
Time Code |
Description |
TC*TC_INFO GET |
Gives you all available time codes in the system. The return is a list of indexes and strings. Every time code source is identified by a unique index. |
TC*TC_ACTIVE GET |
Gives all time codes which have been updated in the last two fields. |
TC*TC GET <index> |
Returns the time code for the index. |
TC*USED_TC GET |
Returns the current used timecode by index |
TC*USED_TC SET |
Sets the timecode source by index. |
TC*TC_COMMAND SET_TC <index> <HH>:<MM>:<SS>:<FF> -1 COMMAND |
Queues a Command for execution on a specific time. <index>: Index of the timecode. Example TC*TC_COMMAND SET_TC 1 12:07:10:00 -1 RENDERER SET_OBJECT SCENE*<9D1F7526-CFEF-C844-848279FE076E9104> Activates scene <9D1F7526-CFEF-C844-848279FE076E9104> at exactly 12:07:10:00. |
TC*TC CLEAR <index> |
Clears all queued commands for the time code source with index <index>. |
TC*DELETION_THRESHOLD SET <TC> |
Defines a time frame after which a command is removed when it has not been executed. The threshold needs to be defined as hh:mm:ss:ff. Example TC*DELETION_THRESHOLD SET 00:00:10:00 |
TC*ACTIVATION_THRESHOLD SET <TC> |
Defines a time frame until when a command has to be executed (even if the given timecode has already passed). The threshold needs to be defined as hh:mm:ss:ff. Example TC*ACTIVATION_THRESHOLD SET 00:00:00:10 |
TC*INSERT_THRESHOLD SET <TC> |
Defines a time frame into the future during which command are allowed to be executed when inserted. The threshold needs to be defined as hh:mm:ss:ff. Example TC*INSERT_THRESHOLD SET 01:00:00:00 |
Prerequisites
The following prerequisites need to be done:
-
The system must be equipped with a Plura TC Reader board. This needs to be enabled in the Viz Config File by setting TCReaderUsage = 1.
-
The correct TC source must be set by using TCReaderSource. Viz Engine supports LTC, VITC, ATC_LTC, ATC_VITC, HANC_LTC, HANC_VITC. To specify multiple sources the format would be: TCReaderSource = LTC | VITC.
-
Commands need to be sent with a timecode. For example: TC*TC_COMMAND SET_TC 1 12:00:00:00 -1 RENDERER*MAIN_LAYER SET_OBJECT SCENE*<9968FF26-35B0-4C01-AE5A4F8D11D1543B>.
-
Ringbuffer should be turned On. This makes sure that the command to load the given scene is executed exactly at the given timecode. (12:00:00:00).The fillsize of the ringbuffer is considered.
To verify this, make sure the final output device (Recorder, Monitor) can display the same timecode as attached to the Viz Engine.
Configuration
To configure a correct field accurate timeout, a few parameters need to be set. Three important values are responsible for a proper playout of Graphics, DVE Live sources and DVE Clips:
Framebuffer Delay
The FramebufferDelay setting is usually used to delay the playout of any graphics. It is used to keep DVE and Graphics in sync when it is set to 0. However, for fine tuning the delays between Graphics, DVE Live and DVE Videos, this value needs to be adjusted accordingly.
For xMio3 boards, the Framebufferdelay can be set to 0. This makes sure all other delays are handled automatically, you need to fine tune your settings, the following settings are required.
Timed Command Bias
Command: TC*TC_BIAS SET n (in fields)
Config Setting: delayed_command_bias = n
This represents the overall delay in fields, the commands are sent if the time code hits the timestamp. This affects Graphics and any DVE source. For instance, if your graphics appear two frames too late, you need to use delayed_command_bias= -2.
The Command TC*TC_BIAS SET n immediately takes effect for all TC commands sent after this one without restarting Viz Engine.
VideoIn[n]DelayDVE
If you also need to show DVE Live effects in a frame accurate environment, there is also the need to configure the delay of the LiveInput DVE. This is done by setting the following in the config file:
Matrox0.VideoIn1.VideoDelayDVE = n
This is the number of fields, the DVE signal is delayed until it is shown on the video output. This value can not be negative, the minimum is 1 (0 also represents 1). If your graphics + DVE are still too late, you need to decrease the timed command bias and adjust the VideoInDelay accordingly.
ClipIn[n]DelayDVE
If also clips need to be played exactly at the given timecode an additional parameter comes in play:
ClipIn1.VideoDelayDVE = n
This controls how many fields a clip is being delayed until it shows up on the Video Output.
Note: Clips need always to be cued as the need some time be read from the hard drive. This is done by sending the following command to the engine a few seconds before the scene is taken to air:
SCENE*<uuid> LOAD
SCENE*<uuid> CUE
Clips must be placed in the stage to be preloaded correctly.
The correct sequence to bring a scene On Air exactly at 12:00:00:00 with clips prepared would then be:
SCENE*<uuid> LOAD
SCENE*<uuid> CUE
TC*TC_COMMAND SET_TC
1
12
:
00
:
00
:
00
-
1
RENDERER*UPDATE SET
0
TC*TC_COMMAND SET_TC
1
12
:
00
:
00
:
00
-
1
RENDERER*MAIN_LAYER SET_OBJECT SCENE*<uuid>
TC*TC_COMMAND SET_TC
1
12
:
00
:
00
:
00
-
1
RENDERER*STAGE START
TC*TC_COMMAND SET_TC
1
12
:
00
:
00
:
00
-
1
RENDERER*UPDATE SET
1
X.mio2 Boards
For X.mio2 boards, following settings are needed:
Resolution |
TC_BIAS Setting |
1080i50 |
0 |
720p50 |
-1 |
PAL |
+8 |
1080i60M |
2 |
720p60M |
0 |
NTSC |
7 |
X.mio2+ Boards
For X.mio2+boards, following settings are needed:
Resolution |
TC_BIAS Setting |
DVE Delay Video |
DVE Delay Clips |
FramebufferDelay |
1080i50 |
0 |
4 |
0 |
4 |
720p50 |
6 |
3 |
- |
4 |
PAL |
0 |
4 |
0 |
4 |
1080i60M |
1 |
4 |
0 |
4 |
720p60M |
6 |
3 |
- |
4 |
NTSC |
1 |
4 |
0 |
4 |
X.mio3 Boards
For X.mio3 boards, following settings are needed:
Resolution |
TC_BIAS Setting |
DVE Delay Video |
DVE Delay Clip |
FramebufferDelay |
1080i50 |
0 |
4 |
0 |
0 |
1080i60M |
0 |
4 |
1 |
0 |
720p50 |
0 |
4 |
0 |
0 |
720p60M |
0 |
4 |
1 |
0 |