◐ Shell
clean mode source ↗

FFmpeg: AVOutputFormat Struct Reference

#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
 
enum AVCodecID audio_codec
 default audio codec
 
enum AVCodecID video_codec
 default video codec
 
enum AVCodecID subtitle_codec
 default subtitle codec
 
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
 
struct AVCodecTag *const * codec_tag
 List of supported codec_id-codec_tag pairs, ordered by "better choice first".
 
const AVClasspriv_class
 AVClass for the private context.
 
struct AVOutputFormatnext
 
int priv_data_size
 size of private data so that it can be allocated in the wrapper
 
int(* write_header )(struct AVFormatContext *)
 
int(* write_packet )(struct AVFormatContext *, AVPacket *pkt)
 Write a packet.
 
int(* write_trailer )(struct AVFormatContext *)
 
int(* interleave_packet )(struct AVFormatContext *, AVPacket *out, AVPacket *in, int flush)
 Currently only used to set pixel format if not YUV420P.
 
int(* query_codec )(enum AVCodecID 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)
 
int(* control_message )(struct AVFormatContext *s, int type, void *data, size_t data_size)
 Allows sending messages from application to device.
 
int(* write_uncoded_frame )(struct AVFormatContext *, int stream_index, AVFrame **frame, unsigned flags)
 Write an uncoded AVFrame.
 
int(* get_device_list )(struct AVFormatContext *s, struct AVDeviceInfoList *device_list)
 Returns device list with it properties.
 
Examples:
muxing.c, and remuxing.c.

Definition at line 443 of file avformat.h.

const char* AVOutputFormat::name

const char* AVOutputFormat::long_name

const char* AVOutputFormat::mime_type

const char* AVOutputFormat::extensions

enum AVCodecID AVOutputFormat::subtitle_codec

int AVOutputFormat::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

Examples:
muxing.c, and remuxing.c.

Definition at line 463 of file avformat.h.

Referenced by add_stream(), av_interleaved_write_frame(), av_write_frame(), avformat_write_header(), compute_pkt_fields2(), do_video_out(), dump_stream_format(), ffmpeg_cleanup(), flush_encoders(), init_muxer(), main(), new_output_stream(), open_output_file(), open_slave(), seg_write_header(), tee_write_trailer(), transcode_init(), write_frame(), write_header(), and write_video_frame().

struct AVCodecTag* const* AVOutputFormat::codec_tag

const AVClass* AVOutputFormat::priv_class

int AVOutputFormat::priv_data_size

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.

Definition at line 495 of file avformat.h.

Referenced by av_write_frame(), and write_packet().

int(* AVOutputFormat::query_codec)(enum AVCodecID 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. MKTAG('A', 'P', 'I', 'C') if the codec is only supported as AV_DISPOSITION_ATTACHED_PIC

Definition at line 509 of file avformat.h.

Referenced by avformat_query_codec().

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


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