FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
AVFormatContext Struct Reference

Format I/O context. More...

#include <avformat.h>

Data Fields

const AVClassav_class
 A class for logging and AVOptions.
 
struct AVInputFormatiformat
 Can only be iformat or oformat, not both at the same time.
 
struct AVOutputFormatoformat
 
voidpriv_data
 Format private data.
 
AVIOContextpb
 I/O context.
 
int ctx_flags
 Format-specific flags, see AVFMTCTX_xx.
 
unsigned int nb_streams
 A list of all streams in the file.
 
AVStream ** streams
 
char filename [1024]
 input or output filename
 
int64_t start_time
 Decoding: position of the first frame of the component, in AV_TIME_BASE fractional seconds.
 
int64_t duration
 Decoding: duration of the stream, in AV_TIME_BASE fractional seconds.
 
int bit_rate
 Decoding: total stream bitrate in bit/s, 0 if not available.
 
unsigned int packet_size
 
int max_delay
 
int flags
 
unsigned int probesize
 decoding: size of data to probe; encoding: unused.
 
int max_analyze_duration
 decoding: maximum time (in AV_TIME_BASE units) during which the input should be analyzed in avformat_find_stream_info().
 
const uint8_tkey
 
int keylen
 
unsigned int nb_programs
 
AVProgram ** programs
 
enum AVCodecID video_codec_id
 Forced video codec_id.
 
enum AVCodecID audio_codec_id
 Forced audio codec_id.
 
enum AVCodecID subtitle_codec_id
 Forced subtitle codec_id.
 
unsigned int max_index_size
 Maximum amount of memory in bytes to use for the index of each stream.
 
unsigned int max_picture_buffer
 Maximum amount of memory in bytes to use for buffering frames obtained from realtime capture devices.
 
unsigned int nb_chapters
 
AVChapter ** chapters
 
AVDictionarymetadata
 
int64_t start_time_realtime
 Start time of the stream in real world time, in microseconds since the unix epoch (00:00 1st January 1970).
 
int fps_probe_size
 decoding: number of frames used to probe fps
 
int error_recognition
 Error recognition; higher values will detect more errors but may misdetect some more or less valid parts as errors.
 
AVIOInterruptCB interrupt_callback
 Custom interrupt callbacks for the I/O layer.
 
int debug
 Flags to enable debugging.
 
int ts_id
 Transport stream id.
 
int audio_preload
 Audio preload in microseconds.
 
int max_chunk_duration
 Max chunk time in microseconds.
 
int max_chunk_size
 Max chunk size in bytes Note, not all formats support this and unpredictable things may happen if it is used when not supported.
 
int use_wallclock_as_timestamps
 forces the use of wallclock timestamps as pts/dts of packets This has undefined results in the presence of B frames.
 
int avoid_negative_ts
 Avoids negative timestamps during muxing 0 -> allow negative timestamps 1 -> avoid negative timestamps -1 -> choose automatically (default) Note, this is only works when interleave_packet_per_dts is in use.
 
int avio_flags
 avio flags, used to force AVIO_FLAG_DIRECT.
 
enum AVDurationEstimationMethod duration_estimation_method
 The duration field can be estimated through various ways, and this field can be used to know how the duration was estimated.
 
unsigned int skip_initial_bytes
 Skip initial bytes when opening stream.
 
unsigned int correct_ts_overflow
 Correct single timestamp overflows.
 
int seek2any
 Force seeking to any (also non key) frames.
 
struct AVPacketListpacket_buffer
 This buffer is only needed when packets were already buffered but not decoded, for example to get the codec parameters in MPEG streams.
 
struct AVPacketListpacket_buffer_end
 
int64_t data_offset
 offset of the first packet
 
struct AVPacketListraw_packet_buffer
 Raw packets from the demuxer, prior to parsing and decoding.
 
struct AVPacketListraw_packet_buffer_end
 
struct AVPacketListparse_queue
 Packets split by the parser get queued here.
 
struct AVPacketListparse_queue_end
 
int raw_packet_buffer_remaining_size
 

Detailed Description

Format I/O context.

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(AVFormatContext) must not be used outside libav*, use avformat_alloc_context() to create an AVFormatContext.

Examples:
doc/examples/demuxing.c, doc/examples/filtering_audio.c, doc/examples/filtering_video.c, doc/examples/metadata.c, and doc/examples/muxing.c.

Definition at line 941 of file avformat.h.

Field Documentation

const AVClass* AVFormatContext::av_class

A class for logging and AVOptions.

Set by avformat_alloc_context(). Exports (de)muxer private options if they exist.

Definition at line 946 of file avformat.h.

Referenced by avformat_get_context_defaults(), and avformat_open_input().

struct AVInputFormat* AVFormatContext::iformat
struct AVOutputFormat* AVFormatContext::oformat
void* AVFormatContext::priv_data

Format private data.

This is an AVOptions-enabled struct if and only if iformat/oformat.priv_class is not NULL.

Definition at line 961 of file avformat.h.

Referenced by add_file(), adjust_write_index(), adts_write_header(), adts_write_packet(), adx_read_header(), adx_read_packet(), afc_read_header(), afc_read_packet(), aiff_read_header(), aiff_read_packet(), aiff_write_header(), aiff_write_packet(), aiff_write_trailer(), amf_parse_object(), ape_read_close(), ape_read_header(), ape_read_packet(), ape_read_seek(), aqt_read_close(), aqt_read_header(), aqt_read_packet(), aqt_read_seek(), asf_build_simple_index(), asf_read_ext_content_desc(), asf_read_ext_stream_properties(), asf_read_file_properties(), asf_read_frame_header(), asf_read_header(), asf_read_language_list(), asf_read_metadata(), asf_read_packet(), asf_read_seek(), asf_read_stream_properties(), asf_reset_header(), asf_write_header(), asf_write_header1(), asf_write_packet(), asf_write_stream_header(), asf_write_trailer(), asfrtp_parse_packet(), asfrtp_parse_sdp_line(), ass_read_close(), ass_read_header(), ass_read_packet(), ass_read_seek(), ast_write_header(), ast_write_packet(), ast_write_trailer(), audio_get_output_timestamp(), audio_open(), audio_read_close(), audio_read_header(), audio_read_packet(), audio_write_header(), audio_write_packet(), audio_write_trailer(), av_write_trailer(), avformat_alloc_output_context2(), avformat_free_context(), avformat_open_input(), avi_load_index(), avi_read_close(), avi_read_header(), avi_read_idx1(), avi_read_packet(), avi_read_seek(), avi_start_new_riff(), avi_sync(), avi_write_counters(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), avi_write_trailer(), avisynth_read_close(), avisynth_read_header(), avisynth_read_packet(), avisynth_read_seek(), avs_read_audio_packet(), avs_read_header(), avs_read_packet(), avs_read_video_packet(), bfi_read_header(), bfi_read_packet(), bmv_read_close(), bmv_read_header(), bmv_read_packet(), build_elision_headers(), build_frame_code(), caca_write_header(), caca_write_packet(), caca_write_trailer(), caf_write_header(), caf_write_packet(), caf_write_trailer(), callback(), cdata_read_header(), cdata_read_packet(), cdxl_read_header(), cdxl_read_packet(), celt_header(), check_sessionid(), cin_read_header(), cin_read_packet(), close_connection(), close_slaves(), compute_moov_size(), concat_read_close(), concat_read_header(), concat_read_packet(), convert_timestamp(), crc_write_header(), crc_write_packet(), crc_write_trailer(), dc1394_read_common(), decrypt_init(), device_init(), dirac_gptopts(), dirac_header(), dshow_add_device(), dshow_cycle_devices(), dshow_cycle_formats(), dshow_cycle_pins(), dshow_list_device_options(), dshow_open_device(), dshow_read_close(), dshow_read_header(), dshow_read_packet(), dshow_set_audio_buffer_size(), dtshd_read_header(), dv1394_close(), dv1394_read_header(), dv1394_read_packet(), dv_init_mux(), dv_read_close(), dv_read_header(), dv_read_packet(), dv_read_seek(), dv_read_timecode(), dv_write_header(), dv_write_packet(), dv_write_trailer(), dxa_read_header(), dxa_read_packet(), ea_read_header(), ea_read_packet(), efi_read(), fbdev_read_close(), fbdev_read_header(), fbdev_read_packet(), ff_alsa_close(), ff_alsa_open(), ff_alsa_xrun_recover(), ff_asf_get_packet(), ff_asf_parse_packet(), ff_mov_add_hinted_packet(), ff_mov_init_hinting(), ff_mov_write_packet(), ff_raw_video_read_header(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ff_rtp_get_payload_type(), ff_rtp_send_aac(), ff_rtp_send_amr(), ff_rtp_send_data(), ff_rtp_send_h263(), ff_rtp_send_h263_rfc2190(), ff_rtp_send_h264(), ff_rtp_send_jpeg(), ff_rtp_send_latm(), ff_rtp_send_mpegvideo(), ff_rtp_send_vp8(), ff_rtp_send_xiph(), ff_rtsp_close_streams(), ff_rtsp_open_transport_ctx(), ff_rtsp_parse_streaming_commands(), ff_rtsp_setup_input_streams(), ff_rtsp_setup_output_streams(), ff_rtsp_tcp_read_packet(), ff_rtsp_undo_setup(), ff_sndio_open(), ff_voc_get_packet(), ff_wms_parse_sdp_a_line(), ffm2_read_header(), ffm_is_avail_data(), ffm_read_data(), ffm_read_header(), ffm_read_packet(), ffm_seek(), ffm_seek1(), ffm_set_write_index(), ffm_write_data(), ffm_write_header(), ffm_write_packet(), ffm_write_trailer(), film_read_close(), film_read_header(), film_read_packet(), find_header_idx(), finish_chunk(), finish_chunk_noindex(), finish_file(), flac_header(), flush_packet(), flv_read_close(), flv_read_packet(), flv_read_seek(), flv_write_header(), flv_write_packet(), flv_write_trailer(), format_child_next(), fourxm_read_close(), fourxm_read_header(), fourxm_read_packet(), frm_read_packet(), g729_read_header(), get_aiff_header(), get_moov_size(), get_packet_header(), get_riff(), get_system_header_size(), get_vcd_padding_size(), gif_read_ext(), gif_read_header(), gif_read_packet(), gif_write_header(), grab_read_close(), grab_read_header(), grab_read_packet(), gsm_read_header(), gxf_compare_field_nb(), gxf_header(), gxf_packet(), gxf_write_flt_packet(), gxf_write_header(), gxf_write_map_packet(), gxf_write_material_data_section(), gxf_write_media_preamble(), gxf_write_packet(), gxf_write_track_description(), gxf_write_track_description_section(), gxf_write_trailer(), gxf_write_umf_material_description(), gxf_write_umf_media_description(), gxf_write_umf_packet(), gxf_write_umf_payload(), gxf_write_umf_track_description(), hls_close(), hls_mux_init(), hls_read_header(), hls_read_packet(), hls_read_seek(), hls_start(), hls_window(), hls_write_header(), hls_write_packet(), hls_write_trailer(), ico_write_header(), ico_write_packet(), ico_write_trailer(), idcin_read_header(), idcin_read_packet(), idcin_read_seek(), iec61883_close(), iec61883_read_header(), iec61883_read_packet(), iff_read_header(), iff_read_packet(), img_read_close(), img_read_header(), img_read_packet(), img_read_seek(), init_convert_timestamp(), init_muxer(), init_stream(), ipmovie_read_header(), ipmovie_read_packet(), ism_flush(), ism_free(), ism_write_header(), ism_write_packet(), ism_write_trailer(), iss_read_header(), iss_read_packet(), jacosub_read_close(), jacosub_read_header(), jacosub_read_packet(), jacosub_read_seek(), kset(), latm_write_frame_header(), latm_write_header(), latm_write_packet(), lavfi_read_close(), lavfi_read_header(), lavfi_read_packet(), list_standards(), lxf_read_header(), lxf_read_packet(), matroska_convert_tags(), matroska_read_close(), matroska_read_header(), matroska_read_packet(), matroska_read_seek(), md5_finish(), microdvd_read_close(), microdvd_read_header(), microdvd_read_packet(), microdvd_read_seek(), mkv_flush_dynbuf(), mkv_write_ass_blocks(), mkv_write_attachments(), mkv_write_block(), mkv_write_chapters(), mkv_write_header(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_tag(), mkv_write_tracks(), mkv_write_trailer(), mmap_init(), mmap_read_frame(), mmap_start(), mmf_read_header(), mmf_read_packet(), modplug_load_metadata(), modplug_read_close(), modplug_read_header(), modplug_read_packet(), modplug_read_seek(), mov_create_chapter_track(), mov_create_timecode_track(), mov_flush_fragment(), mov_read_chapters(), mov_read_close(), mov_read_header(), mov_read_packet(), mov_write_ftyp_tag(), mov_write_header(), mov_write_packet(), mov_write_single_packet(), mov_write_trailer(), mp3_parse_vbr_tags(), mp3_queue_flush(), mp3_read_header(), mp3_read_packet(), mp3_seek(), mp3_update_xing(), mp3_write_audio_packet(), mp3_write_trailer(), mp3_write_xing(), mpc8_parse_seektable(), mpc8_read_header(), mpc8_read_packet(), mpc_read_close(), mpc_read_header(), mpc_read_packet(), mpc_read_seek(), mpeg_mux_init(), mpeg_mux_write_packet(), mpegps_read_header(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_get_dts(), mpegts_get_pcr(), mpegts_insert_pcr_only(), mpegts_prefix_m2ts_header(), mpegts_raw_read_packet(), mpegts_read_close(), mpegts_read_header(), mpegts_read_packet(), mpegts_write_end(), mpegts_write_header(), mpegts_write_packet_internal(), mpegts_write_pat(), mpegts_write_pes(), mpegts_write_pmt(), mpegts_write_sdt(), mpl2_read_close(), mpl2_read_header(), mpl2_read_packet(), mpl2_read_seek(), mpsub_read_close(), mpsub_read_header(), mpsub_read_packet(), mpsub_read_seek(), mtv_read_header(), mtv_read_packet(), mv_read_header(), mv_read_packet(), mv_read_seek(), mxf_decrypt_triplet(), mxf_gen_umid(), mxf_handle_small_eubc(), mxf_parse_dnxhd_frame(), mxf_parse_dv_frame(), mxf_read_close(), mxf_read_header(), mxf_read_packet(), mxf_read_packet_old(), mxf_read_seek(), mxf_write_common_fields(), mxf_write_d10_audio_packet(), mxf_write_d10_video_packet(), mxf_write_essence_container_refs(), mxf_write_footer(), mxf_write_generic_desc(), mxf_write_header(), mxf_write_identification(), mxf_write_index_table_segment(), mxf_write_multi_descriptor(), mxf_write_package(), mxf_write_packet(), mxf_write_partition(), mxf_write_preface(), mxf_write_random_index_pack(), mxf_write_sequence(), mxf_write_system_item(), mxf_write_timecode_component(), mxf_write_track(), mxf_write_umid(), mxg_close(), mxg_read_header(), mxg_read_packet(), mxg_update_cache(), nal_send(), nprobe(), nsv_parse_NSVf_header(), nsv_parse_NSVs_header(), nsv_read_chunk(), nsv_read_close(), nsv_read_header(), nsv_read_packet(), nsv_read_seek(), nsv_resync(), nut_read_close(), nut_read_header(), nut_read_packet(), nut_read_seek(), nut_read_timestamp(), nut_write_header(), nut_write_packet(), nut_write_trailer(), nuv_header(), nuv_packet(), nuv_read_dts(), ogg_buffer_data(), ogg_buffer_page(), ogg_calc_pts(), ogg_get_length(), ogg_gptopts(), ogg_new_stream(), ogg_packet(), ogg_read_close(), ogg_read_header(), ogg_read_packet(), ogg_read_page(), ogg_read_seek(), ogg_read_timestamp(), ogg_replace_stream(), ogg_reset(), ogg_restore(), ogg_save(), ogg_validate_keyframe(), ogg_write_header(), ogg_write_pages(), ogm_dshow_header(), ogm_header(), ogm_packet(), old_dirac_gptopts(), old_dirac_header(), oma_read_header(), oma_read_packet(), oma_read_seek(), open_file(), open_next_file(), opus_header(), opus_packet(), output_packet(), parse_chunks(), parse_command_line(), parse_device_name(), parse_global_var(), parse_keyframes_index(), parse_media_type(), parse_videoinfoheader2(), pcm_read_header(), pjs_read_close(), pjs_read_header(), pjs_read_packet(), pjs_read_seek(), pmp_close(), pmp_header(), pmp_packet(), pmp_seek(), process_audio_header_eacs(), process_audio_header_elements(), process_audio_header_sead(), process_ea_header(), process_video_header_cmv(), process_video_header_mdec(), process_video_header_vp6(), pulse_close(), pulse_read_header(), pulse_read_packet(), put_chunk(), put_frame(), put_pack_header(), put_padding_packet(), put_payload_header(), put_payload_parsing_info(), put_swf_end_tag(), put_swf_tag(), put_system_header(), put_vcd_padding_sector(), pva_read_timestamp(), qcp_read_header(), qcp_read_packet(), r3d_close(), r3d_read_header(), r3d_read_rdvo(), r3d_read_reos(), r3d_seek(), raw_read_packet(), rawvideo_read_header(), read_braindead_odml_indx(), read_close(), read_data(), read_desc_chunk(), read_header(), read_line(), read_packet(), read_pakt_chunk(), read_part_of_packet(), read_seek(), read_xing_toc(), realtext_read_close(), realtext_read_header(), realtext_read_packet(), realtext_read_seek(), recheck_discard_flags(), resetup_tcp(), retransmit_si_info(), rl2_read_packet(), rl2_read_seek(), rm_read_dts(), rm_read_header(), rm_read_header_old(), rm_read_packet(), rm_read_seek(), rm_write_audio(), rm_write_header(), rm_write_trailer(), rm_write_video(), roq_read_header(), roq_read_packet(), rpl_read_header(), rpl_read_packet(), rprobe(), rtcp_send_sr(), rtp_send_ilbc(), rtp_send_mpegaudio(), rtp_send_mpegts_raw(), rtp_send_raw(), rtp_send_samples(), rtp_write_header(), rtp_write_packet(), rtp_write_trailer(), rtsp_listen(), rtsp_read_announce(), rtsp_read_close(), rtsp_read_header(), rtsp_read_options(), rtsp_read_packet(), rtsp_read_pause(), rtsp_read_play(), rtsp_read_record(), rtsp_read_request(), rtsp_read_seek(), rtsp_read_setup(), rtsp_send_reply(), rtsp_write_close(), rtsp_write_packet(), rtsp_write_record(), rv10_write_header(), sami_read_close(), sami_read_header(), sami_read_packet(), sami_read_seek(), sap_fetch_packet(), sap_read_close(), sap_read_header(), sap_write_close(), sap_write_header(), sap_write_packet(), sbg_read_header(), sdl_write_header(), sdl_write_packet(), sdl_write_trailer(), seg_write_header(), seg_write_packet(), seg_write_trailer(), segment_end(), segment_list_open(), segment_mux_init(), segment_start(), select_reference_stream(), send_mode_a(), send_mode_b(), seq_read_close(), seq_read_header(), seq_read_packet(), set_segment_filename(), shall_we_drop(), shift_data(), siff_read_header(), siff_read_packet(), skeleton_header(), smacker_read_close(), smacker_read_header(), smacker_read_packet(), smjpeg_read_header(), smjpeg_read_packet(), smjpeg_write_packet(), smjpeg_write_trailer(), smush_read_header(), smush_read_packet(), sox_write_header(), sox_write_trailer(), spdif_header_aac(), spdif_header_ac3(), spdif_header_dts(), spdif_header_dts4(), spdif_header_eac3(), spdif_header_mpeg(), spdif_header_truehd(), spdif_write_header(), spdif_write_packet(), spdif_write_trailer(), speex_header(), speex_packet(), srt_read_close(), srt_read_header(), srt_read_packet(), srt_read_seek(), srt_write_header(), srt_write_packet(), start_jack(), str_read_close(), str_read_header(), str_read_packet(), subviewer1_read_close(), subviewer1_read_header(), subviewer1_read_packet(), subviewer1_read_seek(), subviewer_read_close(), subviewer_read_header(), subviewer_read_packet(), subviewer_read_seek(), swf_read_header(), swf_read_packet(), swf_write_audio(), swf_write_header(), swf_write_trailer(), swf_write_video(), sync(), tak_read_header(), tcp_write_packet(), tedcaptions_read_close(), tedcaptions_read_header(), tedcaptions_read_packet(), tedcaptions_read_seek(), tee_write_header(), tee_write_packet(), tee_write_trailer(), theora_gptopts(), theora_header(), theora_packet(), thp_read_header(), thp_read_packet(), tmv_read_header(), tmv_read_packet(), tmv_read_seek(), tta_read_header(), tta_read_packet(), tta_read_seek(), update_index(), v4l2_read_close(), v4l2_read_header(), v4l2_read_packet(), v4l2_set_parameters(), vc1test_write_packet(), vc1test_write_trailer(), vfw_read_close(), vfw_read_header(), vfw_read_packet(), vid_read_close(), vid_read_header(), vid_read_packet(), videostream_cb(), vivo_get_packet_header(), vivo_read_header(), vivo_read_packet(), vmd_read_close(), vmd_read_header(), vmd_read_packet(), voc_read_header(), voc_write_packet(), vorbis_cleanup(), vorbis_header(), vorbis_packet(), vplayer_read_close(), vplayer_read_header(), vplayer_read_packet(), vplayer_read_seek(), vqf_read_header(), vqf_read_packet(), vqf_read_seek(), wc3_read_close(), wc3_read_header(), wc3_read_packet(), webvtt_read_close(), webvtt_read_header(), webvtt_read_packet(), webvtt_read_seek(), write_chunk_header(), write_chunk_header2(), write_header(), write_headers(), write_index(), write_manifest(), write_packet(), write_root_table(), write_section_data(), write_stream_codec_info(), write_streamheader(), write_sync(), write_table_entries_attrib(), write_table_entries_events(), write_table_entries_time(), write_table_redirector_legacy_attrib(), write_timestamp(), write_trailer(), wsvqa_read_header(), wsvqa_read_packet(), wv_read_block_header(), wv_read_header(), wv_read_packet(), wv_read_seek(), x11grab_read_close(), x11grab_read_header(), x11grab_read_packet(), xa_read_header(), xa_read_packet(), xmv_fetch_audio_packet(), xmv_fetch_new_packet(), xmv_fetch_video_packet(), xmv_process_packet_header(), xmv_read_close(), xmv_read_header(), xmv_read_packet(), xwma_read_header(), xwma_read_packet(), yop_read_close(), yop_read_header(), yop_read_packet(), and yop_read_seek().

AVIOContext* AVFormatContext::pb

I/O context.

decoding: either set by the user before avformat_open_input() (then the user must close it manually) or set by avformat_open_input(). encoding: set by the user.

Do NOT set this field if AVFMT_NOFILE flag is set in iformat/oformat.flags. In such a case, the (de)muxer will handle I/O in some other way and this field will be NULL.

Examples:
doc/examples/muxing.c.

Definition at line 974 of file avformat.h.

Referenced by a64_write_header(), add_metadata(), adjust_write_index(), adts_write_packet(), adx_read_header(), adx_read_packet(), aea_read_header(), aea_read_packet(), afc_read_header(), afc_read_packet(), aiff_read_header(), aiff_read_packet(), aiff_write_header(), aiff_write_packet(), aiff_write_trailer(), amf_parse_object(), amr_read_header(), amr_read_packet(), apc_read_header(), apc_read_packet(), ape_read_header(), ape_read_packet(), ape_read_seek(), ape_tag_read_field(), aqt_read_header(), asf_build_simple_index(), asf_read_content_desc(), asf_read_ext_content_desc(), asf_read_ext_stream_properties(), asf_read_file_properties(), asf_read_header(), asf_read_language_list(), asf_read_marker(), asf_read_metadata(), asf_read_packet(), asf_read_picture(), asf_read_pts(), asf_read_seek(), asf_read_stream_properties(), asf_write_header(), asf_write_header1(), asf_write_index(), asf_write_trailer(), asfrtp_parse_packet(), ass_read_header(), ast_read_header(), ast_read_packet(), ast_write_header(), ast_write_packet(), ast_write_trailer(), av_demuxer_open(), av_interleaved_write_frame(), av_read_pause(), av_read_play(), av_write_frame(), av_write_trailer(), avformat_close_input(), avformat_find_stream_info(), avformat_open_input(), avformat_write_header(), avi_load_index(), avi_read_close(), avi_read_header(), avi_read_idx1(), avi_read_nikon(), avi_read_packet(), avi_read_seek(), avi_read_tag(), avi_sync(), avi_write_counters(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), avi_write_trailer(), avr_read_header(), avs_read_audio_packet(), avs_read_header(), avs_read_packet(), avs_read_video_packet(), bfi_read_header(), bfi_read_packet(), bmv_read_packet(), build_feed_streams(), caf_write_header(), caf_write_packet(), caf_write_trailer(), cdata_read_header(), cdata_read_packet(), cdxl_read_packet(), check(), cin_read_header(), cin_read_packet(), close_connection(), close_slaves(), concat_read_header(), crc_write_trailer(), daud_packet(), daud_write_packet(), decode_frame(), decode_frame_header(), decode_info_header(), decode_main_header(), decode_stream_header(), decode_syncpoint(), dfa_read_header(), dfa_read_packet(), dtshd_read_header(), dv_frame_offset(), dv_read_header(), dv_read_packet(), dv_read_seek(), dv_read_timecode(), dv_write_packet(), dxa_read_header(), dxa_read_packet(), ea_read_packet(), ebml_level_end(), ebml_parse(), ebml_parse_elem(), ebml_read_master(), efi_read(), epaf_read_header(), estimate_timings(), estimate_timings_from_bit_rate(), estimate_timings_from_pts(), event_loop(), exit_program(), ff_ape_parse_tag(), ff_ape_write(), ff_framehash_write_header(), ff_gen_search(), ff_gen_syncpoint_search(), ff_id3v1_read(), ff_id3v2_parse(), ff_id3v2_read(), ff_id3v2_write_apic(), ff_id3v2_write_metadata(), ff_id3v2_write_simple(), ff_mov_add_hinted_packet(), ff_mov_close_hinting(), ff_mov_write_packet(), ff_pcm_read_packet(), ff_pcm_read_seek(), ff_raw_read_partial_packet(), ff_raw_write_packet(), ff_restore_parser_state(), ff_rtp_chain_mux_open(), ff_rtp_send_data(), ff_rtsp_undo_setup(), ff_sauce_read(), ff_seek_frame_binary(), ff_spdif_read_packet(), ff_store_parser_state(), ff_voc_get_packet(), ff_wms_parse_sdp_a_line(), ffm2_read_header(), ffm_is_avail_data(), ffm_read_data(), ffm_read_header(), ffm_read_packet(), ffm_resync(), ffm_seek1(), ffm_write_header(), film_read_header(), film_read_packet(), find_and_decode_index(), finish_chunk_noindex(), finish_file(), flac_read_header(), flac_write_header(), flac_write_packet(), flac_write_trailer(), flush_packet(), flv_data_packet(), flv_get_extradata(), flv_read_header(), flv_read_metabody(), flv_read_packet(), flv_read_seek(), flv_set_video_codec(), flv_write_header(), flv_write_packet(), flv_write_trailer(), format_child_next(), fourxm_read_header(), fourxm_read_packet(), framecrc_write_packet(), free_variant_list(), frm_read_header(), frm_read_packet(), g723_1_read_packet(), g729_read_packet(), get_aiff_header(), get_dts(), get_meta(), get_metadata(), get_packet_header(), get_tag(), gif_read_ext(), gif_read_header(), gif_read_packet(), gif_write_header(), gif_write_trailer(), gif_write_video(), gsm_read_packet(), guess_ni_flag(), gxf_header(), gxf_packet(), gxf_read_index(), gxf_read_timestamp(), gxf_resync_media(), gxf_seek(), gxf_write_flt_packet(), gxf_write_header(), gxf_write_map_packet(), gxf_write_material_data_section(), gxf_write_media_preamble(), gxf_write_packet(), gxf_write_track_description(), gxf_write_track_description_section(), gxf_write_trailer(), gxf_write_umf_material_description(), gxf_write_umf_media_description(), gxf_write_umf_packet(), gxf_write_umf_payload(), gxf_write_umf_track_description(), handle_packet(), handle_packets(), hls_read_header(), hls_start(), hls_write_packet(), hls_write_trailer(), http_prepare_data(), http_receive_data(), ico_write_header(), ico_write_packet(), ico_write_trailer(), idcin_read_header(), idcin_read_packet(), idcin_read_seek(), iff_read_header(), iff_read_packet(), ilbc_read_header(), ilbc_read_packet(), ilbc_write_header(), ilbc_write_packet(), img_read_packet(), ingenient_read_packet(), init_input(), ipmovie_read_header(), ipmovie_read_packet(), ircam_read_header(), ircam_write_header(), is_realtime(), ism_flush(), ism_free(), ism_write_header(), iss_read_header(), iss_read_packet(), ivf_write_header(), ivf_write_packet(), jacosub_read_header(), jacosub_write_header(), latm_write_packet(), lmlm4_read_packet(), lvf_read_header(), lvf_read_packet(), lxf_read_header(), lxf_read_packet(), main(), matroska_execute_seekhead(), matroska_parse_cluster(), matroska_parse_cluster_incremental(), matroska_parse_seekhead_entry(), matroska_read_header(), matroska_read_packet(), matroska_read_seek(), matroska_resync(), md5_finish(), microdvd_read_header(), microdvd_write_header(), microdvd_write_packet(), mkv_flush_dynbuf(), mkv_write_attachments(), mkv_write_chapters(), mkv_write_header(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_tag(), mkv_write_tags(), mkv_write_tracks(), mkv_write_trailer(), mmf_read_header(), mmf_read_packet(), modplug_read_header(), mov_find_next_sample(), mov_flush_fragment(), mov_read_header(), mov_read_packet(), mov_read_timecode_track(), mov_read_trak(), mov_write_header(), mov_write_trailer(), mp3_parse_vbr_tags(), mp3_queue_flush(), mp3_read_header(), mp3_read_packet(), mp3_seek(), mp3_update_xing(), mp3_write_trailer(), mp3_write_xing(), mpc8_handle_chunk(), mpc8_parse_seektable(), mpc8_read_header(), mpc8_read_packet(), mpc8_read_seek(), mpc_read_header(), mpc_read_packet(), mpegps_read_dts(), mpegps_read_header(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_get_dts(), mpegts_get_pcr(), mpegts_insert_null_packet(), mpegts_insert_pcr_only(), mpegts_prefix_m2ts_header(), mpegts_raw_read_packet(), mpegts_read_header(), mpegts_resync(), mpegts_write_flush(), mpegts_write_header(), mpegts_write_packet_internal(), mpegts_write_pes(), mpjpeg_write_header(), mpjpeg_write_packet(), mpl2_read_header(), mpsub_read_header(), msnwc_tcp_read_header(), msnwc_tcp_read_packet(), mtv_read_header(), mtv_read_packet(), mv_read_header(), mv_read_packet(), mv_read_seek(), mxf_decrypt_triplet(), mxf_parse_handle_essence(), mxf_read_header(), mxf_read_local_tags(), mxf_read_packet(), mxf_read_packet_old(), mxf_read_seek(), mxf_seek_to_previous_partition(), mxf_write_cdci_common(), mxf_write_common_fields(), mxf_write_content_storage(), mxf_write_d10_audio_packet(), mxf_write_d10_video_packet(), mxf_write_essence_container_data(), mxf_write_essence_container_refs(), mxf_write_footer(), mxf_write_generic_desc(), mxf_write_generic_sound_common(), mxf_write_identification(), mxf_write_index_table_segment(), mxf_write_klv_fill(), mxf_write_mpegvideo_desc(), mxf_write_multi_descriptor(), mxf_write_package(), mxf_write_packet(), mxf_write_partition(), mxf_write_preface(), mxf_write_primer_pack(), mxf_write_random_index_pack(), mxf_write_sequence(), mxf_write_structural_component(), mxf_write_system_item(), mxf_write_timecode_component(), mxf_write_track(), mxf_write_umid(), mxf_write_wav_common(), mxg_read_packet(), mxg_update_cache(), nc_read_packet(), need_output(), nist_read_header(), nsv_parse_NSVf_header(), nsv_parse_NSVs_header(), nsv_read_chunk(), nsv_read_seek(), nsv_resync(), nut_read_header(), nut_read_packet(), nut_read_timestamp(), nut_write_header(), nut_write_packet(), nut_write_trailer(), nuv_header(), nuv_packet(), nuv_read_dts(), nuv_resync(), ogg_get_length(), ogg_read_page(), ogg_read_timestamp(), ogg_replace_stream(), ogg_reset(), ogg_restore(), ogg_save(), ogg_write_page(), oma_read_header(), oma_read_packet(), oma_read_seek(), oma_write_header(), open_input_stream(), open_output_file(), open_slave(), parse_audio_var(), parse_global_var(), parse_video_var(), pjs_read_header(), pmp_header(), pmp_packet(), print_report(), process_audio_header_eacs(), process_audio_header_elements(), process_audio_header_sead(), process_ea_header(), process_video_header_cmv(), process_video_header_mdec(), process_video_header_vp6(), put_chunk(), put_id3v2_tags(), put_meta(), put_payload_parsing_info(), put_swf_end_tag(), put_swf_tag(), put_vcd_padding_sector(), pva_read_packet(), pva_read_timestamp(), pvf_read_header(), qcp_read_header(), qcp_read_packet(), r3d_read_header(), r3d_read_packet(), r3d_read_rdvo(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), r3d_read_reos(), r3d_seek(), raw_read_packet(), rawvideo_read_packet(), rdt_parse_packet(), read_atom(), read_braindead_odml_indx(), read_chapter(), read_desc_chunk(), read_gab2_sub(), read_header(), read_info_chunk(), read_kuki_chunk(), read_packet(), read_pakt_chunk(), read_part_of_packet(), read_seek(), read_table(), read_thread(), read_xing_toc(), realtext_read_header(), rl2_read_header(), rl2_read_packet(), rm_read_dts(), rm_read_header(), rm_read_header_old(), rm_read_index(), rm_read_metadata(), rm_read_packet(), rm_write_audio(), rm_write_header(), rm_write_trailer(), rm_write_video(), roq_read_header(), roq_read_packet(), roq_write_header(), rpl_read_header(), rpl_read_packet(), rso_read_header(), rso_write_header(), rso_write_packet(), rso_write_trailer(), rtp_new_av_stream(), rtp_write_header(), rv10_write_header(), sami_read_header(), sap_read_header(), sap_write_close(), sbg_read_header(), section_write_packet(), seek_frame_byte(), seek_frame_generic(), seg_write_header(), seg_write_trailer(), segment_end(), segment_start(), seq_read_header(), seq_read_packet(), shift_data(), show_format(), siff_read_header(), siff_read_packet(), smacker_read_header(), smacker_read_packet(), smjpeg_read_header(), smjpeg_read_packet(), smjpeg_write_header(), smjpeg_write_packet(), smjpeg_write_trailer(), smush_read_header(), smush_read_packet(), sol_read_header(), sol_read_packet(), sox_read_header(), sox_write_header(), sox_write_trailer(), spdif_write_packet(), srt_read_header(), srt_write_packet(), str_read_header(), str_read_packet(), subviewer1_read_header(), subviewer_read_header(), swf_read_header(), swf_read_packet(), swf_write_header(), swf_write_trailer(), swf_write_video(), sync(), tak_read_header(), tcp_write_packet(), tedcaptions_read_header(), tee_write_trailer(), thp_read_header(), thp_read_packet(), tmv_read_header(), tmv_read_packet(), tmv_read_seek(), tta_read_header(), tta_read_packet(), tta_read_seek(), txd_read_packet(), update_stream_timings(), var_read_metadata(), vc1t_read_header(), vc1t_read_packet(), vc1test_write_header(), vc1test_write_packet(), vc1test_write_trailer(), vid_read_header(), vid_read_packet(), vivo_get_packet_header(), vivo_read_header(), vivo_read_packet(), vmd_read_header(), vmd_read_packet(), voc_read_header(), voc_write_header(), voc_write_packet(), voc_write_trailer(), vplayer_read_header(), vqf_read_header(), vqf_read_packet(), vqf_read_seek(), wc3_read_header(), wc3_read_packet(), webvtt_read_header(), write_chunk_header(), write_chunk_header2(), write_fat_sector(), write_header(), write_index(), write_packet(), write_packet_header(), write_root_table(), write_stream_codec(), write_stream_codec_info(), write_stream_data(), write_sync(), write_table_entries_attrib(), write_table_entries_events(), write_table_entries_time(), write_table_redirector_legacy_attrib(), write_timestamp(), write_trailer(), wsaud_read_header(), wsaud_read_packet(), wsvqa_read_header(), wsvqa_read_packet(), wtvfile_open_sector(), wv_read_header(), wv_read_packet(), wv_read_seek(), xa_read_header(), xa_read_packet(), xmv_fetch_audio_packet(), xmv_fetch_new_packet(), xmv_fetch_video_packet(), xmv_process_packet_header(), xmv_read_header(), xwma_read_header(), xwma_read_packet(), yop_read_header(), yop_read_packet(), yop_read_seek(), yuv4_read_header(), and yuv4_read_packet().

int AVFormatContext::ctx_flags
unsigned int AVFormatContext::nb_streams

A list of all streams in the file.

New streams are created with avformat_new_stream().

decoding: streams are created by libavformat in avformat_open_input(). If AVFMTCTX_NOHEADER is set in ctx_flags, then new streams may also appear in av_read_frame(). encoding: streams are created by the user before avformat_write_header().

Examples:
doc/examples/muxing.c.

Definition at line 988 of file avformat.h.

Referenced by add_input_streams(), add_stream(), aiff_write_header(), amf_parse_object(), asf_read_pts(), asf_read_stream_properties(), asf_reset_header(), asf_write_header1(), asfrtp_parse_packet(), asfrtp_parse_sdp_line(), ast_write_header(), av_dump_format(), av_find_best_stream(), av_find_default_stream_index(), av_write_trailer(), avformat_find_stream_info(), avformat_free_context(), avformat_match_stream_specifier(), avformat_new_stream(), avformat_queue_attached_pictures(), avformat_seek_file(), avi_read_close(), avi_read_header(), avi_read_idx1(), avi_read_packet(), avi_read_seek(), avi_start_new_riff(), avi_sync(), avi_write_counters(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_trailer(), build_feed_streams(), build_file_streams(), build_frame_code(), caca_write_header(), clean_index(), clear_index_entries(), close_connection(), close_input_file(), concat_read_header(), copy_metadata(), create_stream(), decode_info_header(), dv_init_mux(), dv_write_header(), estimate_timings(), estimate_timings_from_bit_rate(), estimate_timings_from_pts(), export_orphan_timecode(), extract_mpeg4_header(), ff_audio_interleave_close(), ff_audio_interleave_init(), ff_audio_rechunk_interleave(), ff_find_stream_index(), ff_framehash_write_header(), ff_free_stream(), ff_gen_syncpoint_search(), ff_interleave_packet_per_dts(), ff_metadata_conv_ctx(), ff_mov_read_esds(), ff_mov_read_stsd_entries(), ff_nut_reset_ts(), ff_program_add_stream_index(), ff_rdt_parse_open(), ff_read_frame_flush(), ff_read_packet(), ff_rtsp_setup_output_streams(), ff_spdif_read_packet(), ff_store_parser_state(), ff_update_cur_dts(), ffm_close(), ffm_read_packet(), ffm_write_header(), fill_all_stream_timings(), film_read_header(), finalize_packet(), find_and_decode_index(), find_stream(), flac_write_header(), flv_data_packet(), flv_read_metabody(), flv_read_packet(), flv_write_header(), flv_write_trailer(), get_sindex(), get_subtitle_pkt(), get_system_header_size(), gif_write_header(), guess_ni_flag(), gxf_header(), gxf_write_header(), gxf_write_track_description_section(), gxf_write_umf_media_description(), gxf_write_umf_payload(), gxf_write_umf_track_description(), handle_file(), has_duration(), hls_mux_init(), hls_read_header(), hls_write_header(), http_prepare_data(), http_receive_data(), ico_write_header(), ilbc_write_header(), init_input_filter(), init_muxer(), init_pts(), ircam_write_header(), ism_flush(), ism_free(), ism_write_header(), ivf_write_header(), lavfi_read_header(), lavfi_read_packet(), main(), microdvd_write_header(), mkv_write_attachments(), mkv_write_header(), mkv_write_tags(), mkv_write_tracks(), mkv_write_trailer(), mov_find_next_sample(), mov_read_chan(), mov_read_chapters(), mov_read_close(), mov_read_ctts(), mov_read_custom_metadata(), mov_read_dac3(), mov_read_dec3(), mov_read_dref(), mov_read_dvc1(), mov_read_elst(), mov_read_enda(), mov_read_extradata(), mov_read_fiel(), mov_read_glbl(), mov_read_hdlr(), mov_read_header(), mov_read_mdhd(), mov_read_pasp(), mov_read_sbgp(), mov_read_seek(), mov_read_stco(), mov_read_stps(), mov_read_strf(), mov_read_stsc(), mov_read_stss(), mov_read_stsz(), mov_read_stts(), mov_read_tkhd(), mov_read_tmcd(), mov_read_trak(), mov_read_trun(), mov_read_wave(), mov_read_wfex(), mov_write_ftyp_tag(), mov_write_header(), mov_write_moov_tag(), mov_write_single_packet(), mov_write_udta_tag(), movie_common_init(), mpc8_parse_seektable(), mpeg_mux_end(), mpeg_mux_init(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_write_end(), mpegts_write_flush(), mpegts_write_header(), mpegts_write_packet_internal(), mpegts_write_pmt(), mv_read_packet(), mv_read_seek(), mxf_compute_index_tables(), mxf_free(), mxf_get_stream_index(), mxf_handle_small_eubc(), mxf_interleave_get_packet(), mxf_parse_dnxhd_frame(), mxf_parse_dv_frame(), mxf_read_close(), mxf_read_seek(), mxf_write_header(), mxf_write_index_table_segment(), mxf_write_multi_descriptor(), mxf_write_package(), mxf_write_partition(), need_output(), new_output_stream(), nsv_parse_NSVs_header(), nsv_read_chunk(), nsv_read_close(), nsv_read_header(), nut_read_header(), nut_write_header(), nut_write_packet(), nut_write_trailer(), ogg_write_header(), ogg_write_trailer(), open_input_file(), open_output_file(), open_slave(), output_packet(), pmt_cb(), prepare_sdp_description(), probe_file(), process_input(), put_system_header(), qt_rtp_parse_packet(), r3d_read_packet(), rdt_parse_sdp_line(), read_braindead_odml_indx(), read_data(), read_ffserver_streams(), read_frame_internal(), read_header(), read_packets(), read_seek(), read_thread(), recheck_discard_flags(), remove_decoded_packets(), rl2_read_packet(), rl2_read_seek(), rm_read_close(), rm_read_index(), rm_write_header(), rm_write_trailer(), rpl_read_packet(), rtp_new_av_stream(), rtp_write_header(), rtsp_read_header(), rtsp_read_packet(), rv10_write_header(), sap_fetch_packet(), sap_read_header(), sap_write_close(), sap_write_header(), sdl_write_header(), search_hi_lo_keyframes(), segment_mux_init(), select_reference_stream(), set_disposition_bits(), setup_find_stream_info_opts(), show_format(), show_streams(), smjpeg_write_header(), srt_write_header(), stream_component_close(), stream_component_open(), stream_cycle_channel(), sub2video_prepare(), swf_read_packet(), swf_write_header(), swf_write_trailer(), sync(), tee_write_packet(), tmcd_is_referenced(), transcode_init(), update_stream_timings(), update_wrap_reference(), voc_write_header(), write_header(), write_headers(), write_index(), write_mainheader(), write_manifest(), write_trailer(), and xmv_process_packet_header().

AVStream** AVFormatContext::streams
Examples:
doc/examples/demuxing.c, doc/examples/filtering_audio.c, and doc/examples/filtering_video.c.

Definition at line 989 of file avformat.h.

Referenced by a64_write_header(), add_input_streams(), adts_write_header(), adx_read_header(), adx_read_packet(), aea_read_packet(), aiff_read_packet(), aiff_write_header(), aiff_write_packet(), aiff_write_trailer(), amr_parse_sdp_line(), amr_read_packet(), ape_read_seek(), asf_build_simple_index(), asf_read_frame_header(), asf_read_header(), asf_read_pts(), asf_read_seek(), asf_reset_header(), asf_write_header1(), asf_write_packet(), asfrtp_parse_packet(), asfrtp_parse_sdp_line(), ast_read_packet(), ast_write_header(), ast_write_packet(), ast_write_trailer(), audio_get_output_timestamp(), audio_write_header(), av_find_best_stream(), av_find_default_stream_index(), av_interleaved_write_frame(), av_read_frame(), av_write_frame(), av_write_trailer(), avformat_find_stream_info(), avformat_free_context(), avformat_match_stream_specifier(), avformat_new_stream(), avformat_queue_attached_pictures(), avformat_seek_file(), avi_read_close(), avi_read_header(), avi_read_idx1(), avi_read_packet(), avi_read_seek(), avi_start_new_riff(), avi_sync(), avi_write_counters(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), avi_write_trailer(), avisynth_read_packet(), build_feed_streams(), build_file_streams(), build_frame_code(), caca_write_header(), caf_write_header(), caf_write_packet(), caf_write_trailer(), celt_header(), clean_index(), clear_index_entries(), close_connection(), close_input_file(), concat_read_header(), concat_read_packet(), copy_metadata(), create_stream(), daud_write_header(), decode_frame(), decode_info_header(), decode_stream_header(), dirac_header(), dump_stream_format(), dv_init_mux(), dv_write_header(), dv_write_packet(), estimate_timings(), estimate_timings_from_bit_rate(), estimate_timings_from_pts(), export_orphan_timecode(), extract_mpeg4_header(), ff_alsa_open(), ff_asf_parse_packet(), ff_audio_interleave_close(), ff_audio_interleave_init(), ff_audio_rechunk_interleave(), ff_find_stream_index(), ff_framehash_write_header(), ff_free_stream(), ff_gen_syncpoint_search(), ff_id3v2_write_apic(), ff_interleave_add_packet(), ff_interleave_compare_dts(), ff_interleave_new_audio_packet(), ff_interleave_packet_per_dts(), ff_load_image(), ff_metadata_conv_ctx(), ff_mov_init_hinting(), ff_mov_read_esds(), ff_mov_read_stsd_entries(), ff_mov_write_packet(), ff_pcm_read_packet(), ff_pcm_read_seek(), ff_rdt_parse_open(), ff_read_frame_flush(), ff_read_packet(), ff_read_timestamp(), ff_real_parse_sdp_a_line(), ff_reduce_index(), ff_restore_parser_state(), ff_rtp_chain_mux_open(), ff_rtp_send_aac(), ff_rtp_send_jpeg(), ff_rtp_send_latm(), ff_rtsp_open_transport_ctx(), ff_sauce_read(), ff_seek_frame_binary(), ff_spdif_read_packet(), ff_store_parser_state(), ff_update_cur_dts(), ff_write_chained(), ffm_close(), ffm_write_header(), fill_all_stream_timings(), film_read_header(), find_and_decode_index(), find_stream(), flac_header(), flac_write_header(), flac_write_trailer(), flush_packet(), flv_data_packet(), flv_read_metabody(), flv_read_packet(), flv_write_header(), flv_write_packet(), flv_write_trailer(), frm_read_packet(), g729_read_packet(), get_aiff_header(), get_packet_header(), get_private_data(), get_subtitle_pkt(), get_system_header_size(), gif_write_header(), gif_write_packet(), guess_ni_flag(), gxf_compare_field_nb(), gxf_header(), gxf_interleave_packet(), gxf_packet(), gxf_read_index(), gxf_seek(), gxf_write_header(), gxf_write_media_preamble(), gxf_write_packet(), gxf_write_track_description(), gxf_write_track_description_section(), gxf_write_umf_media_description(), gxf_write_umf_track_description(), h263_init(), h264_init(), handle_file(), has_duration(), hls_mux_init(), hls_read_header(), hls_read_packet(), hls_read_seek(), hls_write_header(), hls_write_packet(), http_prepare_data(), http_receive_data(), ico_write_header(), ico_write_packet(), ico_write_trailer(), idcin_read_seek(), iff_read_packet(), ilbc_parse_sdp_line(), ilbc_read_packet(), ilbc_write_header(), img_read_packet(), init_convert_timestamp(), init_filters(), init_input_filter(), init_muxer(), init_pts(), init_video(), ircam_write_header(), ism_write_header(), ism_write_packet(), iss_read_packet(), ivf_write_header(), jacosub_write_header(), latm_parse_sdp_line(), latm_write_frame_header(), latm_write_header(), latm_write_packet(), lavfi_read_header(), lxf_read_packet(), main(), matroska_read_header(), matroska_read_seek(), microdvd_write_header(), mkv_write_ass_blocks(), mkv_write_attachments(), mkv_write_block(), mkv_write_header(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_tags(), mkv_write_tracks(), mov_create_timecode_track(), mov_find_next_sample(), mov_read_chan(), mov_read_chapters(), mov_read_close(), mov_read_ctts(), mov_read_custom_metadata(), mov_read_dac3(), mov_read_dec3(), mov_read_dref(), mov_read_dvc1(), mov_read_elst(), mov_read_enda(), mov_read_extradata(), mov_read_fiel(), mov_read_glbl(), mov_read_hdlr(), mov_read_header(), mov_read_mdhd(), mov_read_pasp(), mov_read_sbgp(), mov_read_seek(), mov_read_stco(), mov_read_stps(), mov_read_strf(), mov_read_stsc(), mov_read_stss(), mov_read_stsz(), mov_read_stts(), mov_read_tkhd(), mov_read_tmcd(), mov_read_trun(), mov_read_wave(), mov_read_wfex(), mov_write_ftyp_tag(), mov_write_header(), mov_write_moov_tag(), mov_write_single_packet(), mov_write_udta_sdp(), mov_write_uuidprof_tag(), movie_common_init(), mp3_seek(), mp3_write_xing(), mpc8_parse_seektable(), mpc8_read_seek(), mpc_read_packet(), mpc_read_seek(), mpeg_init(), mpeg_mux_end(), mpeg_mux_init(), mpeg_mux_write_packet(), mpegps_read_dts(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_get_dts(), mpegts_get_pcr(), mpegts_write_end(), mpegts_write_flush(), mpegts_write_header(), mpegts_write_packet_internal(), mpegts_write_pmt(), mv_read_packet(), mv_read_seek(), mxf_compare_timestamps(), mxf_compute_index_tables(), mxf_compute_sample_count(), mxf_free(), mxf_get_stream_index(), mxf_handle_small_eubc(), mxf_interleave_get_packet(), mxf_parse_dnxhd_frame(), mxf_parse_dv_frame(), mxf_read_close(), mxf_read_packet(), mxf_read_packet_old(), mxf_read_seek(), mxf_set_audio_pts(), mxf_write_essence_container_refs(), mxf_write_header(), mxf_write_identification(), mxf_write_index_table_segment(), mxf_write_multi_descriptor(), mxf_write_package(), mxf_write_packet(), mxf_write_system_item(), nsv_read_chunk(), nsv_read_close(), nsv_read_seek(), nut_read_header(), nut_write_header(), nut_write_packet(), nuv_read_dts(), ogg_buffer_data(), ogg_compare_granule(), ogg_get_length(), ogg_read_header(), ogg_read_seek(), ogg_validate_keyframe(), ogg_write_header(), ogg_write_packet(), ogg_write_page(), ogg_write_pages(), ogg_write_trailer(), ogm_dshow_header(), ogm_header(), old_dirac_header(), old_flac_header(), oma_read_packet(), oma_write_header(), open_codec_context(), open_input_file(), open_output_file(), open_slave(), opt_map(), opt_map_channel(), opt_target(), opus_header(), opus_packet(), output_packet(), parse_chunks(), parse_h264_sdp_line(), parse_packet(), parse_sdp_line(), pmp_packet(), pmt_cb(), prepare_sdp_description(), probe_file(), process_frame(), process_input(), put_system_header(), r3d_read_packet(), r3d_read_rdvo(), r3d_read_reda(), r3d_read_redv(), r3d_seek(), rawvideo_read_packet(), rdt_parse_sdp_line(), read_braindead_odml_indx(), read_data(), read_ffserver_streams(), read_frame(), read_frame_internal(), read_gab2_sub(), read_header(), read_kuki_chunk(), read_packet(), read_pakt_chunk(), read_part_of_packet(), read_seek(), read_thread(), read_xing_toc(), recheck_discard_flags(), remove_decoded_packets(), report_new_stream(), rl2_read_header(), rl2_read_packet(), rl2_read_seek(), rm_read_close(), rm_read_dts(), rm_read_index(), rm_read_packet(), rm_write_header(), rm_write_packet(), rpl_read_packet(), rso_write_header(), rtp_new_av_stream(), rtp_send_ilbc(), rtp_write_header(), rtp_write_packet(), rtsp_read_packet(), rtsp_read_play(), rtsp_read_seek(), sap_fetch_packet(), sap_read_header(), sap_write_close(), sap_write_header(), sap_write_packet(), sbg_read_packet(), sbg_read_seek2(), sdl_write_header(), sdl_write_packet(), search_hi_lo_keyframes(), seek_frame_generic(), seek_frame_internal(), seg_write_header(), seg_write_packet(), segment_mux_init(), select_reference_stream(), set_disposition_bits(), setup_find_stream_info_opts(), show_packet(), show_stream(), skeleton_header(), smjpeg_write_header(), smjpeg_write_packet(), sox_write_header(), sox_write_trailer(), spdif_write_header(), speex_header(), srt_write_header(), srt_write_packet(), stream_component_close(), stream_component_open(), stream_cycle_channel(), sub2video_prepare(), swf_read_packet(), swf_write_header(), swf_write_packet(), swf_write_trailer(), sync(), tee_write_packet(), theora_header(), theora_packet(), tmcd_is_referenced(), tta_read_packet(), tta_read_seek(), update_initial_timestamps(), update_stream_timings(), update_wrap_reference(), v4l2_read_packet(), v4l2_set_parameters(), vc1t_read_packet(), vc1test_write_header(), voc_read_packet(), voc_write_header(), voc_write_packet(), vorbis_header(), vorbis_packet(), vqf_read_seek(), write_header(), write_headers(), write_manifest(), write_packet(), write_streaminfo(), write_table_entries_attrib(), write_table_redirector_legacy_attrib(), write_timestamp(), write_trailer(), wsaud_read_packet(), wv_read_packet(), wv_read_seek(), xa_read_packet(), xiph_parse_sdp_line(), xiph_vorbis_init(), xmv_process_packet_header(), xwma_read_packet(), and yuv4_read_packet().

char AVFormatContext::filename[1024]
int64_t AVFormatContext::start_time

Decoding: position of the first frame of the component, in AV_TIME_BASE fractional seconds.

NEVER set this value directly: It is deduced from the AVStream values.

Definition at line 998 of file avformat.h.

Referenced by av_dump_format(), avformat_open_input(), compute_chapters_end(), concat_read_packet(), dxa_read_header(), estimate_timings(), event_loop(), fill_all_stream_timings(), flv_read_header(), movie_common_init(), open_input_file(), process_input(), read_header(), read_thread(), rewind_file(), show_format(), and update_stream_timings().

int64_t AVFormatContext::duration
int AVFormatContext::bit_rate

Decoding: total stream bitrate in bit/s, 0 if not available.

Never set it directly if the file_size and the duration are known as FFmpeg can compute it automatically.

Definition at line 1013 of file avformat.h.

Referenced by av_dump_format(), dv_read_header(), estimate_timings(), estimate_timings_from_bit_rate(), event_loop(), ff_spdif_read_packet(), g729_read_header(), mpegts_read_header(), mxf_read_seek(), show_format(), and update_stream_timings().

unsigned int AVFormatContext::packet_size
int AVFormatContext::max_delay
int AVFormatContext::flags
unsigned int AVFormatContext::probesize

decoding: size of data to probe; encoding: unused.

Definition at line 1036 of file avformat.h.

Referenced by avformat_find_stream_info(), init_input(), lavfi_read_header(), and mpegts_read_header().

int AVFormatContext::max_analyze_duration

decoding: maximum time (in AV_TIME_BASE units) during which the input should be analyzed in avformat_find_stream_info().

Definition at line 1042 of file avformat.h.

Referenced by avformat_find_stream_info().

const uint8_t* AVFormatContext::key

Definition at line 1044 of file avformat.h.

Referenced by decrypt_init(), ff_asf_parse_packet(), and mxf_decrypt_triplet().

int AVFormatContext::keylen
unsigned int AVFormatContext::nb_programs
AVProgram** AVFormatContext::programs
enum AVCodecID AVFormatContext::video_codec_id
enum AVCodecID AVFormatContext::audio_codec_id

Forced audio codec_id.

Demuxing: Set by user.

Definition at line 1060 of file avformat.h.

Referenced by audio_read_header(), ff_voc_get_packet(), flv_read_packet(), force_codec_ids(), img_read_header(), open_input_file(), and pulse_read_header().

enum AVCodecID AVFormatContext::subtitle_codec_id

Forced subtitle codec_id.

Demuxing: Set by user.

Definition at line 1066 of file avformat.h.

Referenced by force_codec_ids(), and open_input_file().

unsigned int AVFormatContext::max_index_size

Maximum amount of memory in bytes to use for the index of each stream.

If the index exceeds this size, entries will be discarded as needed to maintain a smaller size. This can lead to slower or less accurate seeking (depends on demuxer). Demuxers for which a full in-memory index is mandatory will ignore this. muxing : unused demuxing: set by user

Definition at line 1078 of file avformat.h.

Referenced by ff_reduce_index().

unsigned int AVFormatContext::max_picture_buffer

Maximum amount of memory in bytes to use for buffering frames obtained from realtime capture devices.

Definition at line 1084 of file avformat.h.

Referenced by shall_we_drop().

unsigned int AVFormatContext::nb_chapters
AVChapter** AVFormatContext::chapters
AVDictionary* AVFormatContext::metadata
Examples:
doc/examples/metadata.c.

Definition at line 1089 of file avformat.h.

Referenced by add_metadata(), amf_parse_object(), ape_tag_read_field(), asf_read_header(), asf_write_header1(), av_dump_format(), avformat_free_context(), avi_read_header(), avi_read_nikon(), avi_read_tag(), caf_write_header(), close_connection(), decode_info_header(), dtshd_read_header(), dv_init_mux(), dv_read_timecode(), dv_write_header(), export_orphan_timecode(), ff_ape_write(), ff_id3v2_read(), ff_id3v2_write_metadata(), ff_metadata_conv_ctx(), ff_mov_read_stsd_entries(), ff_rm_read_mdpr_codecdata(), ff_sauce_read(), ff_wms_parse_sdp_a_line(), ffm_write_header(), flac_read_header(), flac_write_header(), flv_write_header(), get_meta(), get_metadata(), get_string(), get_tag(), gxf_header(), gxf_write_header(), gxf_write_umf_material_description(), http_prepare_data(), id3v1_create_tag(), id3v1_set_string(), init_muxer(), main(), matroska_convert_tags(), matroska_read_header(), mkv_write_header(), mkv_write_tags(), mkv_write_tracks(), modplug_load_metadata(), mov_metadata_gnre(), mov_metadata_int8_bypass_padding(), mov_metadata_int8_no_padding(), mov_metadata_raw(), mov_metadata_track_or_disc_number(), mov_read_ftyp(), mov_read_mvhd(), mov_read_udta_string(), mov_write_3gp_udta_tag(), mov_write_header(), mov_write_int8_metadata(), mov_write_string_metadata(), mov_write_tmpo_tag(), mov_write_trkn_tag(), mov_write_uuidusmt_tag(), mp3_read_header(), mpc_read_header(), mpegts_write_header(), mxf_parse_structural_metadata(), mxf_write_header(), nist_read_header(), nsv_parse_NSVf_header(), ogg_write_header(), open_output_file(), parse_legacy_attrib(), parse_tag(), prepare_sdp_description(), put_id3v2_tags(), put_meta(), read_header(), read_info_chunk(), read_ttag(), rm_read_metadata(), rpl_read_header(), rv10_write_header(), sap_write_header(), show_format(), smjpeg_read_header(), smjpeg_write_header(), sox_read_header(), sox_write_header(), subviewer_read_header(), tta_read_header(), var_read_metadata(), vivo_read_header(), vqf_read_header(), wc3_read_header(), write_globalinfo(), write_table_entries_attrib(), write_table_redirector_legacy_attrib(), write_trailer(), and wv_read_header().

int64_t AVFormatContext::start_time_realtime

Start time of the stream in real world time, in microseconds since the unix epoch (00:00 1st January 1970).

That is, pts=0 in the stream was captured at this real world time.

  • encoding: Set by user.
  • decoding: Unused.

Definition at line 1098 of file avformat.h.

Referenced by ff_rtp_chain_mux_open(), ff_rtsp_setup_output_streams(), rtp_write_header(), and sap_write_header().

int AVFormatContext::fps_probe_size

decoding: number of frames used to probe fps

Definition at line 1103 of file avformat.h.

Referenced by avformat_find_stream_info().

int AVFormatContext::error_recognition

Error recognition; higher values will detect more errors but may misdetect some more or less valid parts as errors.

  • encoding: unused
  • decoding: Set by user.

Definition at line 1111 of file avformat.h.

Referenced by avi_read_header(), ebml_parse_id(), matroska_read_header(), and parse_picture().

AVIOInterruptCB AVFormatContext::interrupt_callback
int AVFormatContext::debug

Flags to enable debugging.

Definition at line 1127 of file avformat.h.

Referenced by read_frame_internal().

int AVFormatContext::ts_id

Transport stream id.

This will be moved into demuxer private options. Thus no API/ABI compatibility

Definition at line 1134 of file avformat.h.

Referenced by pat_cb().

int AVFormatContext::audio_preload

Audio preload in microseconds.

Note, not all formats support this and unpredictable things may happen if it is used when not supported.

  • encoding: Set by user via AVOptions (NO direct access)
  • decoding: unused

Definition at line 1142 of file avformat.h.

Referenced by ff_interleave_compare_dts().

int AVFormatContext::max_chunk_duration

Max chunk time in microseconds.

Note, not all formats support this and unpredictable things may happen if it is used when not supported.

  • encoding: Set by user via AVOptions (NO direct access)
  • decoding: unused

Definition at line 1150 of file avformat.h.

Referenced by ff_interleave_add_packet().

int AVFormatContext::max_chunk_size

Max chunk size in bytes Note, not all formats support this and unpredictable things may happen if it is used when not supported.

  • encoding: Set by user via AVOptions (NO direct access)
  • decoding: unused

Definition at line 1158 of file avformat.h.

Referenced by ff_interleave_add_packet().

int AVFormatContext::use_wallclock_as_timestamps

forces the use of wallclock timestamps as pts/dts of packets This has undefined results in the presence of B frames.

  • encoding: unused
  • decoding: Set by user via AVOptions (NO direct access)

Definition at line 1166 of file avformat.h.

Referenced by ff_read_packet().

int AVFormatContext::avoid_negative_ts

Avoids negative timestamps during muxing 0 -> allow negative timestamps 1 -> avoid negative timestamps -1 -> choose automatically (default) Note, this is only works when interleave_packet_per_dts is in use.

  • encoding: Set by user via AVOptions (NO direct access)
  • decoding: unused

Definition at line 1177 of file avformat.h.

Referenced by asf_write_header(), ff_interleave_packet_per_dts(), mkv_write_header(), mov_write_header(), nut_write_header(), and seg_write_header().

int AVFormatContext::avio_flags

avio flags, used to force AVIO_FLAG_DIRECT.

  • encoding: unused
  • decoding: Set by user via AVOptions (NO direct access)

Definition at line 1184 of file avformat.h.

Referenced by init_input().

enum AVDurationEstimationMethod AVFormatContext::duration_estimation_method

The duration field can be estimated through various ways, and this field can be used to know how the duration was estimated.

  • encoding: unused
  • decoding: Read by user via AVOptions (NO direct access)

Definition at line 1192 of file avformat.h.

Referenced by av_fmt_ctx_get_duration_estimation_method(), estimate_timings(), and find_duration().

unsigned int AVFormatContext::skip_initial_bytes

Skip initial bytes when opening stream.

  • encoding: unused
  • decoding: Set by user via AVOptions (NO direct access)

Definition at line 1199 of file avformat.h.

Referenced by avformat_open_input().

unsigned int AVFormatContext::correct_ts_overflow

Correct single timestamp overflows.

  • encoding: unused
  • decoding: Set by user via AVOPtions (NO direct access)

Definition at line 1206 of file avformat.h.

Referenced by update_wrap_reference().

int AVFormatContext::seek2any

Force seeking to any (also non key) frames.

  • encoding: unused
  • decoding: Set by user via AVOPtions (NO direct access)

Definition at line 1213 of file avformat.h.

Referenced by avformat_seek_file().

struct AVPacketList* AVFormatContext::packet_buffer

This buffer is only needed when packets were already buffered but not decoded, for example to get the codec parameters in MPEG streams.

Definition at line 1228 of file avformat.h.

Referenced by av_read_frame(), avformat_find_stream_info(), compute_pkt_fields(), ff_interleave_add_packet(), ff_interleave_packet_per_dts(), ff_restore_parser_state(), ff_store_parser_state(), flush_packet_queue(), get_next_pkt(), mxf_interleave_get_packet(), update_initial_durations(), and update_initial_timestamps().

struct AVPacketList* AVFormatContext::packet_buffer_end
int64_t AVFormatContext::data_offset
struct AVPacketList* AVFormatContext::raw_packet_buffer

Raw packets from the demuxer, prior to parsing and decoding.

This buffer is used for buffering packets until the codec can be identified, as parsing cannot be done without knowing the codec.

Definition at line 1240 of file avformat.h.

Referenced by avformat_queue_attached_pictures(), ff_read_packet(), ff_restore_parser_state(), ff_store_parser_state(), and flush_packet_queue().

struct AVPacketList* AVFormatContext::raw_packet_buffer_end
struct AVPacketList* AVFormatContext::parse_queue
struct AVPacketList* AVFormatContext::parse_queue_end

Definition at line 1246 of file avformat.h.

Referenced by flush_packet_queue(), get_next_pkt(), parse_packet(), and read_frame_internal().

int AVFormatContext::raw_packet_buffer_remaining_size

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