FFmpeg
4.0
|
ALSA input and output: input. More...
#include <alsa/asoundlib.h>
#include "libavutil/internal.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "libavformat/internal.h"
#include "avdevice.h"
#include "alsa.h"
Go to the source code of this file.
Functions | |
static av_cold int | audio_read_header (AVFormatContext *s1) |
static int | audio_read_packet (AVFormatContext *s1, AVPacket *pkt) |
static int | audio_get_device_list (AVFormatContext *h, AVDeviceInfoList *device_list) |
Variables | |
static const AVOption | options [] |
static const AVClass | alsa_demuxer_class |
AVInputFormat | ff_alsa_demuxer |
ALSA input and output: input.
This avdevice decoder can capture audio from 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 capture period is set to the lower value available for the device, which gives a low latency suitable for real-time capture.
The PTS are an Unix time in microsecond.
Due to a bug in the ALSA library (https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4308), this decoder does not work with certain ALSA plugins, especially the dsnoop plugin.
Definition in file alsa_dec.c.
|
static |
Definition at line 60 of file alsa_dec.c.
|
static |
Definition at line 101 of file alsa_dec.c.
|
static |
Definition at line 139 of file alsa_dec.c.
|
static |
Definition at line 144 of file alsa_dec.c.
|
static |
Definition at line 150 of file alsa_dec.c.
AVInputFormat ff_alsa_demuxer |
Definition at line 158 of file alsa_dec.c.