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
4a60e574
Commit
4a60e574
authored
16 years ago
by
Stefano Sabatini
Browse files
Options
Downloads
Patches
Plain Diff
Document the preset files system.
Originally committed as revision 15563 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
5b9ce252
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/ffmpeg-doc.texi
+34
-0
34 additions, 0 deletions
doc/ffmpeg-doc.texi
with
34 additions
and
0 deletions
doc/ffmpeg-doc.texi
+
34
−
0
View file @
4a60e574
...
...
@@ -780,6 +780,40 @@ Set the maximum demux-decode delay.
Set the initial demux-decode delay.
@end table
@section Preset files
A preset file contains a sequence of @var
{
option
}
=@var
{
value
}
pairs,
one for each line, specifying a sequence of options which would be
awkward to specify on the command line. Lines starting with the hash
('#') character are ignored and are used to provide comments. Check
the @file
{
ffpresets
}
directory in the FFmpeg source tree for examples.
Preset files are specified with the @code
{
vpre
}
, @code
{
apre
}
and
@code
{
spre
}
options. The options specified in a preset file are
applied to the currently selected codec of the same type as specified
by the preset option.
The argument passed to the preset options identifies the preset file
to use according to the following rules.
First ffmpeg searches for a file named @var
{
arg
}
.ffpreset in the
directories @file
{$
HOME
/
.ffmpeg
}
, @file
{
/
usr
/
local
/
share
/
ffmpeg
}
and
@file
{
/
usr
/
share
/
ffmpeg
}
in that order. For example, if the argument
is @code
{
libx
264
-
max
}
, it will search for the file
@file
{
libx
264
-
max.ffpreset
}
.
If no such file is found, then ffmpeg will search for a file named
@var
{
codec
_
name
}
-
@var
{
arg
}
.ffpreset in the above
-
mentioned
directories, where @var
{
codec
_
name
}
is the name of the codec to which
the preset file options will be applied. For example, if you select
the video codec with @code
{
-
vcodec libx
264
}
and use @code
{
-
vpre max
}
,
then it will search for the file @file
{
libx
264
-
max.ffpreset
}
.
Finally, if the above rules failed and the argument specifies an
absolute pathname, ffmpeg will search for that filename. This way you
can specify the absolute and complete filename of the preset file, for
example @file
{
.
/
ffpresets
/
libx
264
-
max.ffpreset
}
.
@node FFmpeg formula evaluator
@section FFmpeg formula evaluator
...
...
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