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

Data Fields

uint8_t * data
 
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

◆ data

uint8_t* encoder_packet::data

Packet data

◆ drop_priority

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.

◆ dts

int64_t encoder_packet::dts

Decode timestamp

◆ dts_usec

int64_t encoder_packet::dts_usec

◆ encoder

obs_encoder_t* encoder_packet::encoder

Encoder from which the track originated from

◆ keyframe

bool encoder_packet::keyframe

Is a keyframe

◆ priority

int encoder_packet::priority

Packet priority

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

◆ pts

int64_t encoder_packet::pts

Presentation timestamp

◆ size

size_t encoder_packet::size

Packet size

◆ sys_dts_usec

int64_t encoder_packet::sys_dts_usec

◆ timebase_den

int32_t encoder_packet::timebase_den

Timebase denominator

◆ timebase_num

int32_t encoder_packet::timebase_num

Timebase numerator

◆ track_idx

size_t encoder_packet::track_idx

Audio track index (used with outputs)

◆ type

enum obs_encoder_type encoder_packet::type

Encoder type


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