optris_sdk_video_export_config
How to write the video.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_video_export_config), or call optris_sdk_video_export_config_init().
width
uint32_t width
Frame width in pixels. For OPTRIS_SDK_VIDEO_CONTENT_COLORIZED this is the size of your picture, which need not be the camera's: an application that draws its regions, labels and readings into a larger buffer sets that buffer's size here and those are in the video too.
height
uint32_t height
Frame height in pixels. See width.
frame_rate
float frame_rate
Declared output frame rate in Hz. Sets the stream's time base as well as the rate the file announces.
codec
optris_sdk_video_codec codec
Which encoder to use. OPTRIS_SDK_VIDEO_CODEC_MJPEG by default, because it is the only one certain to be present -- a zero-configuration export then works everywhere instead of failing only on the delivered platform.
content
optris_sdk_video_content content
What the frames handed over will be. OPTRIS_SDK_VIDEO_CONTENT_RADIOMETRIC by default.
preset
optris_sdk_video_preset preset
Encoding speed preset. OPTRIS_SDK_VIDEO_PRESET_MEDIUM by default.
bitrate_kbps
int32_t bitrate_kbps
Target bitrate in kbit/s. 0 selects the encoder's quality mode.
mjpeg_quality
int32_t mjpeg_quality
MJPEG quality, 2 (best) to 31 (worst). 2 by default, and ignored by every other codec.
temp_min_c
float temp_min_c
Reserved for a future colorization range, in the SDK's temperature unit (Celsius unless optris_sdk_set_temperature_unit() chose Fahrenheit). Set by optris_sdk_video_export_config_init(), in the unit in force, and not read today: colorizing is the caller's, which is what OPTRIS_SDK_VIDEO_CONTENT_COLORIZED means.
temp_max_c
float temp_max_c
See temp_min_c.
pace_by_arrival
int32_t pace_by_arrival
Non-zero to time each frame by when it arrives rather than by how many came before.
Zero by default, which is right for an export: a converter feeds a file's frames as fast as it can read them and they belong frame_rate apart however quickly they were handed over.
Non-zero for a live take, where frames are passed through from a camera as they come. Without it the file's timeline is the frame count, so it declares itself at frame_rate however fast the frames really arrived: a camera delivering 9 pictures a second into a file that says 32 replays three and a half times too fast, and nothing about the file looks wrong -- the pictures are all there, in order.
Overridden per frame by optris_sdk_video_picture::has_timestamp, which is the right answer for exporting a recording and is neither of these two.
output_path
char output_path[OPTRIS_SDK_MAX_PATH]
Where to write. Required.