Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
9ab221f8
Commit
9ab221f8
authored
Apr 11, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: deprecate aconvert.
This filter is not required anymore with aformat. Drop it at next bump.
parent
71ef1ec7
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
5 deletions
+16
-5
filtering_audio.c
doc/examples/filtering_audio.c
+1
-1
faq.texi
doc/faq.texi
+3
-3
filters.texi
doc/filters.texi
+2
-0
af_aconvert.c
libavfilter/af_aconvert.c
+2
-0
allfilters.c
libavfilter/allfilters.c
+2
-0
avfilter.c
libavfilter/avfilter.c
+2
-0
avfiltergraph.h
libavfilter/avfiltergraph.h
+1
-1
version.h
libavfilter/version.h
+3
-0
No files found.
doc/examples/filtering_audio.c
View file @
9ab221f8
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
#include <libavfilter/buffersink.h>
#include <libavfilter/buffersink.h>
#include <libavfilter/buffersrc.h>
#include <libavfilter/buffersrc.h>
const
char
*
filter_descr
=
"aresample=8000,a
convert=s16:
mono"
;
const
char
*
filter_descr
=
"aresample=8000,a
format=sample_fmts=s16:channel_layouts=
mono"
;
const
char
*
player
=
"ffplay -f s16le -ar 8000 -ac 1 -"
;
const
char
*
player
=
"ffplay -f s16le -ar 8000 -ac 1 -"
;
static
AVFormatContext
*
fmt_ctx
;
static
AVFormatContext
*
fmt_ctx
;
...
...
doc/faq.texi
View file @
9ab221f8
...
@@ -393,17 +393,17 @@ Appending @code{:v} to it will do exactly that.
...
@@ -393,17 +393,17 @@ Appending @code{:v} to it will do exactly that.
Use @option
{
-dumpgraph -
}
to find out exactly where the channel layout is
Use @option
{
-dumpgraph -
}
to find out exactly where the channel layout is
lost.
lost.
Most likely, it is through @code
{
auto-inserted a
convert
}
. Try to understand
Most likely, it is through @code
{
auto-inserted a
resample
}
. Try to understand
why the converting filter was needed at that place.
why the converting filter was needed at that place.
Just before the output is a likely place, as @option
{
-f lavfi
}
currently
Just before the output is a likely place, as @option
{
-f lavfi
}
currently
only support packed S16.
only support packed S16.
Then insert the correct @code
{
a
conver
t
}
explicitly in the filtergraph,
Then insert the correct @code
{
a
forma
t
}
explicitly in the filtergraph,
specifying the exact format.
specifying the exact format.
@example
@example
a
convert=s16:stereo:packed
a
format=sample
_
fmts=s16:channel
_
layouts=stereo
@end example
@end example
@section Why does FFmpeg not see the subtitles in my VOB file?
@section Why does FFmpeg not see the subtitles in my VOB file?
...
...
doc/filters.texi
View file @
9ab221f8
...
@@ -283,6 +283,8 @@ Below is a description of the currently available audio filters.
...
@@ -283,6 +283,8 @@ Below is a description of the currently available audio filters.
Convert the input audio format to the specified formats.
Convert the input audio format to the specified formats.
@emph{This filter is deprecated. Use @ref{aformat} instead.}
The filter accepts a string of the form:
The filter accepts a string of the form:
"@var{sample_format}:@var{channel_layout}".
"@var{sample_format}:@var{channel_layout}".
...
...
libavfilter/af_aconvert.c
View file @
9ab221f8
...
@@ -45,6 +45,8 @@ static av_cold int init(AVFilterContext *ctx, const char *args0)
...
@@ -45,6 +45,8 @@ static av_cold int init(AVFilterContext *ctx, const char *args0)
int
ret
=
0
;
int
ret
=
0
;
char
*
args
=
av_strdup
(
args0
);
char
*
args
=
av_strdup
(
args0
);
av_log
(
ctx
,
AV_LOG_WARNING
,
"This filter is deprecated, use aformat instead
\n
"
);
aconvert
->
out_sample_fmt
=
AV_SAMPLE_FMT_NONE
;
aconvert
->
out_sample_fmt
=
AV_SAMPLE_FMT_NONE
;
aconvert
->
out_chlayout
=
0
;
aconvert
->
out_chlayout
=
0
;
...
...
libavfilter/allfilters.c
View file @
9ab221f8
...
@@ -45,7 +45,9 @@ void avfilter_register_all(void)
...
@@ -45,7 +45,9 @@ void avfilter_register_all(void)
return
;
return
;
initialized
=
1
;
initialized
=
1
;
#if FF_API_ACONVERT_FILTER
REGISTER_FILTER
(
ACONVERT
,
aconvert
,
af
);
REGISTER_FILTER
(
ACONVERT
,
aconvert
,
af
);
#endif
REGISTER_FILTER
(
AFADE
,
afade
,
af
);
REGISTER_FILTER
(
AFADE
,
afade
,
af
);
REGISTER_FILTER
(
AFORMAT
,
aformat
,
af
);
REGISTER_FILTER
(
AFORMAT
,
aformat
,
af
);
REGISTER_FILTER
(
ALLPASS
,
allpass
,
af
);
REGISTER_FILTER
(
ALLPASS
,
allpass
,
af
);
...
...
libavfilter/avfilter.c
View file @
9ab221f8
...
@@ -675,7 +675,9 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options,
...
@@ -675,7 +675,9 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options,
// TODO: drop me
// TODO: drop me
static
const
char
*
const
filters_left_to_update
[]
=
{
static
const
char
*
const
filters_left_to_update
[]
=
{
"abuffer"
,
"abuffer"
,
#if FF_API_ACONVERT_FILTER
"aconvert"
,
"aconvert"
,
#endif
"atempo"
,
"atempo"
,
"buffer"
,
"buffer"
,
"mp"
,
"mp"
,
...
...
libavfilter/avfiltergraph.h
View file @
9ab221f8
...
@@ -98,7 +98,7 @@ int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt,
...
@@ -98,7 +98,7 @@ int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt,
* Enable or disable automatic format conversion inside the graph.
* Enable or disable automatic format conversion inside the graph.
*
*
* Note that format conversion can still happen inside explicitly inserted
* Note that format conversion can still happen inside explicitly inserted
* scale and a
convert
filters.
* scale and a
resample
filters.
*
*
* @param flags any of the AVFILTER_AUTO_CONVERT_* constants
* @param flags any of the AVFILTER_AUTO_CONVERT_* constants
*/
*/
...
...
libavfilter/version.h
View file @
9ab221f8
...
@@ -66,5 +66,8 @@
...
@@ -66,5 +66,8 @@
#ifndef FF_API_OLD_FILTER_OPTS
#ifndef FF_API_OLD_FILTER_OPTS
#define FF_API_OLD_FILTER_OPTS (LIBAVFILTER_VERSION_MAJOR < 4)
#define FF_API_OLD_FILTER_OPTS (LIBAVFILTER_VERSION_MAJOR < 4)
#endif
#endif
#ifndef FF_API_ACONVERT_FILTER
#define FF_API_ACONVERT_FILTER (LIBAVFILTER_VERSION_MAJOR < 4)
#endif
#endif
/* AVFILTER_VERSION_H */
#endif
/* AVFILTER_VERSION_H */
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