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
92104600
Commit
92104600
authored
Mar 28, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmdutils: allow -h filter=<name> to print information about a filter.
parent
e19e8aee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
cmdutils.c
cmdutils.c
+40
-0
avtools-common-opts.texi
doc/avtools-common-opts.texi
+4
-0
No files found.
cmdutils.c
View file @
92104600
...
...
@@ -1268,6 +1268,44 @@ static void show_help_muxer(const char *name)
show_help_children
(
fmt
->
priv_class
,
AV_OPT_FLAG_ENCODING_PARAM
);
}
static
void
show_help_filter
(
const
char
*
name
)
{
const
AVFilter
*
f
=
avfilter_get_by_name
(
name
);
int
i
,
count
;
if
(
!
name
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"No filter name specified.
\n
"
);
return
;
}
else
if
(
!
f
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Unknown filter '%s'.
\n
"
,
name
);
return
;
}
printf
(
"Filter %s [%s]:
\n
"
,
f
->
name
,
f
->
description
);
printf
(
" Inputs:
\n
"
);
count
=
avfilter_pad_count
(
f
->
inputs
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
printf
(
" %d %s (%s)
\n
"
,
i
,
avfilter_pad_get_name
(
f
->
inputs
,
i
),
media_type_string
(
avfilter_pad_get_type
(
f
->
inputs
,
i
)));
}
if
(
f
->
flags
&
AVFILTER_FLAG_DYNAMIC_INPUTS
)
printf
(
" dynamic (depending on the options)
\n
"
);
printf
(
" Outputs:
\n
"
);
count
=
avfilter_pad_count
(
f
->
outputs
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
printf
(
" %d %s (%s)
\n
"
,
i
,
avfilter_pad_get_name
(
f
->
outputs
,
i
),
media_type_string
(
avfilter_pad_get_type
(
f
->
outputs
,
i
)));
}
if
(
f
->
flags
&
AVFILTER_FLAG_DYNAMIC_OUTPUTS
)
printf
(
" dynamic (depending on the options)
\n
"
);
if
(
f
->
priv_class
)
show_help_children
(
f
->
priv_class
,
AV_OPT_FLAG_VIDEO_PARAM
|
AV_OPT_FLAG_AUDIO_PARAM
);
}
int
show_help
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
)
{
char
*
topic
,
*
par
;
...
...
@@ -1288,6 +1326,8 @@ int show_help(void *optctx, const char *opt, const char *arg)
show_help_demuxer
(
par
);
}
else
if
(
!
strcmp
(
topic
,
"muxer"
))
{
show_help_muxer
(
par
);
}
else
if
(
!
strcmp
(
topic
,
"filter"
))
{
show_help_filter
(
par
);
}
else
{
show_help_default
(
topic
,
par
);
}
...
...
doc/avtools-common-opts.texi
View file @
92104600
...
...
@@ -74,6 +74,10 @@ Print detailed information about the demuxer named @var{demuxer_name}. Use the
Print detailed information about the muxer named @var{muxer_name}. Use the
@option{-formats} option to get a list of all muxers and demuxers.
@item filter=@var{filter_name}
Print detailed information about the filter name @var{filter_name}. Use the
@option{-filters} option to get a list of all filters.
@end table
@item -version
...
...
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