viddec
The viddec
command is used to manage video decoding for the SDI 1 and SDI 2 ports. This includes binding the video outputs to the streams and configuring properties such as the Output Resolution and Frame Rate.
Each decoder channel can support an alternate (secondary) stream as input which is switched to if the primary fails in order to minimize down-time. You can also select a Still Image such as a black screen that the decoder will display if it is no longer receiving video (for example, if the encoder stream has stopped or the network connection is lost).
Synopsis
viddec ID start |
Actions
Action | Description |
---|---|
start | Activates decoding of the video input. |
stop | Stops (mutes) decoding of the video input. |
set | Modifies decoder video parameter(s). A series of one or more |
get | Displays decoder video status information. You can specify to display the configuration ( |
clear | Clears the decoder's statistics. |
help | Displays usage information for the viddec command. |
Parameters
Parameter | Default | Description/Values |
---|---|---|
streamId | n/a | Specifies the primary stream to bind to the video output. Positive stream index. See Configuring Decoder Outputs. |
altStreamId | n/a | Specifies the alternative stream to bind to the video output. Positive stream index. See Configuring Decoder Outputs. |
frameRate |
| The output frame rate for the displays. If Values set which are impossible to implement will be treated as |
stillImage |
| The type of static image to display when the decoder is not receiving a video stream.
NOTE: When the still image is substituted on the display outputs, the video frame rate and resolution will be maintained. When the video decoder receives a new video stream, it will wait until it receives a new IDR frame and will re-start the display with that IDR frame. |
stillDelay |
| The delay in seconds before the still image is displayed. 1...1000 |
stillFile | n/a | File name of custom still image. |
resolution | n/a | The output resolution:
|
syncmode |
| The mode of synchronization of sound and picture for the decoded stream:
|
buffering | automatic | (syncmode must be
Note The decoder has a minimum buffer set based on the resolution and frame-rate of the stream content. In addition, users can add more delay if desired: (1) to achieve a specific decoding latency for inter-channel synchronization purposes; (2) to deal with unusually large amounts of jitter in the stream; or (3) to allow A/V sync to occur when the stream content is highly out of sync. (Seedelay below.)
Note Audio artifacts may occur if audio is streamed after video when using Adaptive Low Latency.
|
delay | 0 ms | |
multiSyncDelay | 1000 ms |
viddec Examples
# viddec 1 get all Returns video configuration information and statistics for decoder #1, such as: Decoder ID : 1 Configuration: Statistics: Video: Audio: KLV: Not Present CC: Not Present TC: Not Present AFD: Not Present |
# viddec 1 set stillimage=blue Sets the static image to blue. You will receive the following confirmation: Decoder configured successfully. |
# viddec 1 get stats Returns video configuration statistics for decoder #1, such as: Decoder ID : 1 Statistics: Video: Audio: KLV: Not Present CC: Not Present TC: Not Present AFD: Not Present |
Tip
The stream type is automatically determined on decoder startup. Theviddec Video Algorithm
statistic shows which codec algorithm (H.264 or HEVC) is in use for a decode channel.
Video Decoder Buffering Passthrough
Passthrough is a special mode that instructs the decoder to bypass its internal jitter buffer and output video/audio as data becomes available to play (while maintaining AV sync). Normally, the decoder will adapt to the detected network jitter to preserve smooth play of the video. Passthrough mode is intended for use within QoS-enabled enterprise class networks that have well controlled network jitter.
The advantage of this mode is a perceptible reduced latency.
The side effect of passthrough is that, occasionally, even the most pristine networks may have issues that, when passthrough mode is enabled, are more likely to cause the decoder to drop or replay a video frame.
Related Topics