Go to the source code of this file.
|
static void | log_packet (const AVFormatContext *fmt_ctx, const AVPacket *pkt) |
|
static int | write_frame (AVFormatContext *fmt_ctx, AVCodecContext *c, AVStream *st, AVFrame *frame, AVPacket *pkt) |
|
static void | add_stream (OutputStream *ost, AVFormatContext *oc, const AVCodec **codec, enum AVCodecID codec_id) |
|
static AVFrame * | alloc_audio_frame (enum AVSampleFormat sample_fmt, const AVChannelLayout *channel_layout, int sample_rate, int nb_samples) |
|
static void | open_audio (AVFormatContext *oc, const AVCodec *codec, OutputStream *ost, AVDictionary *opt_arg) |
|
static AVFrame * | get_audio_frame (OutputStream *ost) |
|
static int | write_audio_frame (AVFormatContext *oc, OutputStream *ost) |
|
static AVFrame * | alloc_frame (enum AVPixelFormat pix_fmt, int width, int height) |
|
static void | open_video (AVFormatContext *oc, const AVCodec *codec, OutputStream *ost, AVDictionary *opt_arg) |
|
static void | fill_yuv_image (AVFrame *pict, int frame_index, int width, int height) |
|
static AVFrame * | get_video_frame (OutputStream *ost) |
|
static int | write_video_frame (AVFormatContext *oc, OutputStream *ost) |
|
static void | close_stream (AVFormatContext *oc, OutputStream *ost) |
|
int | main (int argc, char **argv) |
|
◆ STREAM_DURATION
#define STREAM_DURATION 10.0 |
◆ STREAM_FRAME_RATE
#define STREAM_FRAME_RATE 25 /* 25 images/s */ |
◆ STREAM_PIX_FMT
◆ SCALE_FLAGS
◆ log_packet()
◆ write_frame()
◆ add_stream()
◆ alloc_audio_frame()
◆ open_audio()
◆ get_audio_frame()
◆ write_audio_frame()
◆ alloc_frame()
◆ open_video()
◆ fill_yuv_image()
static void fill_yuv_image |
( |
AVFrame * |
pict, |
|
|
int |
frame_index, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
◆ get_video_frame()
◆ write_video_frame()
◆ close_stream()
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |