FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
encode_audio.c File Reference

audio encoding with libavcodec API example. More...

#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <libavcodec/avcodec.h>
#include <libavutil/channel_layout.h>
#include <libavutil/common.h>
#include <libavutil/frame.h>
#include <libavutil/samplefmt.h>

Go to the source code of this file.

Functions

static int check_sample_fmt (const AVCodec *codec, enum AVSampleFormat sample_fmt)
 
static int select_sample_rate (const AVCodec *codec)
 
static int select_channel_layout (const AVCodec *codec)
 
int main (int argc, char **argv)
 

Detailed Description

audio encoding with libavcodec API example.

Definition in file encode_audio.c.

Function Documentation

static int check_sample_fmt ( const AVCodec codec,
enum AVSampleFormat  sample_fmt 
)
static
Examples:
encode_audio.c.

Definition at line 42 of file encode_audio.c.

Referenced by main().

static int select_sample_rate ( const AVCodec codec)
static
Examples:
encode_audio.c.

Definition at line 55 of file encode_audio.c.

Referenced by main().

static int select_channel_layout ( const AVCodec codec)
static
Examples:
encode_audio.c.

Definition at line 73 of file encode_audio.c.

Referenced by main().

int main ( int  argc,
char **  argv 
)
Examples:
encode_audio.c.

Definition at line 95 of file encode_audio.c.