FFmpeg
Data Fields
SegmentContext Struct Reference

Data Fields

const AVClassclass
 Class for private options. More...
 
char * timestamps_str
 
char * points_str
 
int use_timestamps
 
int current_point
 
int nb_points
 
int64_t last_pts
 
int64_t * points
 
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...
 
const AVOutputFormatoformat
 
AVFormatContextavf
 
char * format
 format 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 is_nullctx
 whether avf->pb is a nullctx 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...
 
int64_t time
 segment duration More...
 
int64_t min_seg_duration
 minimum 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
 
int64_t reference_stream_first_pts
 initial timestamp, expressed in microseconds More...
 
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 37 of file f_segment.c.

Field Documentation

◆ class

const AVClass * SegmentContext::class

Class for private options.

Definition at line 38 of file f_segment.c.

◆ timestamps_str

char* SegmentContext::timestamps_str

Definition at line 40 of file f_segment.c.

◆ points_str

char* SegmentContext::points_str

Definition at line 41 of file f_segment.c.

◆ use_timestamps

int SegmentContext::use_timestamps

Definition at line 42 of file f_segment.c.

◆ current_point

int SegmentContext::current_point

Definition at line 44 of file f_segment.c.

◆ nb_points

int SegmentContext::nb_points

Definition at line 45 of file f_segment.c.

◆ last_pts

int64_t SegmentContext::last_pts

Definition at line 46 of file f_segment.c.

◆ points

int64_t* SegmentContext::points

Definition at line 48 of file f_segment.c.

◆ segment_idx

int SegmentContext::segment_idx

index of the segment file to write, starting from 0

Definition at line 72 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 73 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 74 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 75 of file segment.c.

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

◆ oformat

const AVOutputFormat* SegmentContext::oformat

Definition at line 76 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 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(), 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(), 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().

◆ is_nullctx

int SegmentContext::is_nullctx

whether avf->pb is a nullctx

Definition at line 84 of file segment.c.

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

◆ use_clocktime

int SegmentContext::use_clocktime

flag to cut segments at regular clock time

Definition at line 85 of file segment.c.

Referenced by seg_init(), and seg_write_packet().

◆ clocktime_offset

int64_t SegmentContext::clocktime_offset

Definition at line 86 of file segment.c.

Referenced by seg_init(), and seg_write_packet().

◆ clocktime_wrap_duration

int64_t SegmentContext::clocktime_wrap_duration

Definition at line 87 of file segment.c.

◆ last_val

int64_t SegmentContext::last_val

remember last time for wrap around detection

Definition at line 88 of file segment.c.

Referenced by seg_write_packet().

◆ cut_pending

int SegmentContext::cut_pending

Definition at line 89 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 90 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 92 of file segment.c.

Referenced by set_segment_filename().

◆ list_type

int SegmentContext::list_type

set the list type

Definition at line 93 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 94 of file segment.c.

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

◆ time

int64_t SegmentContext::time

segment duration

Definition at line 95 of file segment.c.

Referenced by seg_init(), and seg_write_packet().

◆ min_seg_duration

int64_t SegmentContext::min_seg_duration

minimum segment duration

Definition at line 96 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 97 of file segment.c.

Referenced by set_segment_filename().

◆ increment_tc

int SegmentContext::increment_tc

flag to increment timecode if found

Definition at line 98 of file segment.c.

Referenced by segment_end().

◆ times_str

char* SegmentContext::times_str

segment times specification string

Definition at line 100 of file segment.c.

Referenced by seg_init().

◆ times

int64_t* SegmentContext::times

list of segment interval specification

Definition at line 101 of file segment.c.

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

◆ nb_times

int SegmentContext::nb_times

number of elments in the times array

Definition at line 102 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 104 of file segment.c.

Referenced by seg_init().

◆ frames

int* SegmentContext::frames

list of frame number specification

Definition at line 105 of file segment.c.

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

◆ nb_frames

int SegmentContext::nb_frames

number of elments in the frames array

Definition at line 106 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 107 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 108 of file segment.c.

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

◆ time_delta

int64_t SegmentContext::time_delta

Definition at line 110 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 111 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 112 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 113 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 115 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 116 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 117 of file segment.c.

Referenced by select_reference_stream().

◆ reference_stream_index

int SegmentContext::reference_stream_index

Definition at line 118 of file segment.c.

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

◆ reference_stream_first_pts

int64_t SegmentContext::reference_stream_first_pts

initial timestamp, expressed in microseconds

Definition at line 119 of file segment.c.

Referenced by seg_init(), and seg_write_packet().

◆ break_non_keyframes

int SegmentContext::break_non_keyframes

Definition at line 120 of file segment.c.

Referenced by seg_write_packet().

◆ write_empty

int SegmentContext::write_empty

Definition at line 121 of file segment.c.

Referenced by seg_write_packet().

◆ use_rename

int SegmentContext::use_rename

Definition at line 123 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 124 of file segment.c.

Referenced by segment_end(), and segment_list_open().

◆ cur_entry

SegmentListEntry SegmentContext::cur_entry

Definition at line 126 of file segment.c.

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

◆ segment_list_entries

SegmentListEntry* SegmentContext::segment_list_entries

Definition at line 127 of file segment.c.

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

◆ segment_list_entries_end

SegmentListEntry* SegmentContext::segment_list_entries_end

Definition at line 128 of file segment.c.

Referenced by segment_end().


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