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
c23999be
Commit
c23999be
authored
Aug 25, 2015
by
Timothy Gu
Committed by
Luca Barbato
Aug 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv_opt: Add an option that lists all supported hwaccels
Signed-off-by:
Luca Barbato
<
lu_zero@gentoo.org
>
parent
629d4c5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
avconv_opt.c
avconv_opt.c
+14
-0
avconv.texi
doc/avconv.texi
+4
-0
No files found.
avconv_opt.c
View file @
c23999be
...
...
@@ -177,6 +177,18 @@ static double parse_frame_aspect_ratio(const char *arg)
return
ar
;
}
static
int
show_hwaccels
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
)
{
int
i
;
printf
(
"Supported hardware acceleration:
\n
"
);
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
hwaccels
)
-
1
;
i
++
)
{
printf
(
"%s
\n
"
,
hwaccels
[
i
].
name
);
}
printf
(
"
\n
"
);
return
0
;
}
static
int
opt_audio_codec
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
)
{
OptionsContext
*
o
=
optctx
;
...
...
@@ -2446,6 +2458,8 @@ const OptionDef options[] = {
{
"hwaccel_device"
,
OPT_VIDEO
|
OPT_STRING
|
HAS_ARG
|
OPT_EXPERT
|
OPT_SPEC
|
OPT_INPUT
,
{
.
off
=
OFFSET
(
hwaccel_devices
)
},
"select a device for HW acceleration"
,
"devicename"
},
{
"hwaccels"
,
OPT_EXIT
,
{
.
func_arg
=
show_hwaccels
},
"show available HW acceleration methods"
},
{
"autorotate"
,
HAS_ARG
|
OPT_BOOL
|
OPT_SPEC
|
OPT_EXPERT
|
OPT_INPUT
,
{
.
off
=
OFFSET
(
autorotate
)
},
"automatically insert correct rotate filters"
},
...
...
doc/avconv.texi
View file @
c23999be
...
...
@@ -626,6 +626,10 @@ is not specified, the value of the @var{DISPLAY} environment variable is used
For DXVA2, this option should contain the number of the display adapter to use.
If this option is not specified, the default adapter is used.
@end table
@item -hwaccels
List all hardware acceleration methods supported in this build of avconv.
@end table
@section Audio Options
...
...
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