FFmpeg
|
Functions for querying libavformat capabilities, allocating core structures, etc. More...
Functions | |
unsigned | avformat_version (void) |
Return the LIBAVFORMAT_VERSION_INT constant. | |
const char * | avformat_configuration (void) |
Return the libavformat build-time configuration. | |
const char * | avformat_license (void) |
Return the libavformat license. | |
void | av_register_all (void) |
Initialize libavformat and register all the muxers, demuxers and protocols. | |
void | av_register_input_format (AVInputFormat *format) |
void | av_register_output_format (AVOutputFormat *format) |
int | avformat_network_init (void) |
Do global initialization of network components. | |
int | avformat_network_deinit (void) |
Undo the initialization done by avformat_network_init. | |
AVInputFormat * | av_iformat_next (AVInputFormat *f) |
If f is NULL, returns the first registered input format, if f is non-NULL, returns the next registered input format after f or NULL if f is the last one. | |
AVOutputFormat * | av_oformat_next (AVOutputFormat *f) |
If f is NULL, returns the first registered output format, if f is non-NULL, returns the next registered output format after f or NULL if f is the last one. | |
AVFormatContext * | avformat_alloc_context (void) |
Allocate an AVFormatContext. | |
void | avformat_free_context (AVFormatContext *s) |
Free an AVFormatContext and all its streams. | |
const AVClass * | avformat_get_class (void) |
Get the AVClass for AVFormatContext. | |
AVStream * | avformat_new_stream (AVFormatContext *s, const AVCodec *c) |
Add a new stream to a media file. | |
uint8_t * | av_stream_get_side_data (AVStream *stream, enum AVPacketSideDataType type, int *size) |
Get side information from stream. | |
AVProgram * | av_new_program (AVFormatContext *s, int id) |
Functions for querying libavformat capabilities, allocating core structures, etc.
unsigned avformat_version | ( | void | ) |
const char* avformat_configuration | ( | void | ) |
const char* avformat_license | ( | void | ) |
Initialize libavformat and register all the muxers, demuxers and protocols.
If you do not call this function, then you can select exactly which formats you want to support.
Definition at line 51 of file allformats.c.
Referenced by ff_load_image(), main(), and movie_common_init().
void av_register_input_format | ( | AVInputFormat * | format | ) |
void av_register_output_format | ( | AVOutputFormat * | format | ) |
int avformat_network_init | ( | void | ) |
Do global initialization of network components.
This is optional, but recommended, since it avoids the overhead of implicitly doing the setup for each session.
Calling this function will become mandatory if using network protocols at some major version bump.
Definition at line 4190 of file utils.c.
Referenced by main().
int avformat_network_deinit | ( | void | ) |
Undo the initialization done by avformat_network_init.
Definition at line 4202 of file utils.c.
Referenced by do_exit(), ffmpeg_cleanup(), main(), and term_init().
AVInputFormat* av_iformat_next | ( | AVInputFormat * | f | ) |
If f is NULL, returns the first registered input format, if f is non-NULL, returns the next registered input format after f or NULL if f is the last one.
Definition at line 39 of file format.c.
Referenced by av_device_next(), av_find_input_format(), av_probe_input_format3(), ff_img_read_header(), format_child_class_next(), print_times(), probe(), show_format_opts(), and show_formats_devices().
AVOutputFormat* av_oformat_next | ( | AVOutputFormat * | f | ) |
If f is NULL, returns the first registered output format, if f is non-NULL, returns the next registered output format after f or NULL if f is the last one.
Definition at line 47 of file format.c.
Referenced by av_device_next(), av_guess_format(), format_child_class_next(), show_format_opts(), and show_formats_devices().
AVFormatContext* avformat_alloc_context | ( | void | ) |
Allocate an AVFormatContext.
avformat_free_context() can be used to free the context and everything allocated by the framework within it.
Definition at line 107 of file options.c.
Referenced by avformat_alloc_output_context2(), avformat_open_input(), build_feed_streams(), ff_rtp_chain_mux_open(), ff_wms_parse_sdp_a_line(), hds_write_header(), hls_mux_init(), hls_read_header(), http_prepare_data(), http_receive_data(), ism_write_header(), main(), mov_finalize_stsd_codec(), mpegts_write_header(), open_file(), open_input_file(), open_output_file(), prepare_sdp_description(), read_ffserver_streams(), read_gab2_sub(), read_thread(), rtp_new_av_stream(), sap_read_header(), and segment_mux_init().
void avformat_free_context | ( | AVFormatContext * | s | ) |
Free an AVFormatContext and all its streams.
s | context to free |
Definition at line 3660 of file utils.c.
Referenced by avformat_alloc_context(), avformat_alloc_output_context2(), avformat_close_input(), avformat_open_input(), build_feed_streams(), close_slaves(), ff_mov_close_hinting(), ff_rtp_chain_mux_open(), ff_rtsp_undo_setup(), ffmpeg_cleanup(), hds_free(), hls_read_header(), hls_write_header(), hls_write_trailer(), ism_free(), main(), mov_read_close(), mpegts_write_end(), mpegts_write_header(), open_output_file(), sap_write_close(), seg_write_header(), seg_write_trailer(), segment_start(), and write_packet().
Get the AVClass for AVFormatContext.
It can be used in combination with AV_OPT_SEARCH_FAKE_OBJ for examining options.
Definition at line 128 of file options.c.
Referenced by open_input_file(), opt_default(), show_format_opts(), and show_help_default().
AVStream* avformat_new_stream | ( | AVFormatContext * | s, |
const AVCodec * | c | ||
) |
Add a new stream to a media file.
When demuxing, it is called by the demuxer in read_header(). If the flag AVFMTCTX_NOHEADER is set in s.ctx_flags, then it may also be called in read_packet().
When muxing, should be called by the user before avformat_write_header().
User is required to call avcodec_close() and avformat_free_context() to clean up the allocation by avformat_new_stream().
s | media file handle |
c | If non-NULL, the AVCodecContext corresponding to the new stream will be initialized to use this codec. This is needed for e.g. codec-specific defaults to be set, so codec should be provided if it is known. |
Definition at line 3739 of file utils.c.
Referenced by add_dstream(), add_stream(), adp_read_header(), adts_aac_read_header(), adx_read_header(), aea_read_header(), afc_read_header(), aiff_read_header(), amr_read_header(), apc_read_header(), ape_read_header(), ape_tag_read_field(), aqt_read_header(), asf_read_picture(), asf_read_stream_properties(), ass_read_header(), ast_read_header(), audio_read_header(), avf_read_header(), avi_read_header(), avisynth_create_stream(), avpriv_dv_init_demux(), avr_read_header(), avs_read_packet(), bfi_read_header(), bmv_read_header(), cdata_read_header(), cdxl_read_packet(), cin_read_header(), cine_read_header(), concat_read_header(), create_audio_stream(), create_new_audio_stream(), create_stream(), daud_header(), dc1394_read_common(), decode_main_header(), dfa_read_header(), dsf_read_header(), dshow_add_device(), dtshd_read_header(), dv_extract_audio_info(), dxa_read_header(), ea_read_header(), epaf_read_header(), fbdev_read_header(), ff_flac_parse_picture(), ff_id3v2_parse_apic(), ff_img_read_header(), ff_raw_audio_read_header(), ff_raw_data_read_header(), ff_raw_video_read_header(), ff_rtp_chain_mux_open(), ff_spdif_read_packet(), ffm2_read_header(), ffm_read_header(), film_read_header(), flac_read_header(), frm_read_header(), g722_read_header(), g723_1_init(), g729_read_header(), gdigrab_read_header(), get_attachment(), get_sindex(), gif_read_header(), grab_read_header(), gsm_read_header(), hds_write_header(), hls_mux_init(), hls_read_header(), hnm_read_header(), idcin_read_header(), iec61883_read_header(), iff_read_header(), ilbc_read_header(), init_stream(), ipmovie_read_header(), ircam_read_header(), ism_write_header(), iss_read_header(), jacosub_read_header(), lavfi_read_header(), libquvi_read_header(), lmlm4_read_header(), loas_read_header(), lrc_read_header(), lvf_read_header(), lxf_read_header(), main(), match_streams_one_to_one(), matroska_parse_tracks(), matroska_read_header(), microdvd_read_header(), mmf_read_header(), modplug_read_header(), mov_read_covr(), mov_read_trak(), mp3_read_header(), mpc8_read_header(), mpc_read_header(), mpegps_read_packet(), mpegts_push_data(), mpegts_read_header(), mpegts_set_stream_info(), mpegts_write_header(), mpl2_read_header(), mpsub_read_header(), msnwc_tcp_read_header(), mtv_read_header(), mv_read_header(), mxf_parse_structural_metadata(), mxg_read_header(), nc_read_header(), new_output_stream(), new_stream(), nist_read_header(), nsv_parse_NSVs_header(), nut_read_header(), nuv_header(), ogg_new_stream(), oma_read_header(), open_output_file(), open_slave(), parse_strk(), parse_vtrk(), pcm_read_header(), pjs_read_header(), pmp_header(), pmt_cb(), pulse_read_header(), pva_read_header(), pvf_read_header(), qcp_read_header(), qtkit_read_header(), r3d_read_red1(), rawvideo_read_header(), read_desc_chunk(), read_frame(), read_header(), read_header_gme(), read_packet(), realtext_read_header(), redspark_read_header(), rl2_read_header(), rm_read_header(), rm_read_header_old(), roq_read_packet(), rpl_read_header(), rsd_read_header(), rso_read_header(), sami_read_header(), sap_fetch_packet(), sap_read_header(), sbg_read_header(), sdr2_read_header(), segment_mux_init(), seq_read_header(), siff_parse_vbv1(), smacker_read_header(), smjpeg_read_header(), smush_read_header(), sol_read_header(), sox_read_header(), srt_read_header(), str_read_packet(), subviewer1_read_header(), subviewer_read_header(), swf_read_packet(), tak_read_header(), tedcaptions_read_header(), thp_read_header(), tmv_read_header(), tta_read_header(), txd_read_header(), v4l2_read_header(), vc1t_read_header(), vfw_read_header(), vid_read_packet(), vivo_read_header(), vmd_read_header(), voc_read_header(), vplayer_read_header(), vqf_read_header(), wc3_read_header(), webvtt_read_header(), write_packet(), wsaud_read_header(), wsvqa_read_header(), wsvqa_read_packet(), wv_read_header(), x11grab_read_header(), xa_read_header(), xmv_read_header(), xwma_read_header(), yop_read_header(), and yuv4_read_header().
uint8_t* av_stream_get_side_data | ( | AVStream * | stream, |
enum AVPacketSideDataType | type, | ||
int * | size | ||
) |
AVProgram* av_new_program | ( | AVFormatContext * | s, |
int | id | ||
) |
Definition at line 3802 of file utils.c.
Referenced by hls_read_header(), pat_cb(), and sdt_cb().