AVOutputFormat

@addtogroup lavf_encoding @{

Members

Variables

audio_codec
AVCodecID audio_codec;

< default audio codec

check_bitstream
int function(AVFormatContext*, const AVPacket* pkt) check_bitstream;

Set up any necessary bitstream filtering and extract any extra data needed for the global header. Return 0 if more packets from this stream must be checked; 1 if not.

codec_tag
AVCodecTag** codec_tag;

List of supported codec_id-codec_tag pairs, ordered by "better choice first". The arrays are all terminated by AV_CODEC_ID_NONE.

control_message
int function(AVFormatContext* s, int type, void* data, size_t data_size) control_message;

Allows sending messages from application to device.

create_device_capabilities
int function(AVFormatContext* s, AVDeviceCapabilitiesQuery* caps) create_device_capabilities;

Initialize device capabilities submodule. @see avdevice_capabilities_create() for more details.

data_codec
AVCodecID data_codec;

< default data codec

deinit
void function(AVFormatContext*) deinit;

Deinitialize format. If present, this is called whenever the muxer is being destroyed, regardless of whether or not the header has been written.

extensions
char* extensions;

< comma-separated filename extensions

flags
int flags;

can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER, AVFMT_RAWPICTURE, AVFMT_GLOBALHEADER, AVFMT_NOTIMESTAMPS, AVFMT_VARIABLE_FPS, AVFMT_NODIMENSIONS, AVFMT_NOSTREAMS, AVFMT_ALLOW_FLUSH, AVFMT_TS_NONSTRICT

free_device_capabilities
int function(AVFormatContext* s, AVDeviceCapabilitiesQuery* caps) free_device_capabilities;

Free device capabilities submodule. @see avdevice_capabilities_free() for more details.

get_device_list
int function(AVFormatContext* s, AVDeviceInfoList* device_list) get_device_list;

Returns device list with it properties. @see avdevice_list_devices() for more details.

get_output_timestamp
void function(AVFormatContext* s, int stream, int64_t* dts, int64_t* wall) get_output_timestamp;
Undocumented in source.
init
int function(AVFormatContext*) init;

Initialize format. May allocate data here, and set any AVFormatContext or AVStream parameters that need to be set before packets are sent. This method must not write output.

interleave_packet
int function(AVFormatContext*, AVPacket* out_pkt, AVPacket* in_pkt, int flush) interleave_packet;

Currently only used to set pixel format if not YUV420P.

long_name
char* long_name;

Descriptive name for the format, meant to be more human-readable than name. You should use the NULL_IF_CONFIG_SMALL() macro to define it.

mime_type
char* mime_type;
Undocumented in source.
name
char* name;
Undocumented in source.
next
AVOutputFormat* next;

No fields below this line are part of the public API. They may not be used outside of libavformat and can be changed and removed at will. New public fields should be added right above. ****************************************************************

priv_class
AVClass* priv_class;

< AVClass for the private context

priv_data_size
int priv_data_size;

size of private data so that it can be allocated in the wrapper

query_codec
int function(AVCodecID id, int std_compliance) query_codec;

Test if the given codec can be stored in this container.

subtitle_codec
AVCodecID subtitle_codec;

< default subtitle codec

video_codec
AVCodecID video_codec;

< default video codec

write_header
int function(AVFormatContext*) write_header;
Undocumented in source.
write_packet
int function(AVFormatContext*, AVPacket* pkt) write_packet;

Write a packet. If AVFMT_ALLOW_FLUSH is set in flags, pkt can be NULL in order to flush data buffered in the muxer. When flushing, return 0 if there still is more data to flush, or 1 if everything was flushed and there is no more buffered data.

write_trailer
int function(AVFormatContext*) write_trailer;
Undocumented in source.
write_uncoded_frame
int function(AVFormatContext*, int stream_index, AVFrame** frame, uint flags) write_uncoded_frame;

Write an uncoded AVFrame.

Meta