Lines Matching defs:segment
58 * An apple http stream consists of a playlist with media segment files,
75 struct segment {
83 /* associated Media Initialization Section, treated as a segment */
84 struct segment *init_section;
126 struct segment **segments;
136 struct segment *cur_init_section;
146 * (and possibly other ID3 tags) in the beginning of each segment) */
173 struct segment **init_sections;
232 static void free_segment_dynarray(struct segment **segments, int n_segments)
415 static struct segment *new_init_section(struct playlist *pls,
419 struct segment *sec;
514 /* TODO: handle subtitles (each segment has to parsed separately) */
743 struct segment *cur_init_section = NULL;
745 struct segment **prev_segments = NULL;
934 struct segment *seg;
938 seg = av_malloc(sizeof(struct segment));
985 av_log(c->ctx, AV_LOG_WARNING, "Cannot get correct #EXTINF value of segment %s,"
1042 static struct segment *current_segment(struct playlist *pls)
1050 static struct segment *next_segment(struct playlist *pls)
1058 static int read_from_url(struct playlist *pls, struct segment *seg,
1063 /* limit read if the segment was only a part of a file */
1179 * demuxer on all segment switches */
1183 struct segment *seg = current_segment(pls);
1275 static int open_input(HLSContext *c, struct playlist *pls, struct segment *seg, AVIOContext **in)
1346 av_log(pls->parent, AV_LOG_ERROR, "Unable to seek to offset %"PRId64" of HLS segment '%s'\n", seg->url_offset, seg->url);
1358 static int update_init_section(struct playlist *pls, struct segment *seg)
1475 struct segment *seg;
1485 * segment. */
1563 av_log(v->parent, AV_LOG_WARNING, "Failed to open segment %"PRId64" of playlist %d\n",
1588 av_log(v->parent, AV_LOG_WARNING, "Failed to open segment %"PRId64" of playlist %d\n",
1597 /* Push init section out first before first actual segment */
1609 * to convey timestamps using them in the beginning of each segment. */
1683 * if not: returns 0 and sets seq_no to closest segment */
1724 * playlist) and this is a complete file, find the matching segment
1732 if (!c->first_packet && /* we are doing a segment selection during playback */
1738 * require us to download a segment to inspect its timestamps. */
1785 /* Otherwise just start on the first segment. */
1967 av_log(s, AV_LOG_WARNING, "Empty segment [%s]\n", c->variants[i]->playlists[0]->url);
2021 struct segment *seg = NULL;
2034 * If this is a live stream and this playlist looks like it is one segment
2110 av_log(s, AV_LOG_ERROR, "Error when loading first segment '%s'\n", url);
2225 av_log(s, AV_LOG_INFO, "Now receiving playlist %d, segment %"PRId64"\n", i, pls->cur_seq_no);
2297 struct segment *seg = NULL;
2470 /* Seeking to start of segment ensures we seek to a keyframe located
2475 /* set segment now so we do not need to search again below */
2500 /* set closest segment seq_no for playlists not handled above */
2532 {"live_start_index", "segment index to start live streams at (negative values are from the end)",
2550 {"seg_format_options", "Set options for segment demuxer",