FFmpeg
|
#include <alsa/asoundlib.h>
#include "libavutil/frame.h"
#include "libavutil/internal.h"
#include "libavutil/time.h"
#include "libavformat/internal.h"
#include "libavformat/mux.h"
#include "avdevice.h"
#include "alsa.h"
Go to the source code of this file.
Functions | |
static av_cold int | audio_write_header (AVFormatContext *s1) |
static int | audio_write_packet (AVFormatContext *s1, AVPacket *pkt) |
static int | audio_write_frame (AVFormatContext *s1, int stream_index, AVFrame **frame, unsigned flags) |
static void | audio_get_output_timestamp (AVFormatContext *s1, int stream, int64_t *dts, int64_t *wall) |
static int | audio_get_device_list (AVFormatContext *h, AVDeviceInfoList *device_list) |
Variables | |
static const AVClass | alsa_muxer_class |
const FFOutputFormat | ff_alsa_muxer |
ALSA input and output: output
This avdevice encoder can play audio to an ALSA (Advanced Linux Sound Architecture) device.
The filename parameter is the name of an ALSA PCM device capable of capture, for example "default" or "plughw:1"; see the ALSA documentation for naming conventions. The empty string is equivalent to "default".
The playback period is set to the lower value available for the device, which gives a low latency suitable for real-time playback.
Definition in file alsa_enc.c.
|
static |
Definition at line 52 of file alsa_enc.c.
|
static |
Definition at line 85 of file alsa_enc.c.
Referenced by audio_write_frame().
|
static |
Definition at line 121 of file alsa_enc.c.
|
static |
Definition at line 140 of file alsa_enc.c.
|
static |
Definition at line 150 of file alsa_enc.c.
|
static |
Definition at line 155 of file alsa_enc.c.
const FFOutputFormat ff_alsa_muxer |
Definition at line 162 of file alsa_enc.c.