FFmpeg  4.0
Data Fields
SegmentContext Struct Reference

Data Fields

const AVClassclass
 Class for private options. More...
 
int segment_idx
 index of the segment file to write, starting from 0 More...
 
int segment_idx_wrap
 number after which the index wraps More...
 
int segment_idx_wrap_nb
 number of time the index has wraped More...
 
int segment_count
 number of segment files already written More...
 
AVOutputFormatoformat
 
AVFormatContextavf
 
char * format
 format to use for output segment files More...
 
char * format_options_str
 format options to use for output segment files More...
 
AVDictionaryformat_options
 
char * list
 filename for the segment list file More...
 
int list_flags
 flags affecting list generation More...
 
int list_size
 number of entries for the segment list file More...
 
int use_clocktime
 flag to cut segments at regular clock time More...
 
int64_t clocktime_offset
 
int64_t clocktime_wrap_duration
 
int64_t last_val
 remember last time for wrap around detection More...
 
int cut_pending
 
int header_written
 whether we've already called avformat_write_header More...
 
char * entry_prefix
 prefix to add to list entry filenames More...
 
int list_type
 set the list type More...
 
AVIOContextlist_pb
 list file put-byte context More...
 
char * time_str
 segment duration specification string More...
 
int64_t time
 segment duration More...
 
int use_strftime
 flag to expand filename with strftime More...
 
int increment_tc
 flag to increment timecode if found More...
 
char * times_str
 segment times specification string More...
 
int64_t * times
 list of segment interval specification More...
 
int nb_times
 number of elments in the times array More...
 
char * frames_str
 segment frame numbers specification string More...
 
intframes
 list of frame number specification More...
 
int nb_frames
 number of elments in the frames array More...
 
int frame_count
 total number of reference frames More...
 
int segment_frame_count
 number of reference frames in the segment More...
 
int64_t time_delta
 
int individual_header_trailer
 Set by a private option. More...
 
int write_header_trailer
 Set by a private option. More...
 
char * header_filename
 filename to write the output header to More...
 
int reset_timestamps
 reset timestamps at the beginning of each segment More...
 
int64_t initial_offset
 initial timestamps offset, expressed in microseconds More...
 
char * reference_stream_specifier
 reference stream specifier More...
 
int reference_stream_index
 
int break_non_keyframes
 
int write_empty
 
int use_rename
 
char temp_list_filename [1024]
 
SegmentListEntry cur_entry
 
SegmentListEntrysegment_list_entries
 
SegmentListEntrysegment_list_entries_end
 

Detailed Description

Definition at line 69 of file segment.c.

Field Documentation

◆ class

const AVClass* SegmentContext::class

Class for private options.

Definition at line 70 of file segment.c.

◆ segment_idx

int SegmentContext::segment_idx

index of the segment file to write, starting from 0

Definition at line 71 of file segment.c.

Referenced by seg_write_packet(), segment_start(), and set_segment_filename().

◆ segment_idx_wrap

int SegmentContext::segment_idx_wrap

number after which the index wraps

Definition at line 72 of file segment.c.

Referenced by seg_write_packet(), segment_start(), and set_segment_filename().

◆ segment_idx_wrap_nb

int SegmentContext::segment_idx_wrap_nb

number of time the index has wraped

Definition at line 73 of file segment.c.

Referenced by seg_write_packet(), and segment_start().

◆ segment_count

int SegmentContext::segment_count

number of segment files already written

Definition at line 74 of file segment.c.

Referenced by seg_init(), seg_write_packet(), and segment_end().

◆ oformat

AVOutputFormat* SegmentContext::oformat

Definition at line 75 of file segment.c.

Referenced by seg_init(), and segment_mux_init().

◆ avf

AVFormatContext* SegmentContext::avf

◆ format

char* SegmentContext::format

format to use for output segment files

Definition at line 77 of file segment.c.

Referenced by seg_init().

◆ format_options_str

char* SegmentContext::format_options_str

format options to use for output segment files

Definition at line 78 of file segment.c.

Referenced by seg_init().

◆ format_options

AVDictionary* SegmentContext::format_options

Definition at line 79 of file segment.c.

Referenced by seg_init(), seg_write_trailer(), and segment_start().

◆ list

char* SegmentContext::list

filename for the segment list file

Definition at line 80 of file segment.c.

Referenced by seg_init(), seg_write_trailer(), segment_end(), and segment_list_open().

◆ list_flags

int SegmentContext::list_flags

flags affecting list generation

Definition at line 81 of file segment.c.

Referenced by segment_list_open().

◆ list_size

int SegmentContext::list_size

number of entries for the segment list file

Definition at line 82 of file segment.c.

Referenced by seg_init(), and segment_end().

◆ use_clocktime

int SegmentContext::use_clocktime

flag to cut segments at regular clock time

Definition at line 84 of file segment.c.

Referenced by seg_init(), and seg_write_packet().

◆ clocktime_offset

int64_t SegmentContext::clocktime_offset

Definition at line 85 of file segment.c.

Referenced by seg_init(), and seg_write_packet().

◆ clocktime_wrap_duration

int64_t SegmentContext::clocktime_wrap_duration

Definition at line 86 of file segment.c.

◆ last_val

int64_t SegmentContext::last_val

remember last time for wrap around detection

Definition at line 87 of file segment.c.

Referenced by seg_write_packet().

◆ cut_pending

int SegmentContext::cut_pending

Definition at line 88 of file segment.c.

Referenced by seg_write_packet().

◆ header_written

int SegmentContext::header_written

whether we've already called avformat_write_header

Definition at line 89 of file segment.c.

Referenced by seg_init(), and seg_write_header().

◆ entry_prefix

char* SegmentContext::entry_prefix

prefix to add to list entry filenames

Definition at line 91 of file segment.c.

Referenced by set_segment_filename().

◆ list_type

int SegmentContext::list_type

set the list type

Definition at line 92 of file segment.c.

Referenced by seg_init(), segment_end(), and segment_list_open().

◆ list_pb

AVIOContext* SegmentContext::list_pb

list file put-byte context

Definition at line 93 of file segment.c.

Referenced by seg_free(), seg_write_trailer(), segment_end(), and segment_list_open().

◆ time_str

char* SegmentContext::time_str

segment duration specification string

Definition at line 94 of file segment.c.

Referenced by seg_init().

◆ time

int64_t SegmentContext::time

segment duration

Definition at line 95 of file segment.c.

Referenced by seg_init(), and seg_write_packet().

◆ use_strftime

int SegmentContext::use_strftime

flag to expand filename with strftime

Definition at line 96 of file segment.c.

Referenced by set_segment_filename().

◆ increment_tc

int SegmentContext::increment_tc

flag to increment timecode if found

Definition at line 97 of file segment.c.

Referenced by segment_end().

◆ times_str

char* SegmentContext::times_str

segment times specification string

Definition at line 99 of file segment.c.

Referenced by seg_init().

◆ times

int64_t* SegmentContext::times

list of segment interval specification

Definition at line 100 of file segment.c.

Referenced by seg_init(), seg_write_packet(), and seg_write_trailer().

◆ nb_times

int SegmentContext::nb_times

number of elments in the times array

Definition at line 101 of file segment.c.

Referenced by seg_init(), and seg_write_packet().

◆ frames_str

char* SegmentContext::frames_str

segment frame numbers specification string

Definition at line 103 of file segment.c.

Referenced by seg_init().

◆ frames

int* SegmentContext::frames

list of frame number specification

Definition at line 104 of file segment.c.

Referenced by seg_init(), seg_write_packet(), and seg_write_trailer().

◆ nb_frames

int SegmentContext::nb_frames

number of elments in the frames array

Definition at line 105 of file segment.c.

Referenced by seg_init(), and seg_write_packet().

◆ frame_count

int SegmentContext::frame_count

total number of reference frames

Definition at line 106 of file segment.c.

Referenced by seg_write_packet().

◆ segment_frame_count

int SegmentContext::segment_frame_count

number of reference frames in the segment

Definition at line 107 of file segment.c.

Referenced by seg_init(), seg_write_packet(), and segment_start().

◆ time_delta

int64_t SegmentContext::time_delta

Definition at line 109 of file segment.c.

Referenced by seg_write_packet().

◆ individual_header_trailer

int SegmentContext::individual_header_trailer

Set by a private option.

Definition at line 110 of file segment.c.

Referenced by seg_init(), seg_write_header(), seg_write_packet(), and segment_start().

◆ write_header_trailer

int SegmentContext::write_header_trailer

Set by a private option.

Definition at line 111 of file segment.c.

Referenced by seg_init(), seg_write_header(), and seg_write_trailer().

◆ header_filename

char* SegmentContext::header_filename

filename to write the output header to

Definition at line 112 of file segment.c.

Referenced by seg_init(), and seg_write_header().

◆ reset_timestamps

int SegmentContext::reset_timestamps

reset timestamps at the beginning of each segment

Definition at line 114 of file segment.c.

Referenced by seg_write_packet().

◆ initial_offset

int64_t SegmentContext::initial_offset

initial timestamps offset, expressed in microseconds

Definition at line 115 of file segment.c.

Referenced by seg_init(), and seg_write_packet().

◆ reference_stream_specifier

char* SegmentContext::reference_stream_specifier

reference stream specifier

Definition at line 116 of file segment.c.

Referenced by select_reference_stream().

◆ reference_stream_index

int SegmentContext::reference_stream_index

Definition at line 117 of file segment.c.

Referenced by seg_init(), seg_write_packet(), and select_reference_stream().

◆ break_non_keyframes

int SegmentContext::break_non_keyframes

Definition at line 118 of file segment.c.

Referenced by seg_write_packet().

◆ write_empty

int SegmentContext::write_empty

Definition at line 119 of file segment.c.

Referenced by seg_write_packet().

◆ use_rename

int SegmentContext::use_rename

Definition at line 121 of file segment.c.

Referenced by seg_init(), segment_end(), and segment_list_open().

◆ temp_list_filename

char SegmentContext::temp_list_filename[1024]

Definition at line 122 of file segment.c.

Referenced by segment_end(), and segment_list_open().

◆ cur_entry

SegmentListEntry SegmentContext::cur_entry

Definition at line 124 of file segment.c.

Referenced by seg_write_packet(), seg_write_trailer(), segment_end(), and set_segment_filename().

◆ segment_list_entries

SegmentListEntry* SegmentContext::segment_list_entries

Definition at line 125 of file segment.c.

Referenced by seg_write_trailer(), segment_end(), and segment_list_open().

◆ segment_list_entries_end

SegmentListEntry* SegmentContext::segment_list_entries_end

Definition at line 126 of file segment.c.

Referenced by segment_end().


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