Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
c23999be
Commit
c23999be
authored
9 years ago
by
Timothy Gu
Committed by
Luca Barbato
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
avconv_opt: Add an option that lists all supported hwaccels
Signed-off-by:
Luca Barbato
<
lu_zero@gentoo.org
>
parent
629d4c5b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
avconv_opt.c
+14
-0
14 additions, 0 deletions
avconv_opt.c
doc/avconv.texi
+4
-0
4 additions, 0 deletions
doc/avconv.texi
with
18 additions
and
0 deletions
avconv_opt.c
+
14
−
0
View file @
c23999be
...
@@ -177,6 +177,18 @@ static double parse_frame_aspect_ratio(const char *arg)
...
@@ -177,6 +177,18 @@ static double parse_frame_aspect_ratio(const char *arg)
return
ar
;
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
)
static
int
opt_audio_codec
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
)
{
{
OptionsContext
*
o
=
optctx
;
OptionsContext
*
o
=
optctx
;
...
@@ -2446,6 +2458,8 @@ const OptionDef options[] = {
...
@@ -2446,6 +2458,8 @@ const OptionDef options[] = {
{
"hwaccel_device"
,
OPT_VIDEO
|
OPT_STRING
|
HAS_ARG
|
OPT_EXPERT
|
{
"hwaccel_device"
,
OPT_VIDEO
|
OPT_STRING
|
HAS_ARG
|
OPT_EXPERT
|
OPT_SPEC
|
OPT_INPUT
,
{
.
off
=
OFFSET
(
hwaccel_devices
)
},
OPT_SPEC
|
OPT_INPUT
,
{
.
off
=
OFFSET
(
hwaccel_devices
)
},
"select a device for HW acceleration"
,
"devicename"
},
"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
|
{
"autorotate"
,
HAS_ARG
|
OPT_BOOL
|
OPT_SPEC
|
OPT_EXPERT
|
OPT_INPUT
,
{
.
off
=
OFFSET
(
autorotate
)
},
OPT_EXPERT
|
OPT_INPUT
,
{
.
off
=
OFFSET
(
autorotate
)
},
"automatically insert correct rotate filters"
},
"automatically insert correct rotate filters"
},
...
...
This diff is collapsed.
Click to expand it.
doc/avconv.texi
+
4
−
0
View file @
c23999be
...
@@ -626,6 +626,10 @@ is not specified, the value of the @var{DISPLAY} environment variable is used
...
@@ -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.
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.
If this option is not specified, the default adapter is used.
@end table
@end table
@item -hwaccels
List all hardware acceleration methods supported in this build of avconv.
@end table
@end table
@section Audio Options
@section Audio Options
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment