Open Broadcaster Software
Free, open source software for live streaming and recording
encoder_packet Struct Reference

Data Fields

uint8_tdata
 
size_t size
 
int64_t pts
 
int64_t dts
 
int32_t timebase_num
 
int32_t timebase_den
 
enum obs_encoder_type type
 
bool keyframe
 
int64_t dts_usec
 
int64_t sys_dts_usec
 
int priority
 
int drop_priority
 
size_t track_idx
 
obs_encoder_tencoder
 

Detailed Description

Encoder output packet

Field Documentation

uint8_t* encoder_packet::data

Packet data

int encoder_packet::drop_priority

Dropped packet priority

If this packet needs to be dropped, the next packet must be of this priority or higher to continue transmission.

int64_t encoder_packet::dts

Decode timestamp

int64_t encoder_packet::dts_usec
obs_encoder_t* encoder_packet::encoder

Encoder from which the track originated from

bool encoder_packet::keyframe

Is a keyframe

int encoder_packet::priority

Packet priority

This is generally use by video encoders to specify the priority of the packet.

int64_t encoder_packet::pts

Presentation timestamp

size_t encoder_packet::size

Packet size

int64_t encoder_packet::sys_dts_usec
int32_t encoder_packet::timebase_den

Timebase denominator

int32_t encoder_packet::timebase_num

Timebase numerator

size_t encoder_packet::track_idx

Audio track index (used with outputs)

enum obs_encoder_type encoder_packet::type

Encoder type


The documentation for this struct was generated from the following file: