TEncoder_str
TEncoder_str = ( Enc_OutputURL, Enc_Video_Codec, Enc_Audio_Codec, Enc_Extra_Parameters );
String settings of the Datastead Encoder, set with Encoder_SetStr.
Set with Encoder_SetStr before starting the video, e.g. Encoder_SetStr (EncoderID, Enc_Video_Codec, "hevc").
The integer settings are listed in TEncoder_int.
| Value | Description |
|---|---|
Enc_OutputURL |
destination of the encoder, file path or streaming URL, set by Encoders_CreateInstanceForRecording / Encoders_CreateInstanceForStreaming; for the encoder ID 0, the recording file name of TVideoGrabber is used |
Enc_Video_Codec |
name of the FFmpeg video encoder, e.g. "mpeg4", "mpeg2video", "mjpeg", or an alias: "h264" (libopenh264), "hevc" or "h265" (libkvazaar), "h266" or "vvc" (libvvenc), "mjpg" or "jpeg" (mjpeg). With Enc_Video_GPU_Encoder, "h264" and "hevc" use the GPU encoder |
Enc_Audio_Codec |
name of the FFmpeg audio encoder, e.g. "aac", or "mp3" (libmp3lame) |
Enc_Extra_Parameters |
additional FFmpeg options, for the cases that the other settings do not cover: "-name value" pairs on one line (e.g. "-g:v 60 -bf:v 0"), or one "name value" pair per line. The ":v" / ":a" suffix of a name passes the option to the video / audio encoder only; without suffix the option goes to the output (format, network protocol) and to both encoders. "-f name" forces the output format (e.g. "-f mpegts"). An invalid value can prevent the encoder from opening (see the log) |