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 or all. As of Makito X1 v1.2, you can specify a range or a comma-separated list of IDs for the operation, as shown in the examples that follow.
The Makito X1 offers two encoding cores (encoder IDs 0 - 1).
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 usevidenc all get table .
|
clear | Clears the encoder’s statistics. |
reset | Resets the encoder. |
help | Displays usage information for the videnc command. |
Parameters
Parameter | Default | Description/Values |
---|---|---|
| H265 | The codec algorithm for the encoder:
|
| BNC1 | 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:
|
countmode | SMPTE12M-1 | (TimeCode Source must be System) Selects the TimeCode Counting Mode:
|
dailyresync | On | (timecode must be System with SMPTE12M-1 specified for countmode) Enables or disables timecode daily resyncs. Values are |
resynchour | 0 (midnight) | (dailyresync must be enabled) Specifies the time for the resync to occur (ranging from 00:00 (midnight) to 23:00). |
| 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. |
dynamicrange | Auto-Detect | (10-bit chromasubsampling must be selected) Select to configure the encoder to detect the inbound High Dynamic Range (HDR) transfer function signaling and forward that information within the encoded stream.
|
| 6000 kbps | The Video Raw Elementary Stream bitrate (kbps). Range: |
| Scale | ( |
| 120 | The Group of Pictures size for the encoded video. Range: 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 (i.e., video compression mode) for the encoded video: (See “Framing” under 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. |
| Select the application profile class for the encoder:
| |
skipframes | Off | ( |
| Auto | The video frame rate per second:
|
intrarefresh | Off | This parameter enables Intra-refresh video encoding support in order to minimize latency, smooth the video bitrate, and minimize GOP pulsing artifacts. |
slices | 1 | Configures the encoder to use multiple slices per frame instead of the normal 1 slice per frame encoder configuration. Encoding latency is improved since encoded slices can be transmitted on the network without having to wait for the whole frame to be encoded. 1..11 Setting the number of slices to 2 or higher will automatically enable slice-based video capture and encoding, resulting in even lower end-to-end latency. Streams with multiple slices will remain compliant with H.264 and H.265 standards, and will still be compatible with standard receivers and decoders. Note Latency improvements are only seen on decoders that do not buffer entire video frames before decoding and can actually decode and output slices. Multiple slices cannot be used in conjunction with skipframes or gopstructure, i.e., Framing containing B-frames (IBP, .... IBBBBP). |
| Off | This parameter enables Closed Captioning on the encoder stream. |
| Select the Chroma Subsampling for the encoder:
| |
| CBR | Select the Rate Control for the encoder:
|
| (Rate Control must be VBR) Enter the maximum video bitrate for the encoder: Note
| |
scenechangedetection | Off | Enables or disables scene change detection. Values: On, Off |
scdthreshold | 50% | When scene change detection is enabled, this controls the amount of change in the video image that will trigger the insertion of an I-frame. Range: 1-100% |
| 50 ms. | Offset video timestamps by this value in ms. Range: -1000..1000 |
| Auto | Specifies the stream output resolution (i.e., the number of lines per frame and pixels per line to be encoded). Options depend on the Input Format detected.
|
Examples
# videnc 0,1 start Starts video encoders 0, and 1. You will receive the following confirmation: 2 video encoders started successfully. |
# videnc 0,1 stop Stops video encoders 0 and 1. 2 video encoders stopped successfully. |
# videnc 0 set gopsize=120 Sets the video GOP to 120. Encoder configured successfully. |
# videnc 1 set gopsize=60 Sets the GOP to 60 for video encoder 1. 1 video encoder configured successfully. |
# videnc 0 set bitrate=6000 Sets the video bitrate to 6000. |
# videnc 0 set bitrate=6000 gopsize=120 resolution=1280x720 Input=BNC-1 Combines multiple video parameters in a single line. |
# videnc 0 get Returns video configuration information for the encoder: Encoder ID : 0 Configuration: |
# videnc 0 get stats Returns encoder statistics: Encoder ID : 0 |