MUAN
ffmpeg_rw.h File Reference

Interface with ffmpeg. More...

Go to the source code of this file.

Functions

AVStream * add_video_stream (AVFormatContext *oc, int codec_id, int width, int height)
void open_video (AVFormatContext *oc, AVStream *st)
void write_video_frame (AVFormatContext *oc, AVStream *st, int frame_count, unsigned char *imgFrame, int key)
void close_video (AVFormatContext *oc, AVStream *st)
AVStream * add_audio_stream (AVFormatContext *oc, int codec_id)
void open_audio (AVFormatContext *oc, AVStream *st)
void get_audio_frame (int16_t *samples, int frame_size, int nb_channels)
void write_audio_frame (AVFormatContext *oc, AVStream *st)
void close_audio (AVFormatContext *oc, AVStream *st)

Detailed Description

Interface with ffmpeg.

It was based on ffmpeg example program.


Function Documentation

AVStream* add_audio_stream ( AVFormatContext *  oc,
int  codec_id 
)
AVStream* add_video_stream ( AVFormatContext *  oc,
int  codec_id,
int  width,
int  height 
)
void close_audio ( AVFormatContext *  oc,
AVStream *  st 
)

References audio_outbuf, and samples.

Referenced by VideoEncoder::avffmpeg_write().

void close_video ( AVFormatContext *  oc,
AVStream *  st 
)

References tmp_picture, and video_outbuf.

Referenced by VideoEncoder::avffmpeg_write().

void get_audio_frame ( int16_t *  samples,
int  frame_size,
int  nb_channels 
)

References samples, t, tincr, and tincr2.

Referenced by write_audio_frame().

void open_audio ( AVFormatContext *  oc,
AVStream *  st 
)
void open_video ( AVFormatContext *  oc,
AVStream *  st 
)
void write_audio_frame ( AVFormatContext *  oc,
AVStream *  st 
)
void write_video_frame ( AVFormatContext *  oc,
AVStream *  st,
int  frame_count,
unsigned char *  imgFrame,
int  key 
)