Lines Matching defs:streams

159     OutputStream *streams;
310 OutputStream *os = &c->streams[i];
312 c->segment_type_option, s->streams[i]->codecpar->codec_id);
329 av_log(s, AV_LOG_WARNING, "No mp4 streams, disabling HLS manifest generation\n");
511 int timescale = os->ctx->streams[0]->time_base.den;
618 if (!c->streams)
621 OutputStream *os = &c->streams[i];
639 av_freep(&c->streams);
653 int timescale = c->use_timeline ? os->ctx->streams[0]->time_base.den : AV_TIME_BASE;
827 AVStream *st = s->streams[i];
828 OutputStream *os = &c->streams[i];
844 i, os->format_name, os->codec_str, bandwidth_str, s->streams[i]->codecpar->width, s->streams[i]->codecpar->height);
862 i, os->format_name, os->codec_str, bandwidth_str, s->streams[i]->codecpar->sample_rate);
864 s->streams[i]->codecpar->ch_layout.nb_channels);
911 OutputStream *os = &c->streams[i];
913 if (as->media_type != s->streams[i]->codecpar->codec_type) {
941 if ((ret = add_adaptation_set(s, &as, s->streams[i]->codecpar->codec_type)) < 0)
945 c->streams[i].as_idx = c->nb_as;
951 // syntax id=0,streams=0,1,2 id=1,streams=3,4 and so on
952 // option id=0,descriptor=descriptor_str,streams=0,1,2 and so on
953 // option id=0,seg_duration=2.5,frag_duration=0.5,streams=0,1,2
954 // id=1,trick_id=0,seg_duration=10,frag_type=none,streams=3 and so on
1057 } else if ((state != new_set) && av_strstart(p, "streams=", &p)) { //descriptor and durations are optional
1067 // if value is "a" or "v", map all streams of that type
1070 av_log(s, AV_LOG_DEBUG, "Map all streams of type %s\n", idx_str);
1073 if (s->streams[i]->codecpar->codec_type != type)
1076 as->media_type = s->streams[i]->codecpar->codec_type;
1090 as->media_type = s->streams[i]->codecpar->codec_type;
1107 // check for unassigned streams
1109 OutputStream *os = &c->streams[i];
1221 if (c->window_size && s->nb_streams > 0 && c->streams[0].nb_segments > 0 && !c->use_template) {
1222 OutputStream *os = &c->streams[0];
1224 int64_t start_time = av_rescale_q(os->segments[start_index]->time, s->streams[0]->time_base, AV_TIME_BASE_Q);
1255 c->streams[0].segment_index % c->master_publish_rate))
1275 // treat audio streams as alternative renditions for video streams
1283 AVStream *st = s->streams[i];
1284 OutputStream *os = &c->streams[i];
1305 AVStream *st = s->streams[i];
1306 OutputStream *os = &c->streams[i];
1333 // treat audio streams as separate renditions
1338 AVStream *st = s->streams[i];
1339 OutputStream *os = &c->streams[i];
1478 c->streams = av_mallocz(sizeof(*c->streams) * s->nb_streams);
1479 if (!c->streams)
1489 OutputStream *os = &c->streams[i];
1496 os->bit_rate = s->streams[i]->codecpar->bit_rate;
1506 dict_copy_entry(&as->metadata, s->streams[i]->metadata, "language");
1507 dict_copy_entry(&as->metadata, s->streams[i]->metadata, "role");
1536 av_log(s, AV_LOG_WARNING, "One or more streams in WebM output format. Streaming option will be ignored\n");
1557 avcodec_parameters_copy(st->codecpar, s->streams[i]->codecpar);
1558 st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio;
1559 st->time_base = s->streams[i]->time_base;
1560 st->avg_frame_rate = s->streams[i]->avg_frame_rate;
1669 s->streams[i]->time_base = st->time_base;
1675 AVRational avg_frame_rate = s->streams[i]->avg_frame_rate;
1716 if (s->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO)
1738 OutputStream *os = &c->streams[i];
1828 AVCodecParameters *par = os->ctx->streams[0]->codecpar;
1921 cur_flush_segment_index = c->streams[stream].segment_index;
1925 c->streams[stream].last_pts != AV_NOPTS_VALUE &&
1926 c->streams[stream].first_pts != AV_NOPTS_VALUE) {
1927 int64_t pts_diff = av_rescale_q(c->streams[stream].last_pts -
1928 c->streams[stream].first_pts,
1929 s->streams[stream]->time_base,
1931 next_exp_index = (pts_diff / c->streams[stream].seg_duration) + 1;
1936 OutputStream *os = &c->streams[i];
1937 AVStream *st = s->streams[i];
1945 // Flush all audio streams as well, in sync with video keyframes,
1946 // but not the other video streams.
1948 if (s->streams[stream]->codecpar->codec_type != AVMEDIA_TYPE_VIDEO &&
1949 s->streams[i]->codecpar->codec_type != AVMEDIA_TYPE_VIDEO)
1951 if (s->streams[i]->codecpar->codec_type != AVMEDIA_TYPE_AUDIO)
1953 // Make sure we don't flush audio streams multiple times, when
1954 // all video streams are flushed one at a time.
1999 OutputStream *os = &c->streams[i];
2008 OutputStream *os = &c->streams[i];
2047 OutputStream *os = &c->streams[pkt->stream_index];
2074 AVStream *st = s->streams[pkt->stream_index];
2075 OutputStream *os = &c->streams[pkt->stream_index];
2303 OutputStream *os = &c->streams[0];
2308 s->streams[0]->time_base,
2311 s->streams[0]->time_base,
2318 OutputStream *os = &c->streams[i];
2343 OutputStream *os = &c->streams[st->index];
2346 AVStream *const ost = oc->streams[0];
2363 { "adaptation_sets", "Adaptation sets. Syntax: id=0,streams=0,1,2 id=1,streams=3,4 and so on", OFFSET(adaptation_sets), AV_OPT_TYPE_STRING, { 0 }, 0, 0, AV_OPT_FLAG_ENCODING_PARAM },