FFmpeg
 All Data Structures Namespaces 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
 The input container format.
 
struct AVOutputFormatoformat
 The output container format.
 
voidpriv_data
 Format private data.
 
AVIOContextpb
 I/O context.
 
int ctx_flags
 Flags signalling stream properties.
 
unsigned int nb_streams
 Number of elements in AVFormatContext.streams.
 
AVStream ** streams
 A list of all streams in the file.
 
char filename [1024]
 input or output filename
 
int64_t start_time
 Position of the first frame of the component, in AV_TIME_BASE fractional seconds.
 
int64_t duration
 Duration of the stream, in AV_TIME_BASE fractional seconds.
 
int bit_rate
 Total stream bitrate in bit/s, 0 if not available.
 
unsigned int packet_size
 
int max_delay
 
int flags
 Flags modifying the (de)muxer behaviour.
 
unsigned int probesize
 
attribute_deprecated int max_analyze_duration
 
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
 Number of chapters in AVChapter array.
 
AVChapter ** chapters
 
AVDictionarymetadata
 Metadata that applies to the whole file.
 
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
 The number of frames used for determining the framerate in avformat_find_stream_info().
 
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.
 
int64_t max_interleave_delta
 Maximum buffering duration for interleaving.
 
int strict_std_compliance
 Allow non-standard and experimental extension.
 
int event_flags
 Flags for the user to detect events happening on the file.
 
int max_ts_probe
 Maximum number of packets to read while waiting for the first timestamp.
 
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
 Avoid negative timestamps during muxing.
 
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.
 
int64_t 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.
 
int flush_packets
 Flush the I/O context after each packet.
 
int probe_score
 format probing score.
 
int format_probesize
 number of bytes to read maximally to identify format.
 
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
 
int64_t offset
 Offset to remap timestamps to be non-negative.
 
AVRational offset_timebase
 Timebase for the timestamp offset.
 
AVFormatInternalinternal
 An opaque field for libavformat internal usage.
 
int io_repositioned
 IO repositioned flag.
 
AVCodecvideo_codec
 Forced video codec.
 
AVCodecaudio_codec
 Forced audio codec.
 
AVCodecsubtitle_codec
 Forced subtitle codec.
 
int metadata_header_padding
 Number of bytes to be written as padding in a metadata header.
 
voidopaque
 User data.
 
av_format_control_message control_message_cb
 Callback used by devices to communicate with application.
 
int64_t output_ts_offset
 Output timestamp offset, in microseconds.
 
int64_t max_analyze_duration2
 Maximum duration (in AV_TIME_BASE units) of the data read from input in avformat_find_stream_info().
 
int64_t probesize2
 Maximum size of the data read from input for determining the input container format.
 

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:
avio_reading.c, demuxing_decoding.c, filtering_audio.c, filtering_video.c, metadata.c, muxing.c, remuxing.c, transcode_aac.c, and transcoding.c.

Definition at line 1170 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 1175 of file avformat.h.

Referenced by avformat_get_context_defaults(), and avformat_open_input().

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

The output container format.

Muxing only, must be set by the caller before avformat_write_header().

Examples:
muxing.c, and transcoding.c.

Definition at line 1189 of file avformat.h.

Referenced by add_stream(), av_dump_format(), av_get_output_timestamp(), av_interleaved_write_frame(), av_write_frame(), av_write_trailer(), av_write_uncoded_frame_internal(), av_write_uncoded_frame_query(), avdevice_app_to_dev_control_message(), avdevice_capabilities_create(), avdevice_capabilities_free(), avdevice_list_devices(), avformat_alloc_output_context2(), avformat_free_context(), avformat_write_header(), build_feed_streams(), choose_encoder(), close_connection(), compute_pkt_fields2(), do_video_out(), dump_stream_format(), ff_rtp_chain_mux_open(), ff_rtp_get_payload_type(), ff_rtsp_open_transport_ctx(), ff_rtsp_undo_setup(), ffmpeg_cleanup(), filter_codec_opts(), flush_encoders(), force_one_stream(), format_child_next(), format_to_name(), hds_write_header(), hls_mux_init(), hls_start(), http_prepare_data(), init_muxer(), interleave_packet(), ism_write_header(), log_slave(), main(), mkv_write_header(), mov_write_header(), mpeg_mux_init(), mpegts_write_header(), mxf_parse_mpeg2_frame(), mxf_write_generic_sound_common(), mxf_write_header(), mxf_write_packet(), new_output_stream(), open_output_file(), open_slave(), prepare_sdp_description(), rtp_new_av_stream(), segment_mux_init(), segment_start(), swf_write_header(), tee_write_trailer(), transcode_init(), validate_codec_tag(), write_frame(), write_header(), write_packet(), and write_video_frame().

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 1198 of file avformat.h.

Referenced by add_file(), adjust_write_index(), adts_write_header(), adts_write_packet(), adts_write_trailer(), 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(), amr_read_packet(), 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_get_packet(), asf_parse_packet(), 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_marker(), asf_read_metadata(), asf_read_packet(), asf_read_pts(), asf_read_seek(), asf_read_stream_properties(), asf_reset_header(), asf_write_header(), asf_write_header1(), asf_write_markers(), 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_read_close(), audio_read_header(), audio_read_packet(), audio_write_frame(), audio_write_header(), audio_write_packet(), audio_write_trailer(), av_write_trailer(), avdevice_capabilities_create(), avf_close(), avf_read_header(), avf_read_packet(), 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_context_create(), avisynth_create_stream(), avisynth_create_stream_audio(), avisynth_create_stream_video(), avisynth_next_stream(), avisynth_open_file(), avisynth_read_close(), avisynth_read_packet(), avisynth_read_packet_audio(), avisynth_read_packet_video(), 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_feed_streams(), build_frame_code(), caca_write_header(), caca_write_packet(), caca_write_trailer(), caf_write_header(), caf_write_packet(), caf_write_trailer(), calculate_bitrate(), callback(), cdata_read_header(), cdata_read_packet(), cdxl_read_header(), cdxl_read_packet(), celt_header(), check_sessionid(), cin_read_header(), cin_read_packet(), cine_read_packet(), cine_read_seek(), close_connection(), close_slaves(), compute_display_area(), compute_moov_size(), compute_overlay_rect(), concat_read_close(), concat_read_header(), concat_read_packet(), concat_seek(), convert_timestamp(), crc_write_header(), crc_write_packet(), crc_write_trailer(), dc1394_read_common(), decklink_setup_audio(), decklink_setup_video(), decklink_write_audio_packet(), decklink_write_video_packet(), decrypt_init(), detect_stream_specific(), device_init(), device_open(), dirac_gptopts(), dirac_header(), dsf_read_header(), dsf_read_packet(), 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(), enable_tracks(), event_thread(), fbdev_read_close(), fbdev_read_header(), fbdev_read_packet(), fbdev_write_header(), fbdev_write_packet(), fbdev_write_trailer(), ff_alsa_close(), ff_alsa_open(), ff_alsa_xrun_recover(), ff_decklink_write_header(), ff_decklink_write_packet(), ff_decklink_write_trailer(), ff_img_read_header(), ff_img_read_packet(), ff_mov_add_hinted_packet(), ff_mov_init_hinting(), ff_mov_write_packet(), ff_oss_audio_open(), 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_h261(), 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_tcp_write_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(), flac_write_header(), flac_write_packet(), flac_write_trailer(), 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(), gdigrab_read_close(), gdigrab_read_header(), gdigrab_read_packet(), get_aiff_header(), get_cue_desc(), 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(), gif_write_packet(), gif_write_trailer(), 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(), hds_flush(), hds_free(), hds_write_header(), hds_write_packet(), hds_write_trailer(), 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(), hnm_read_close(), hnm_read_header(), hnm_read_packet(), 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_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(), libquvi_close(), libquvi_read_header(), libquvi_read_packet(), libquvi_read_seek(), list_formats(), list_standards(), load_metadata(), lrc_read_close(), lrc_read_header(), lrc_read_packet(), lrc_read_seek(), lxf_read_header(), lxf_read_packet(), match_streams(), match_streams_exact_id(), match_streams_one_to_one(), matroska_convert_tags(), matroska_parse_tracks(), 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_start_new_cluster(), mkv_write_attachments(), mkv_write_block(), mkv_write_chapters(), mkv_write_flush_packet(), mkv_write_header(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_tag(), mkv_write_tags(), mkv_write_tracks(), mkv_write_trailer(), mkv_write_vtt_blocks(), 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_free(), 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(), mov_write_uuidusmt_tag(), mp3_parse_info_tag(), mp3_parse_vbr_tags(), mp3_parse_vbri_tag(), 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_resync(), 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_random_index_pack(), 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_generic_sound_common(), 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(), old_flac_header(), oma_read_header(), oma_read_packet(), oma_read_seek(), open_file(), open_next_file(), opengl_compute_display_area(), opengl_control_message(), opengl_create_window(), opengl_draw(), opengl_prepare_vertex(), opengl_release_window(), opengl_resize(), opengl_write_header(), opengl_write_trailer(), opus_header(), opus_packet(), output_packet(), paint_mouse_pointer(), parse_adaptation_sets(), parse_audio_var(), 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_audio_sink_input_cb(), pulse_close(), pulse_control_message(), pulse_event(), pulse_get_device_list(), pulse_get_output_timestamp(), pulse_read_header(), pulse_read_packet(), pulse_stream_writable(), pulse_update_sink_info(), pulse_update_sink_input_info(), pulse_write_header(), pulse_write_packet(), pulse_write_trailer(), 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(), qtkit_close(), qtkit_read_header(), qtkit_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_close_gme(), read_data(), read_desc_chunk(), read_header(), read_header_gme(), read_line(), read_packet(), read_packet_gme(), read_pakt_chunk(), read_part_of_packet(), read_seek(), read_seek_gme(), read_xing_toc(), real_seek(), realtext_read_close(), realtext_read_header(), realtext_read_packet(), realtext_read_seek(), recheck_discard_flags(), redspark_read_header(), redspark_read_packet(), 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(), scan_file(), 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(), skip_to_key(), 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(), 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(), try_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(), vorbis_update_metadata(), vp8_gptopts(), vp8_header(), vp8_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(), webm_clusters_start_with_keyframe(), webm_dash_manifest_compute_bandwidth(), webm_dash_manifest_cues(), webm_dash_manifest_read_header(), webm_dash_manifest_write_header(), webm_dash_manifest_write_trailer(), webvtt_read_close(), webvtt_read_header(), webvtt_read_packet(), webvtt_read_seek(), write_abst(), write_adaptation_set(), write_chunk_header(), write_chunk_header2(), write_header(), write_headers(), write_index(), write_manifest(), write_packet(), write_picture(), write_root_table(), 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(), wv_write_packet(), wv_write_trailer(), 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(), xv_repaint(), xv_write_header(), xv_write_trailer(), xwma_read_header(), xwma_read_packet(), yop_read_close(), yop_read_header(), yop_read_packet(), yop_read_seek(), yuv4_write_header(), and yuv4_write_packet().

AVIOContext* AVFormatContext::pb

I/O context.

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:
avio_reading.c, muxing.c, and transcoding.c.

Definition at line 1212 of file avformat.h.

Referenced by a64_write_header(), add_metadata(), adjust_write_index(), adp_read_header(), adp_read_packet(), adts_aac_read_header(), 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_markers(), asf_write_packet(), 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(), cine_read_header(), cine_read_packet(), cine_read_seek(), 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(), dsf_read_header(), dsf_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(), ff_ape_parse_tag(), ff_ape_write_tag(), ff_find_last_ts(), ff_framehash_write_header(), ff_gen_syncpoint_search(), ff_id3v1_read(), ff_id3v2_read(), ff_id3v2_write_apic(), ff_id3v2_write_metadata(), ff_id3v2_write_simple(), ff_img_read_header(), ff_img_read_packet(), 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_read_riff_info(), ff_restore_parser_state(), ff_riff_write_info(), ff_rtp_chain_mux_open(), ff_rtp_send_data(), ff_rtsp_tcp_write_packet(), 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(), ffmpeg_cleanup(), film_read_header(), film_read_packet(), find_and_decode_index(), finish_chunk_noindex(), finish_file(), finished_reading_packet(), flac_read_header(), flac_read_timestamp(), 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_header(), framecrc_write_packet(), free_playlist_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_image_write_header(), gif_read_ext(), gif_read_header(), gif_read_packet(), gif_write_header(), gif_write_trailer(), 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(), hds_flush(), hds_free(), hds_write_header(), hls_read_header(), hls_start(), hls_write_packet(), hls_write_trailer(), hnm_read_header(), hnm_read_packet(), 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(), 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(), lrc_read_header(), lrc_write_header(), lrc_write_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_start_new_cluster(), mkv_write_attachments(), mkv_write_chapters(), mkv_write_cues(), mkv_write_flush_packet(), 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_info_tag(), mp3_parse_vbr_tags(), mp3_parse_vbri_tag(), 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_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_random_index_pack(), 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_dsd_diin(), parse_dsd_prop(), 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_header_gme(), read_id3(), 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(), reanalyze(), redspark_read_header(), redspark_read_packet(), rl2_read_header(), rl2_read_packet(), rm_read_dts(), rm_read_header(), rm_read_header_old(), rm_read_index(), 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(), rsd_read_header(), rsd_read_packet(), rso_read_header(), rso_write_header(), rso_write_packet(), rso_write_trailer(), rtp_new_av_stream(), rtp_write_header(), rtp_write_trailer(), rv10_write_header(), sami_read_header(), sap_read_header(), sap_write_close(), sbg_read_header(), sdr2_read_header(), sdr2_read_packet(), 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(), 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(), webm_clusters_start_with_keyframe(), webm_dash_manifest_cues(), webm_dash_manifest_read_header(), webm_dash_manifest_write_header(), webvtt_read_header(), webvtt_write_header(), webvtt_write_packet(), write_adaptation_set(), write_chapter(), write_chunk_header(), write_chunk_header2(), write_fat_sector(), write_footer(), write_frame(), 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(), wv_write_packet(), wv_write_trailer(), 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(), yuv4_read_packet(), and yuv4_write_packet().

int AVFormatContext::ctx_flags
unsigned int AVFormatContext::nb_streams

Number of elements in AVFormatContext.streams.

Set by avformat_new_stream(), must not be modified by any other code.

Examples:
muxing.c, remuxing.c, and transcoding.c.

Definition at line 1226 of file avformat.h.

Referenced by add_input_streams(), add_metadata_from_renditions(), add_stream(), aiff_write_header(), amf_parse_object(), asf_read_pts(), asf_read_stream_properties(), asf_write_header1(), asfrtp_parse_packet(), asfrtp_parse_sdp_line(), ast_write_header(), audio_write_header(), av_dump_format(), av_find_best_stream(), av_find_default_stream_index(), av_format_inject_global_side_data(), 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(), avisynth_next_stream(), build_feed_streams(), build_file_streams(), build_frame_code(), caca_write_header(), caf_write_header(), calculate_bitrate(), check_packet(), check_stream_max_drift(), clean_index(), clear_index_entries(), close_connection(), close_input_file(), close_slaves(), concat_read_header(), configure_output_audio_filter(), copy_metadata(), create_stream(), decode_info_header(), do_video_out(), dv_init_mux(), dv_write_header(), enable_tracks(), estimate_timings(), estimate_timings_from_bit_rate(), estimate_timings_from_pts(), export_orphan_timecode(), extract_mpeg4_header(), fbdev_write_header(), ff_audio_interleave_close(), ff_audio_interleave_init(), ff_audio_rechunk_interleave(), ff_decklink_write_header(), 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_rfps_calculate(), 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(), finish_output_stream(), flac_write_header(), flv_data_packet(), flv_read_metabody(), flv_read_packet(), flv_write_header(), flv_write_trailer(), force_one_stream(), framecrc_write_header(), get_duration(), get_packet_header(), 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(), handle_id3(), handle_packet(), has_duration(), hds_free(), hds_write_header(), hls_mux_init(), hls_read_header(), hls_read_seek(), hls_write_header(), http_prepare_data(), http_receive_data(), ico_write_header(), id3_has_changed_values(), ilbc_write_header(), init_filters(), 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(), libquvi_read_header(), log_slave(), lrc_write_header(), lxf_read_packet(), main(), match_streams(), match_streams_exact_id(), match_streams_one_to_one(), microdvd_write_header(), mkv_write_attachments(), mkv_write_header(), mkv_write_tags(), mkv_write_tracks(), mkv_write_trailer(), mov_find_next_sample(), mov_read_ares(), mov_read_chan(), mov_read_chapters(), mov_read_close(), mov_read_ctts(), mov_read_custom_2plus(), 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_targa_y216(), 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(), 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_header(), nut_read_header(), nut_write_header(), nut_write_packet(), nut_write_trailer(), ogg_write_header(), ogg_write_packet(), ogg_write_trailer(), open_input_file(), open_output_file(), open_slave(), opengl_write_header(), output_packet(), pmt_cb(), prepare_sdp_description(), print_final_stats(), probe_file(), process_input(), pulse_write_header(), 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_interval_packets(), read_packet(), read_seek(), read_thread(), real_seek(), recheck_discard_flags(), remove_decoded_packets(), rl2_read_packet(), rl2_read_seek(), rm_read_close(), rm_read_index(), rm_write_header(), rm_write_trailer(), roq_write_header(), 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_header(), tmcd_is_referenced(), transcode_init(), try_seek(), update_stream_timings(), update_wrap_reference(), voc_write_header(), write_header(), write_headers(), write_index(), write_mainheader(), write_manifest(), write_trailer(), wv_write_header(), xmv_process_packet_header(), xv_write_header(), and yuv4_write_header().

AVStream** AVFormatContext::streams

A list of all streams in the file.

New streams are created with avformat_new_stream().

Freed by libavformat in avformat_free_context().

Examples:
demuxing_decoding.c, filtering_audio.c, filtering_video.c, muxing.c, remuxing.c, and transcoding.c.

Definition at line 1238 of file avformat.h.

Referenced by a64_write_header(), add_input_streams(), add_metadata_from_renditions(), 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_parse_packet(), asf_read_frame_header(), asf_read_header(), asf_read_pts(), asf_read_seek(), 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_write_frame(), audio_write_header(), av_find_best_stream(), av_find_default_stream_index(), av_format_inject_global_side_data(), 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_next_stream(), avisynth_read_seek(), bitstream_switching(), build_feed_streams(), build_file_streams(), build_frame_code(), caca_write_header(), caf_write_header(), caf_write_packet(), caf_write_trailer(), calculate_bitrate(), celt_header(), check_packet(), check_stream_max_drift(), cine_read_packet(), clean_index(), clear_index_entries(), close_connection(), close_input_file(), compute_display_area(), compute_overlay_rect(), concat_read_header(), concat_read_packet(), configure_output_audio_filter(), copy_metadata(), create_stream(), daud_write_header(), decode_frame(), decode_info_header(), decode_stream_header(), detect_stream_specific(), dirac_header(), dsf_read_packet(), dump_stream_format(), dv_init_mux(), dv_write_header(), dv_write_packet(), enable_tracks(), encode_write_frame(), estimate_timings(), estimate_timings_from_bit_rate(), estimate_timings_from_pts(), event_thread(), export_orphan_timecode(), extract_mpeg4_header(), fbdev_write_header(), fbdev_write_packet(), ff_alsa_open(), ff_audio_interleave_close(), ff_audio_interleave_init(), ff_audio_rechunk_interleave(), ff_decklink_write_header(), ff_decklink_write_packet(), ff_find_stream_index(), ff_framehash_write_header(), ff_free_stream(), ff_gen_syncpoint_search(), ff_id3v2_write_apic(), ff_img_read_packet(), ff_interleave_add_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_rfps_calculate(), 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(), fill_timing_for_id3_timestamped_stream(), film_read_header(), filter_packet(), find_and_decode_index(), find_stream(), flac_header(), flac_read_timestamp(), flac_write_header(), flac_write_trailer(), flush_encoder(), flush_packet(), flv_data_packet(), flv_read_metabody(), flv_read_packet(), flv_write_header(), flv_write_packet(), flv_write_trailer(), framecrc_write_header(), frm_read_packet(), g729_read_packet(), get_aiff_header(), get_cue_desc(), get_duration(), get_packet_header(), get_private_data(), get_subtitle_pkt(), get_system_header_size(), get_timebase(), gif_image_write_header(), gif_write_header(), 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(), h261_init(), h263_init(), h264_init(), handle_file(), has_duration(), hds_flush(), hds_write_header(), hds_write_packet(), hevc_init(), hevc_parse_sdp_line(), 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(), id3_has_changed_values(), idcin_read_seek(), iff_read_packet(), ilbc_parse_sdp_line(), ilbc_read_packet(), ilbc_write_header(), img_read_seek(), init_convert_timestamp(), init_filters(), init_input_filter(), init_muxer(), init_pts(), init_video(), interleave_compare_dts(), interleave_new_audio_packet(), 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(), libquvi_read_header(), log_packet(), log_slave(), lrc_write_header(), main(), match_streams_exact_id(), match_streams_one_to_one(), matroska_parse_tracks(), matroska_read_seek(), microdvd_write_header(), mkv_write_attachments(), mkv_write_block(), mkv_write_cues(), mkv_write_header(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_tags(), mkv_write_track(), mkv_write_tracks(), mov_create_timecode_track(), mov_find_next_sample(), mov_read_ares(), mov_read_chan(), mov_read_chapters(), mov_read_close(), mov_read_ctts(), mov_read_custom_2plus(), 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_targa_y216(), 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_push_data(), 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_index_table_segment(), mxf_write_multi_descriptor(), mxf_write_package(), mxf_write_packet(), mxf_write_system_item(), nsv_read_chunk(), 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_packet_internal(), 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(), opengl_compute_display_area(), opengl_draw(), opengl_write_header(), opt_map(), opt_map_channel(), opt_target(), opus_header(), opus_packet(), output_packet(), parse_chunks(), parse_h264_sdp_line(), parse_packet(), parse_sdp_line(), pmt_cb(), prepare_sdp_description(), probe_file(), process_frame(), process_input(), pulse_write_frame(), pulse_write_header(), pulse_write_packet(), 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_interval_packets(), read_kuki_chunk(), read_packet(), read_pakt_chunk(), read_part_of_packet(), read_seek(), read_thread(), read_xing_toc(), real_seek(), recheck_discard_flags(), redspark_read_packet(), 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(), roq_write_header(), rpl_read_packet(), rsd_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(), subsegment_alignment(), swf_read_packet(), swf_write_header(), swf_write_packet(), swf_write_trailer(), sync(), tee_write_packet(), theora_header(), theora_packet(), tmcd_is_referenced(), transcode_init(), try_seek(), 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(), vorbis_update_metadata(), vp8_header(), vp8_packet(), vqf_read_seek(), webm_clusters_start_with_keyframe(), webm_dash_manifest_compute_bandwidth(), webm_dash_manifest_cues(), webm_dash_manifest_read_header(), webvtt_write_header(), write_abst(), write_adaptation_set(), write_frame(), 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(), wv_write_header(), xa_read_packet(), xiph_parse_sdp_line(), xiph_vorbis_init(), xmv_process_packet_header(), xv_write_header(), xv_write_packet(), xwma_read_packet(), yuv4_generate_header(), yuv4_read_packet(), yuv4_write_header(), and yuv4_write_packet().

char AVFormatContext::filename[1024]

input or output filename

Definition at line 1246 of file avformat.h.

Referenced by add_file(), audio_read_header(), audio_write_header(), avf_read_header(), avformat_alloc_output_context2(), avformat_open_input(), avisynth_open_file(), caca_write_header(), choose_encoder(), device_open(), dv1394_read_header(), extract_mpeg4_header(), fbdev_read_header(), fbdev_write_header(), ff_alsa_open(), ff_decklink_write_header(), ff_img_read_header(), ff_rtsp_setup_output_streams(), filter_packet(), gdigrab_read_header(), grab_read_header(), gxf_write_material_data_section(), hds_flush(), hds_write_header(), hds_write_trailer(), hls_append_segment(), hls_read_header(), hls_start(), hls_window(), hls_write_header(), iec61883_read_header(), ipod_get_codec_tag(), is_realtime(), ism_write_header(), ism_write_trailer(), lavfi_read_header(), libquvi_read_header(), log_slave(), mov_read_trak(), mpegts_write_header(), nsv_read_header(), open_output_file(), opengl_write_header(), parse_device_name(), prepare_sdp_description(), print_final_stats(), process_input(), pulse_read_header(), pulse_write_header(), qtkit_read_header(), read_header(), read_thread(), resetup_tcp(), rtp_new_av_stream(), rtsp_listen(), sap_read_header(), sap_write_header(), sdl_write_header(), seg_write_header(), seg_write_packet(), segment_end(), segment_start(), set_segment_filename(), shift_data(), show_format(), start_jack(), tee_write_header(), transcode_init(), vfw_read_header(), webm_dash_manifest_read_header(), write_abst(), write_header(), write_manifest(), write_packet(), x11grab_read_header(), and xv_write_header().

int64_t AVFormatContext::start_time

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.

Demuxing only, set by libavformat.

Definition at line 1255 of file avformat.h.

Referenced by av_dump_format(), avformat_open_input(), compute_chapters_end(), concat_read_packet(), do_streamcopy(), 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_packets(), read_thread(), rewind_file(), show_format(), try_seek(), and update_stream_timings().

int64_t AVFormatContext::duration
int AVFormatContext::bit_rate

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 1272 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
Deprecated:
deprecated in favor of probesize2

Definition at line 1307 of file avformat.h.

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

attribute_deprecated int AVFormatContext::max_analyze_duration
Deprecated:
deprecated in favor of max_analyze_duration2

Definition at line 1313 of file avformat.h.

Referenced by avformat_find_stream_info().

const uint8_t* AVFormatContext::key

Definition at line 1315 of file avformat.h.

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

int AVFormatContext::keylen

Definition at line 1316 of file avformat.h.

Referenced by asf_parse_packet(), asf_read_header(), decrypt_init(), and mxf_decrypt_triplet().

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 1331 of file avformat.h.

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

enum AVCodecID AVFormatContext::subtitle_codec_id

Forced subtitle codec_id.

Demuxing: Set by user.

Definition at line 1337 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 1349 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 1355 of file avformat.h.

Referenced by shall_we_drop().

unsigned int AVFormatContext::nb_chapters

Number of chapters in AVChapter array.

When muxing, chapters are normally written in the file header, so nb_chapters should normally be initialized before write_header is called. Some muxers (e.g. mov and mkv) can also write chapters in the trailer. To write chapters in the trailer, nb_chapters must be zero when write_header is called and non-zero when write_trailer is called.

  • muxing: set by user
  • demuxing: set by libavformat

Definition at line 1368 of file avformat.h.

Referenced by asf_write_header1(), asf_write_markers(), av_dump_format(), avformat_free_context(), avpriv_new_chapter(), compute_chapters_end(), copy_chapters(), event_loop(), ff_id3v2_write_metadata(), ff_metadata_conv_ctx(), mkv_write_chapters(), mkv_write_header(), mkv_write_tags(), mov_create_chapter_track(), mov_write_chpl_tag(), mov_write_header(), mov_write_trailer(), mov_write_udta_tag(), nut_write_header(), ogm_chapter(), open_output_file(), parse_forced_key_frames(), read_chapter(), read_header(), seek_chapter(), show_chapters(), write_headers(), and write_trailer().

AVChapter** AVFormatContext::chapters
AVDictionary* AVFormatContext::metadata

Metadata that applies to the whole file.

Freed by libavformat in avformat_free_context().

Examples:
metadata.c.

Definition at line 1379 of file avformat.h.

Referenced by add_meta(), add_metadata(), adts_aac_read_header(), 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_tag(), ff_id3v2_read(), ff_id3v2_write_metadata(), ff_metadata_conv_ctx(), ff_read_riff_info(), ff_riff_write_info(), ff_rm_read_mdpr_codecdata(), ff_sauce_read(), ff_wms_parse_sdp_a_line(), ffm_write_header(), flac_read_header(), flac_write_header(), flv_read_packet(), flv_write_header(), get_meta(), get_metadata(), get_string(), get_tag(), gxf_header(), gxf_write_header(), gxf_write_umf_material_description(), handle_id3(), hls_mux_init(), http_prepare_data(), id3v1_create_tag(), id3v1_set_string(), init_muxer(), libquvi_read_header(), lrc_read_header(), lrc_write_header(), main(), matroska_convert_tags(), matroska_read_header(), mkv_write_header(), mkv_write_stereo_mode(), mkv_write_tags(), modplug_load_metadata(), mov_metadata_gnre(), mov_metadata_int8_bypass_padding(), mov_metadata_int8_no_padding(), mov_metadata_loci(), mov_metadata_raw(), mov_metadata_track_or_disc_number(), mov_parse_stsd_audio(), mov_read_custom_2plus(), mov_read_ftyp(), mov_read_header(), mov_read_mvhd(), mov_read_udta_string(), mov_write_3gp_udta_tag(), mov_write_header(), mov_write_int8_metadata(), mov_write_raw_metadata_tag(), 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(), open_slave(), parse_legacy_attrib(), parse_tag(), prepare_sdp_description(), put_id3v2_tags(), put_meta(), read_frame_internal(), read_header(), read_info_chunk(), read_string(), read_thread(), read_uint16(), read_uint32(), read_uint64(), read_uint8(), riff_has_valid_tags(), rm_read_metadata(), rpl_read_header(), rv10_write_header(), sap_write_header(), scan_file(), segment_mux_init(), show_format(), smjpeg_read_header(), smjpeg_write_header(), sox_read_header(), sox_write_header(), subviewer_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.

  • muxing: Set by the caller before avformat_write_header(). If set to either 0 or AV_NOPTS_VALUE, then the current wall-time will be used.
  • demuxing: Set by libavformat. AV_NOPTS_VALUE if unknown. Note that the value may become known after some number of frames have been received.

Definition at line 1392 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

The number of frames used for determining the framerate in avformat_find_stream_info().

Demuxing only, set by the caller before avformat_find_stream_info().

Definition at line 1399 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.

Demuxing only, set by the caller before avformat_open_input().

Definition at line 1406 of file avformat.h.

Referenced by avi_read_header(), ebml_parse_id(), ff_flac_parse_picture(), ff_rm_read_mdpr_codecdata(), matroska_read_header(), ogg_read_header(), read_header(), and tak_read_header().

AVIOInterruptCB AVFormatContext::interrupt_callback
int AVFormatContext::debug

Flags to enable debugging.

Definition at line 1422 of file avformat.h.

Referenced by read_frame_internal().

int64_t AVFormatContext::max_interleave_delta

Maximum buffering duration for interleaving.

To ensure all the streams are interleaved correctly, av_interleaved_write_frame() will wait until it has at least one packet for each stream before actually writing any packets to the output file. When some streams are "sparse" (i.e. there are large gaps between successive packets), this can result in excessive buffering.

This field specifies the maximum difference between the timestamps of the first and the last packet in the muxing queue, above which libavformat will output a packet regardless of whether it has queued a packet for all the streams.

Muxing only, set by the caller before avformat_write_header().

Definition at line 1441 of file avformat.h.

Referenced by asf_write_header(), and ff_interleave_packet_per_dts().

int AVFormatContext::strict_std_compliance

Allow non-standard and experimental extension.

See Also
AVCodecContext.strict_std_compliance

Definition at line 1447 of file avformat.h.

Referenced by nut_write_header().

int AVFormatContext::event_flags

Flags for the user to detect events happening on the file.

Flags must be cleared by the user once the event has been handled. A combination of AVFMT_EVENT_FLAG_*.

Definition at line 1454 of file avformat.h.

Referenced by amf_parse_object(), decode_info_header(), flac_read_header(), mov_metadata_gnre(), mov_metadata_int8_bypass_padding(), mov_metadata_int8_no_padding(), mov_metadata_loci(), mov_metadata_track_or_disc_number(), mov_read_udta_string(), and read_frame_internal().

int AVFormatContext::max_ts_probe

Maximum number of packets to read while waiting for the first timestamp.

Decoding only.

Definition at line 1461 of file avformat.h.

Referenced by avformat_find_stream_info().

int AVFormatContext::ts_id

Transport stream id.

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

Definition at line 1468 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 1476 of file avformat.h.

Referenced by 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 1484 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 1492 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 1500 of file avformat.h.

Referenced by ff_read_packet().

int AVFormatContext::avoid_negative_ts

Avoid negative timestamps during muxing.

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

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

Definition at line 1511 of file avformat.h.

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

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 1518 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 1526 of file avformat.h.

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

int64_t AVFormatContext::skip_initial_bytes

Skip initial bytes when opening stream.

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

Definition at line 1533 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 1540 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 1547 of file avformat.h.

Referenced by avformat_seek_file().

int AVFormatContext::flush_packets

Flush the I/O context after each packet.

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

Definition at line 1554 of file avformat.h.

Referenced by av_write_frame(), avformat_write_header(), and write_packet().

int AVFormatContext::probe_score

format probing score.

The maximal score is AVPROBE_SCORE_MAX, its set when the demuxer probes the format.

Definition at line 1563 of file avformat.h.

Referenced by av_format_get_probe_score(), and avformat_open_input().

int AVFormatContext::format_probesize

number of bytes to read maximally to identify format.

  • encoding: unused
  • decoding: set by user through AVOPtions (NO direct access)

Definition at line 1570 of file avformat.h.

Referenced by init_input().

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 1585 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(), 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 1597 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 1603 of file avformat.h.

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

int AVFormatContext::raw_packet_buffer_remaining_size
int64_t AVFormatContext::offset

Offset to remap timestamps to be non-negative.

Expressed in timebase units.

See Also
AVStream.mux_ts_offset

Definition at line 1615 of file avformat.h.

Referenced by write_packet().

AVRational AVFormatContext::offset_timebase

Timebase for the timestamp offset.

Definition at line 1620 of file avformat.h.

Referenced by write_packet().

AVFormatInternal* AVFormatContext::internal

An opaque field for libavformat internal usage.

Must not be accessed in any way by callers.

Definition at line 1626 of file avformat.h.

Referenced by av_format_inject_global_side_data(), avformat_alloc_context(), avformat_free_context(), avformat_new_stream(), ff_interleave_packet_per_dts(), ff_read_frame_flush(), and init_muxer().

int AVFormatContext::io_repositioned

IO repositioned flag.

This is set by avformat when the underlaying IO context read pointer is repositioned, for example when doing byte based seeking. Demuxers can use the flag to detect such changes.

Definition at line 1634 of file avformat.h.

Referenced by ogg_read_packet(), and seek_frame_byte().

AVCodec* AVFormatContext::video_codec

Forced video codec.

This allows forcing a specific decoder, even when there are multiple with the same codec_id. Demuxing: Set by user via av_format_set_video_codec (NO direct access).

Definition at line 1642 of file avformat.h.

Referenced by find_decoder().

AVCodec* AVFormatContext::audio_codec

Forced audio codec.

This allows forcing a specific decoder, even when there are multiple with the same codec_id. Demuxing: Set by user via av_format_set_audio_codec (NO direct access).

Definition at line 1650 of file avformat.h.

Referenced by find_decoder().

AVCodec* AVFormatContext::subtitle_codec

Forced subtitle codec.

This allows forcing a specific decoder, even when there are multiple with the same codec_id. Demuxing: Set by user via av_format_set_subtitle_codec (NO direct access).

Definition at line 1658 of file avformat.h.

Referenced by find_decoder().

int AVFormatContext::metadata_header_padding

Number of bytes to be written as padding in a metadata header.

Demuxing: Unused. Muxing: Set by user via av_format_set_metadata_header_padding.

Definition at line 1665 of file avformat.h.

Referenced by ff_id3v2_write_simple(), flac_write_header(), mp3_queue_flush(), and put_id3v2_tags().

void* AVFormatContext::opaque

User data.

This is a place for some private data of the user. Mostly usable with control_message_cb or any future callbacks in device's context.

Definition at line 1672 of file avformat.h.

av_format_control_message AVFormatContext::control_message_cb

Callback used by devices to communicate with application.

Definition at line 1677 of file avformat.h.

Referenced by avdevice_dev_to_app_control_message().

int64_t AVFormatContext::output_ts_offset

Output timestamp offset, in microseconds.

Muxing: set by user via AVOptions (NO direct access)

Definition at line 1683 of file avformat.h.

Referenced by write_packet().

int64_t AVFormatContext::max_analyze_duration2

Maximum duration (in AV_TIME_BASE units) of the data read from input in avformat_find_stream_info().

Demuxing only, set by the caller before avformat_find_stream_info() via AVOptions (NO direct access). Can be set to 0 to let avformat choose using a heuristic.

Definition at line 1692 of file avformat.h.

Referenced by avformat_find_stream_info().

int64_t AVFormatContext::probesize2

Maximum size of the data read from input for determining the input container format.

Demuxing only, set by the caller before avformat_open_input() via AVOptions (NO direct access).

Definition at line 1700 of file avformat.h.

Referenced by avformat_find_stream_info(), and mpegts_read_header().


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