videnc
The videnc
command is used to manage video encoding parameters. The videnc start
and videnc stop
commands can be used to start and stop encoding of the video input. ID is either the encoder ID (0, 1, 2, or 3) or all. On Makito X HEVC units, the HEVC encoder uses ID 4 and 5.
Synopsis
videnc ID start |
Actions
Action | Description |
---|---|
start | Activates encoding of the video input. |
stop | Stops (mutes) encoding of the video input. |
set | Configures encoder video parameters. A series of one or more |
get | Displays encoder video status information. You can specify to display the configuration (config), stats, or all. Tip To display a summary of all the encoders in a table format, you can use |
clear | Clears the encoder’s statistics. |
reset | Resets the encoder. |
help | Displays usage information for the videnc command. |
Parameters
Parameter | Default | Description/Values |
---|---|---|
| (SDI Dual-BNC only) The Video Input port for the encoder:
| |
| None | Timecodes are used to mark video frames, mainly for editing purposes. This field either disables timecoding, or selects the source to “timecode” the encoded video frame. The following selections are available:
Note See TimeCode Source for currently supported TimeCode features. |
aspectratio | Auto | Specifies the aspect ratio of the video source and signals it into the MPEG stream:
Note WSS is only supported with analog PAL video; AFD is only supported with SDSDI video. |
| 6000 kbps | The Video Raw Elementary Stream bitrate (kbps): Range: 32-25000 |
| Scale | By default, input is scaled to the output resolution.
Note Cropping is disabled if resolution is set to Auto, 960, or 1440, or if (output) resolution is set to equal or larger than the input resolution. |
| 120 | The Group of Pictures size for the encoded video.Range: 1-1000 Note For intra-refresh mode, the GOP size is the number of frames between the sequence and picture parameter set NAL transmission. |
| IP | The GOP structure for the encoded video: (See “Framing” in Video Encoder Settings)
Note B frames require a Main Profile decoder. B frames provide more quality as the encoding is more efficient; thus more details can be rendered in the same bandwidth/bitrate. Tip When B frames are used, the GOP may be rounded up to make the sequence end with a P frame. |
| CAVLC | Select the compression scheme:
Note The H.264 decoder must be Main Profile compliant or higher to decode a CABAC video stream. Tip Generally, you get better visual quality if you are using CABAC because it is more efficient. |
| Off | Enables (on) or disables (off) Intra-Picture SubPartitioning. Intra-Partitioning is a setting that allows the use of a sub-macroblock partition called the “Intra8x8 block” with all the intra-prediction modes associated with it. Note Intra-Partitioning requires that the H.264 decoder be High Profile compliant. Generally, you get better visual quality if you enable Intra-Partitioning because it gives the video encoder better coding tools. Tip Noisy Matrix completion is enabled automatically when Partitioning is enabled and video bitrate is under 800 Kbps. Noisy Matrix completion enhances video image “noise” reduction to improve video quality at lower bitrates and make blocky artifacts less visible. |
| Off | Enables (on) or disables (off) Intra-refresh video encoding support. Intra-refresh is a video encoding mode of operation in which no distinct IDR frame is sent in the video elementary stream. Instead, the macro-blocks that make up the IDR frame are sent gradually within a certain time so that the entire video reference frame is re-built (at the decoder) within the number of frames specified by the refreshrate parameter. Intrarefresh minimizes latency, smooths the video bitrate, and minimizes GOP pulsing artifacts. Tip Intra-refresh requires that the decoder and streams be started first. |
| 60 | Specifies the number of frames over which the entire picture is refreshed. Range: 1-5000 Note If the refresh rate is set too low, a left-to-right wave-like artifact may result. |
| Off | This parameter permits the dropping of frames to improve video quality at lower bitrates. |
| Auto | The video frame rate per second:
|
| Off | This parameter enables Closed Captioning on the encoder stream. Note For more information, see Closed Captioning. |
| 50 ms. | Offset video timestamps by this value in ms. Range: -1000–1000 |
| Auto | The stream output resolution. Specifies the number of lines per frame and pixels per line to be encoded. Options depend on the Input Format detected.
|
|
Note See Video Encoding. |
Examples
# videnc 0 set gopsize=120 Sets the video GOP to 120. You will receive the following confirmation: Encoder configured successfully. |
# videnc 0 set bitrate=6000 Sets the video bitrate to 6000. |
# videnc 0 set bitrate=6000 gopsize=120 resolution=1280x720 Input=BNC1 Combines multiple video parameters in a single line. |
# videnc 0 get Returns video configuration information for the encoder: Encoder ID : 0 |
# videnc 0 get stats Returns encoder statistics: Encoder ID : 0 Encoded Frames : 2,148,020 Closed Captioning : Disabled |
Related Topics