|
FFmpeg 9.0.2
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <math.h>#include <libavutil/avassert.h>#include <libavutil/channel_layout.h>#include <libavutil/opt.h>#include <libavutil/mathematics.h>#include <libavutil/timestamp.h>#include <libavcodec/avcodec.h>#include <libavformat/avformat.h>#include <libswscale/swscale.h>#include <libswresample/swresample.h>Go to the source code of this file.
Data Structures | |
| struct | OutputStream |
Macros | |
| #define | STREAM_DURATION 10.0 |
| #define | STREAM_FRAME_RATE 25 /* 25 images/s */ |
| #define | STREAM_PIX_FMT AV_PIX_FMT_YUV420P /* default pix_fmt */ |
| #define | SCALE_FLAGS SWS_BICUBIC |
Functions | |
| 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) |
| #define STREAM_DURATION 10.0 |
Definition at line 46 of file mux.c.
Referenced by get_audio_frame(), and get_video_frame().
| #define STREAM_FRAME_RATE 25 /* 25 images/s */ |
| #define STREAM_PIX_FMT AV_PIX_FMT_YUV420P /* default pix_fmt */ |
| #define SCALE_FLAGS SWS_BICUBIC |
|
static |
|
static |
Definition at line 83 of file mux.c.
Referenced by write_audio_frame(), and write_video_frame().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 465 of file mux.c.
Referenced by get_video_frame(), and main().
|
static |
|
static |
|
static |