AVStream Struct Reference

Stream structure. More...

#include <avformat.h>


Data Fields

int index
 stream index in AVFormatContext
int id
 format specific stream id
AVCodecContextcodec
 codec context
AVRational r_frame_rate
 Real base frame rate of the stream.
void * priv_data
int64_t first_dts
struct AVFrac pts
 encoding: PTS generation when outputing stream
AVRational time_base
 This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.
int pts_wrap_bits
 number of bits in pts (used for wrapping control)
int stream_copy
 if set, just copy stream
enum AVDiscard discard
 selects which packets can be discarded at will and do not need to be demuxed
float quality
 quality, as it has been removed from AVCodecContext and put in AVVideoFrame MN: dunno if that is the right place for it
int64_t start_time
 Decoding: pts of the first frame of the stream, in stream time base.
int64_t duration
 Decoding: duration of the stream, in stream time base.
char language [4]
enum AVStreamParseType need_parsing
 ISO 639 3-letter language code (empty string if undefined).
struct AVCodecParserContextparser
int64_t cur_dts
int last_IP_duration
int64_t last_IP_pts
AVIndexEntryindex_entries
 only used if the format does not support seeking natively
int nb_index_entries
unsigned int index_entries_allocated_size
int64_t nb_frames
 number of frames in this stream if known or 0
int64_t unused [4+1]
char * filename
 source filename of the stream
int64_t pts_buffer [MAX_REORDER_DELAY+1]


Detailed Description

Stream structure.

New fields can be added to the end with minor version bumps. Removal, reordering and changes to existing fields require a major version bump. sizeof(AVStream) must not be used outside libav*.

Definition at line 280 of file avformat.h.


Field Documentation

codec context

Definition at line 283 of file avformat.h.

Referenced by aac_read_header(), ac3_read_header(), add_audio_stream(), add_av_stream(), add_av_stream1(), add_codec(), add_video_stream(), adts_write_header(), aiff_read_header(), aiff_read_packet(), alloc_picture(), amf_parse_object(), amr_read_header(), amr_read_packet(), apc_read_header(), ape_read_header(), asf_read_close(), asf_read_header(), asf_read_packet(), asf_write_header1(), asf_write_packet(), au_read_header(), audio_decode_frame(), audio_read_header(), audio_write_header(), av_close_input_stream(), av_encode(), av_estimate_timings_from_bit_rate(), av_exit(), av_find_default_stream_index(), av_find_stream_info(), av_interleaved_write_frame(), av_new_stream(), av_read_frame_internal(), av_read_packet(), av_write_header(), avi_read_close(), avi_read_header(), avi_read_packet(), avisynth_read_header(), avs_read_packet(), build_feed_streams(), build_file_streams(), build_frame_code(), cdata_read_header(), check_audio_video_sub_inputs(), cin_read_header(), close_audio(), close_connection(), close_video(), compute_bandwidth(), compute_frame_duration(), compute_pkt_fields(), compute_pkt_fields2(), compute_stats(), create_audio_stream(), create_stream(), daud_header(), dc1394_read_common(), decode_stream_header(), decode_thread(), do_audio_out(), do_subtitle_out(), do_video_out(), do_video_stats(), dts_read_header(), dump_stream_format(), dv_assemble_frame(), dv_extract_audio_info(), dv_extract_video_info(), dv_frame_offset(), dv_init_demux(), dv_init_mux(), dv_offset_reset(), dv_produce_packet(), dxa_read_header(), ea_read_header(), extract_mpeg4_header(), ff_rm_parse_packet(), ff_rm_read_mdpr_codecdata(), ff_rm_retrieve_cache(), ff_rtp_send_aac(), ffm_read_header(), film_read_header(), finalize_packet(), find_stream_in_feed(), flac_header(), flac_read_header(), flic_read_header(), flv_read_metabody(), flv_read_packet(), flv_set_audio_codec(), flv_set_video_codec(), flv_write_header(), flv_write_packet(), fourxm_read_header(), get_audio_clock(), get_codec_data(), get_sindex(), get_watermark_picture(), gif_read_header(), gif_write_header(), gif_write_packet(), grab_read_header(), gxf_interleave_packet(), gxf_write_header(), gxf_write_trailer(), gxf_write_umf_track_description(), http_prepare_data(), http_receive_data(), idcin_read_header(), img_read_header(), img_read_packet(), ipmovie_read_header(), lmlm4_read_header(), main(), matroska_parse_attachments(), matroska_parse_block(), matroska_read_header(), mkv_write_header(), mkv_write_packet(), mkv_write_tracks(), mkv_write_trailer(), mm_read_header(), mmf_read_header(), modify_current_stream(), mov_build_index(), mov_read_close(), mov_read_enda(), mov_read_esds(), mov_read_extradata(), mov_read_glbl(), mov_read_hdlr(), mov_read_header(), mov_read_smi(), mov_read_stsd(), mov_read_trak(), mov_read_wave(), mov_seek_stream(), mov_write_header(), mov_write_uuidprof_tag(), mp3_read_header(), mpc8_read_header(), mpc_read_header(), mpeg_mux_init(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_read_header(), mpegts_write_header(), mpegts_write_packet(), mpegts_write_pes(), mpegts_write_pmt(), mtv_read_header(), mxf_get_d10_aes3_packet(), mxf_parse_structural_metadata(), new_audio_stream(), new_pes_av_stream(), new_subtitle_stream(), new_video_stream(), nsv_parse_NSVs_header(), nsv_read_chunk(), nsv_read_close(), nut_read_header(), nuv_header(), ogg_write_header(), ogg_write_packet(), ogg_write_trailer(), ogm_dshow_header(), ogm_header(), old_flac_header(), open_audio(), open_input_stream(), open_parser(), open_video(), opt_input_file(), opt_target(), output_packet(), output_picture2(), parse_h264_sdp_line(), pcm_read_seek(), PCMDEF(), pmt_cb(), pre_process_video_frame(), prepare_sdp_description(), print_report(), pva_read_header(), queue_picture(), raw_read_header(), raw_read_packet(), read_ffserver_streams(), read_header(), read_packet(), rm_ac3_swap_bytes(), rm_read_audio_stream_info(), rm_read_dts(), rm_read_header(), rm_read_packet(), rm_write_header(), rm_write_packet(), roq_read_header(), rtp_new_av_stream(), rtp_parse_open(), rtp_parse_packet(), rtp_write_header(), rtp_write_packet(), sdp_parse_fmtp(), sdp_parse_fmtp_config_h264(), sdp_parse_line(), seq_read_header(), set_codec_from_probe_data(), shorten_read_header(), siff_parse_vbv1(), smacker_read_header(), sol_read_header(), str_read_header(), stream_component_close(), stream_component_open(), stream_cycle_channel(), stream_index_from_inputs(), subtitle_thread(), swf_read_packet(), synchronize_audio(), theora_header(), thp_read_header(), try_decode_frame(), tta_read_header(), txd_read_header(), update_sample_display(), v4l2_read_header(), v4l2_read_packet(), vc1t_read_header(), vid_read_header(), vid_read_packet(), video_audio_display(), video_image_display(), video_open(), video_read_header(), video_thread(), vmd_read_header(), voc_get_packet(), voc_read_header(), voc_write_header(), voc_write_packet(), vorbis_header(), wav_read_header(), wav_read_packet(), wav_read_seek(), wc3_read_header(), write_audio_frame(), write_globalinfo(), write_header(), write_headers(), write_video_frame(), wsaud_read_header(), wsvqa_read_header(), wv_read_header(), x11grab_read_header(), yuv4_generate_header(), yuv4_read_header(), yuv4_read_packet(), yuv4_write_header(), and yuv4_write_packet().

Real base frame rate of the stream.

This is the lowest frame rate with which all timestamps can be represented accurately (it is the least common multiple of all frame rates in the stream), Note, this value is just a guess! For example if the timebase is 1/90000 and all frames have either approximately 3600 or 1800 timer ticks then r_frame_rate will be 50/1.

Definition at line 292 of file avformat.h.

Referenced by av_find_stream_info(), avisynth_read_header(), dump_stream_format(), flv_write_header(), nuv_header(), and opt_input_file().

struct AVFrac AVStream::pts [read]

encoding: PTS generation when outputing stream

Definition at line 298 of file avformat.h.

Referenced by av_encode(), av_write_header(), compute_pkt_fields2(), main(), output_packet(), and print_report().

number of bits in pts (used for wrapping control)

Definition at line 307 of file avformat.h.

Referenced by av_set_pts_info(), compute_pkt_fields(), and truncate_ts().

if set, just copy stream

Definition at line 309 of file avformat.h.

Referenced by av_encode(), new_audio_stream(), new_subtitle_stream(), new_video_stream(), and print_report().

quality, as it has been removed from AVCodecContext and put in AVVideoFrame MN: dunno if that is the right place for it

Definition at line 314 of file avformat.h.

Referenced by do_video_out(), ffm_read_header(), new_audio_stream(), new_video_stream(), and output_packet().

Decoding: pts of the first frame of the stream, in stream time base.

Only set this if you are absolutely 100% sure that the value you set it to really is the pts of the first frame. This may be undefined (AV_NOPTS_VALUE).

Note:
The ASF header does NOT contain a correct start_time the ASF demuxer must NOT set this.

Definition at line 323 of file avformat.h.

Referenced by aiff_read_header(), av_estimate_timings(), av_estimate_timings_from_pts(), av_new_stream(), av_update_stream_timings(), avi_read_header(), avisynth_read_header(), dv_extract_audio_info(), dv_init_demux(), fill_all_stream_timings(), gxf_header(), gxf_seek(), http_prepare_data(), img_read_header(), matroska_read_header(), mov_read_tkhd(), mov_read_trak(), mp3_read_header(), mpegts_read_header(), mxf_parse_structural_metadata(), nsv_parse_NSVs_header(), nut_read_header(), ogg_get_length(), read_header(), rm_read_header(), tta_read_header(), and update_initial_timestamps().

Definition at line 338 of file avformat.h.

Referenced by compute_pkt_fields().

Definition at line 344 of file avformat.h.

Referenced by av_add_index_entry().

number of frames in this stream if known or 0

Definition at line 346 of file avformat.h.

Referenced by aiff_read_header(), ape_read_header(), avs_read_packet(), mov_build_index(), mov_read_stts(), and read_header().

int64_t AVStream::unused[4+1]

Definition at line 349 of file avformat.h.

source filename of the stream

Definition at line 352 of file avformat.h.

Referenced by av_close_input_stream(), and matroska_parse_attachments().

int64_t AVStream::pts_buffer[MAX_REORDER_DELAY+1]

Definition at line 354 of file avformat.h.

Referenced by av_new_stream(), compute_pkt_fields(), and compute_pkt_fields2().


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

Generated on Thu Apr 2 07:15:45 2009 for ffmpeg by  doxygen 1.5.6