Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
4c66c407
Commit
4c66c407
authored
May 04, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: add an audio buffer source.
parent
720c6b78
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
222 additions
and
20 deletions
+222
-20
filters.texi
doc/filters.texi
+27
-0
allfilters.c
libavfilter/allfilters.c
+4
-0
buffersrc.c
libavfilter/buffersrc.c
+191
-20
No files found.
doc/filters.texi
View file @
4c66c407
...
...
@@ -151,6 +151,33 @@ anullsrc=48000:4
anullsrc=48000:mono
@end example
@section abuffer
Buffer audio frames, and make them available to the filter chain.
This source is not intended to be part of user-supplied graph descriptions but
for insertion by calling programs through the interface defined in
@file{libavfilter/buffersrc.h}.
It accepts the following named parameters:
@table @option
@item time_base
Timebase which will be used for timestamps of submitted frames. It must be
either a floating-point number or in @var{numerator}/@var{denominator} form.
@item sample_rate
Audio sample rate.
@item sample_fmt
Name of the sample format, as returned by @code{av_get_sample_fmt_name()}.
@item channel_layout
Channel layout of the audio data, in the form that can be accepted by
@code{av_get_channel_layout()}.
@end table
All the parameters need to be explicitly defined.
@c man end AUDIO SOURCES
@chapter Audio Sinks
...
...
libavfilter/allfilters.c
View file @
4c66c407
...
...
@@ -95,6 +95,10 @@ void avfilter_register_all(void)
extern
AVFilter
avfilter_vsrc_buffer
;
avfilter_register
(
&
avfilter_vsrc_buffer
);
}
{
extern
AVFilter
avfilter_asrc_abuffer
;
avfilter_register
(
&
avfilter_asrc_abuffer
);
}
{
extern
AVFilter
avfilter_vsink_buffer
;
avfilter_register
(
&
avfilter_vsink_buffer
);
...
...
libavfilter/buffersrc.c
View file @
4c66c407
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment