Lines Matching defs:stream

261     [SECTION_ID_PROGRAM_STREAM] =             { SECTION_ID_PROGRAM_STREAM, "stream", 0, { SECTION_ID_PROGRAM_STREAM_DISPOSITION, SECTION_ID_PROGRAM_STREAM_TAGS, -1 }, .unique_name = "program_stream" },
270 [SECTION_ID_STREAM] = { SECTION_ID_STREAM, "stream", 0, { SECTION_ID_STREAM_DISPOSITION, SECTION_ID_STREAM_TAGS, SECTION_ID_STREAM_SIDE_DATA_LIST, -1 } },
2527 static void show_subtitle(WriterContext *w, AVSubtitle *sub, AVStream *stream,
2550 static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
2562 s = av_get_media_type_string(stream->codecpar->codec_type);
2565 print_int("stream_index", stream->index);
2568 print_time("pts_time", frame->pts, &stream->time_base);
2570 print_time("pkt_dts_time", frame->pkt_dts, &stream->time_base);
2572 print_time("best_effort_timestamp_time", frame->best_effort_timestamp, &stream->time_base);
2574 print_duration_time("pkt_duration_time", frame->pkt_duration, &stream->time_base);
2580 switch (stream->codecpar->codec_type) {
2589 sar = av_guess_sample_aspect_ratio(fmt_ctx, stream, frame);
2650 av_timecode_make_smpte_tc_string2(tcbuf, stream->avg_frame_rate, tc[j], 0, 0);
2924 AVStream *stream = ist->st;
2939 print_int("index", stream->index);
2941 par = stream->codecpar;
2986 sar = av_guess_sample_aspect_ratio(fmt_ctx, stream, NULL);
3067 if (fmt_ctx->iformat->flags & AVFMT_SHOW_IDS) print_fmt ("id", "0x%x", stream->id);
3069 print_q("r_frame_rate", stream->r_frame_rate, '/');
3070 print_q("avg_frame_rate", stream->avg_frame_rate, '/');
3071 print_q("time_base", stream->time_base, '/');
3072 print_ts ("start_pts", stream->start_time);
3073 print_time("start_time", stream->start_time, &stream->time_base);
3074 print_ts ("duration_ts", stream->duration);
3075 print_time("duration", stream->duration, &stream->time_base);
3084 if (stream->nb_frames) print_fmt ("nb_frames", "%"PRId64, stream->nb_frames);
3102 print_int(name, !!(stream->disposition & AV_DISPOSITION_##flagname)); \
3128 ret = show_tags(w, stream->metadata, in_program ? SECTION_ID_PROGRAM_STREAM_TAGS : SECTION_ID_STREAM_TAGS);
3130 if (stream->nb_side_data) {
3131 print_pkt_side_data(w, stream->codecpar, stream->side_data, stream->nb_side_data,
3335 /* bind a decoder to each input stream */
3338 AVStream *stream = fmt_ctx->streams[i];
3341 ist->st = stream;
3343 if (stream->codecpar->codec_id == AV_CODEC_ID_PROBE) {
3345 "Failed to probe codec for input stream %d\n",
3346 stream->index);
3350 codec = avcodec_find_decoder(stream->codecpar->codec_id);
3353 "Unsupported codec with id %d for input stream %d\n",
3354 stream->codecpar->codec_id, stream->index);
3358 AVDictionary *opts = filter_codec_opts(codec_opts, stream->codecpar->codec_id,
3359 fmt_ctx, stream, codec);
3365 err = avcodec_parameters_to_context(ist->dec_ctx, stream->codecpar);
3376 ist->dec_ctx->pkt_timebase = stream->time_base;
3379 av_log(NULL, AV_LOG_WARNING, "Could not open codec for input stream %d\n",
3380 stream->index);
3385 av_log(NULL, AV_LOG_ERROR, "Option %s for input stream %d not found\n",
3386 t->key, stream->index);
3400 /* close decoder for each stream */
3987 { "count_frames", OPT_BOOL, { &do_count_frames }, "count the number of frames per stream" },
3988 { "count_packets", OPT_BOOL, { &do_count_packets }, "count the number of packets per stream" },