#include <unistd.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavfilter/avfiltergraph.h>
#include <libavfilter/avcodec.h>
#include <libavfilter/buffersink.h>
#include <libavfilter/buffersrc.h>
Go to the source code of this file.
Functions | |
static int | open_input_file (const char *filename) |
static int | init_filters (const char *filters_descr) |
static void | print_samplesref (AVFilterBufferRef *samplesref) |
int | main (int argc, char **argv) |
Variables | |
const char * | filter_descr = "aresample=8000,aconvert=s16:mono" |
const char * | player = "ffplay -f s16le -ar 8000 -ac 1 -" |
static AVFormatContext * | fmt_ctx |
static AVCodecContext * | dec_ctx |
AVFilterContext * | buffersink_ctx |
AVFilterContext * | buffersrc_ctx |
AVFilterGraph * | filter_graph |
static int | audio_stream_index = -1 |
Definition in file filtering_audio.c.
static int init_filters | ( | const char * | filters_descr | ) | [static] |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 166 of file filtering_audio.c.
static int open_input_file | ( | const char * | filename | ) | [static] |
static void print_samplesref | ( | AVFilterBufferRef * | samplesref | ) | [static] |
int audio_stream_index = -1 [static] |
Definition at line 44 of file filtering_audio.c.
Definition at line 45 of file filtering_audio.c.
AVCodecContext* dec_ctx [static] |
Definition at line 43 of file filtering_audio.c.
Referenced by get_decoded_frame(), and show_stream().
const char* filter_descr = "aresample=8000,aconvert=s16:mono" |
Definition at line 46 of file filtering_audio.c.
AVFormatContext* fmt_ctx [static] |
Definition at line 42 of file filtering_audio.c.
Referenced by close_input_file(), main(), open_input_file(), and probe_file().
const char* player = "ffplay -f s16le -ar 8000 -ac 1 -" |