Functions for querying libavformat capabilities, allocating core structures, etc.
◆ av_iformat_next()
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.
◆ av_new_program()
◆ av_oformat_next()
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.
◆ av_register_all()
void av_register_all |
( |
void |
| ) |
|
◆ av_register_input_format()
◆ av_register_output_format()
◆ av_stream_get_side_data()
Get side information from stream.
- Parameters
-
stream | stream |
type | desired side information type |
size | pointer for side information size to store (optional) |
- Returns
- pointer to data if present or NULL otherwise
◆ av_stream_new_side_data()
Allocate new information from stream.
- Parameters
-
stream | stream |
type | desired side information type |
size | side information size |
- Returns
- pointer to fresh allocated data or NULL otherwise
◆ avformat_alloc_context()
◆ avformat_configuration()
const char* avformat_configuration |
( |
void |
| ) |
|
Return the libavformat build-time configuration.
◆ avformat_free_context()
◆ avformat_get_class()
const AVClass* avformat_get_class |
( |
void |
| ) |
|
◆ avformat_license()
const char* avformat_license |
( |
void |
| ) |
|
Return the libavformat license.
◆ avformat_network_deinit()
int avformat_network_deinit |
( |
void |
| ) |
|
Undo the initialization done by avformat_network_init.
◆ avformat_network_init()
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.
◆ avformat_new_stream()
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().
- Parameters
-
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. |
- Returns
- newly created stream or NULL on error.
◆ avformat_version()
unsigned avformat_version |
( |
void |
| ) |
|
Return the LIBAVFORMAT_VERSION_INT constant.