AVOutputFormat Struct Reference
[Muxing]

#include <avformat.h>


Data Fields

const char * name
const char * long_name
 Descriptive name for the format, meant to be more human-readable than name.
const char * mime_type
const char * extensions
 comma-separated filename extensions
int priv_data_size
 size of private data so that it can be allocated in the wrapper
enum CodecID audio_codec
 default audio codec
enum CodecID video_codec
 default video codec
int(* write_header )(struct AVFormatContext *)
int(* write_packet )(struct AVFormatContext *, AVPacket *pkt)
 Write a packet.
int(* write_trailer )(struct AVFormatContext *)
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
void * dummy
int(* interleave_packet )(struct AVFormatContext *, AVPacket *out, AVPacket *in, int flush)
struct AVCodecTag *const * codec_tag
 List of supported codec_id-codec_tag pairs, ordered by "better choice first".
enum CodecID subtitle_codec
 default subtitle codec
const AVMetadataConvmetadata_conv
const AVClasspriv_class
 AVClass for the private context.
int(* query_codec )(enum CodecID id, int std_compliance)
 Test if the given codec can be stored in this container.
void(* get_output_timestamp )(struct AVFormatContext *s, int stream, int64_t *dts, int64_t *wall)
struct AVOutputFormatnext


Detailed Description

Definition at line 392 of file avformat.h.


Field Documentation

default audio codec

Definition at line 407 of file avformat.h.

Referenced by av_guess_codec(), avformat_query_codec(), main(), opt_output_file(), and parse_ffconfig().

struct AVCodecTag* const* AVOutputFormat::codec_tag [read]

List of supported codec_id-codec_tag pairs, ordered by "better choice first".

The arrays are all terminated by CODEC_ID_NONE.

Definition at line 435 of file avformat.h.

Referenced by avformat_query_codec(), avformat_write_header(), transcode_init(), and validate_codec_tag().

Definition at line 426 of file avformat.h.

comma-separated filename extensions

Definition at line 401 of file avformat.h.

Referenced by av_guess_format().

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

Definition at line 424 of file avformat.h.

Referenced by add_audio_stream(), add_video_stream(), av_interleaved_write_frame(), av_write_frame(), avformat_write_header(), compute_pkt_fields2(), do_streamcopy(), do_video_out(), dump_stream_format(), exit_program(), flush_encoders(), main(), new_output_stream(), open_video(), opt_output_file(), seg_write_header(), transcode_init(), and write_video_frame().

void(* AVOutputFormat::get_output_timestamp)(struct AVFormatContext *s, int stream, int64_t *dts, int64_t *wall)

Referenced by av_get_output_timestamp().

int(* AVOutputFormat::interleave_packet)(struct AVFormatContext *, AVPacket *out, AVPacket *in, int flush)

Referenced by interleave_packet().

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.

Definition at line 399 of file avformat.h.

Referenced by opt_formats().

Definition at line 440 of file avformat.h.

Definition at line 400 of file avformat.h.

Referenced by av_guess_format(), and http_parse_request().

const char* AVOutputFormat::name

Definition at line 457 of file avformat.h.

Referenced by av_oformat_next(), and av_register_output_format().

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

Definition at line 405 of file avformat.h.

Referenced by av_set_parameters(), avformat_alloc_output_context2(), avformat_write_header(), and segment_start().

int(* AVOutputFormat::query_codec)(enum CodecID id, int std_compliance)

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

Returns:
1 if the codec is supported, 0 if it is not. A negative number if unknown.

Referenced by avformat_query_codec().

default subtitle codec

Definition at line 437 of file avformat.h.

Referenced by av_guess_codec(), avformat_query_codec(), and opt_output_file().

default video codec

Definition at line 408 of file avformat.h.

Referenced by av_guess_codec(), avformat_query_codec(), main(), opt_output_file(), and parse_ffconfig().

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.

Referenced by av_interleaved_write_frame(), av_write_frame(), av_write_trailer(), and seg_write_packet().

Referenced by av_write_trailer(), and segment_end().


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

Generated on Fri Oct 26 02:46:16 2012 for FFmpeg by  doxygen 1.5.8