MUAN
|
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) |
Interface with ffmpeg.
It was based on ffmpeg example program.
AVStream* add_audio_stream | ( | AVFormatContext * | oc, |
int | codec_id | ||
) |
Referenced by VideoEncoder::avffmpeg_write().
AVStream* add_video_stream | ( | AVFormatContext * | oc, |
int | codec_id, | ||
int | width, | ||
int | height | ||
) |
Referenced by VideoEncoder::avffmpeg_write().
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 | ||
) |
References audio_input_frame_size, audio_outbuf, audio_outbuf_size, samples, t, tincr, and tincr2.
Referenced by VideoEncoder::avffmpeg_write().
void open_video | ( | AVFormatContext * | oc, |
AVStream * | st | ||
) |
References tmp_picture, video_outbuf, and video_outbuf_size.
Referenced by VideoEncoder::avffmpeg_write().
void write_audio_frame | ( | AVFormatContext * | oc, |
AVStream * | st | ||
) |
References audio_input_frame_size, audio_outbuf, audio_outbuf_size, get_audio_frame(), and samples.
Referenced by VideoEncoder::avffmpeg_write().
void write_video_frame | ( | AVFormatContext * | oc, |
AVStream * | st, | ||
int | frame_count, | ||
unsigned char * | imgFrame, | ||
int | key | ||
) |
References tmp_picture, video_outbuf, and video_outbuf_size.
Referenced by VideoEncoder::avffmpeg_write().