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
cba16793
Commit
cba16793
authored
May 29, 2018
by
Gyan Doshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/ffmpeg: update disposition values
Thumbnail example added. Avoid transcoding in older examples.
parent
5717cd80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
ffmpeg.texi
doc/ffmpeg.texi
+11
-2
No files found.
doc/ffmpeg.texi
View file @
cba16793
...
@@ -375,22 +375,31 @@ The following dispositions are recognized:
...
@@ -375,22 +375,31 @@ The following dispositions are recognized:
@item hearing
_
impaired
@item hearing
_
impaired
@item visual
_
impaired
@item visual
_
impaired
@item clean
_
effects
@item clean
_
effects
@item attached
_
pic
@item captions
@item captions
@item descriptions
@item descriptions
@item dependent
@item metadata
@item metadata
@end table
@end table
For example, to make the second audio stream the default stream:
For example, to make the second audio stream the default stream:
@example
@example
ffmpeg -i in.mkv -disposition:a:1 default out.mkv
ffmpeg -i in.mkv -
c copy -
disposition:a:1 default out.mkv
@end example
@end example
To make the second subtitle stream the default stream and remove the default
To make the second subtitle stream the default stream and remove the default
disposition from the first subtitle stream:
disposition from the first subtitle stream:
@example
@example
ffmpeg -i
INPUT -disposition:s:0 0 -disposition:s:1 default OUTPUT
ffmpeg -i
in.mkv -c copy -disposition:s:0 0 -disposition:s:1 default out.mkv
@end example
@end example
To add an embedded cover/thumbnail:
@example
ffmpeg -i in.mp4 -i IMAGE -map 0 -map 1 -c copy -c:v:1 png -disposition:v:1 attached
_
pic out.mp4
@end example
Not all muxers support embedded thumbnails, and those who do, only support a few formats, like JPEG or PNG.
@item -program [title=@var
{
title
}
:][program
_
num=@var
{
program
_
num
}
:]st=@var
{
stream
}
[:st=@var
{
stream
}
...] (@emph
{
output
}
)
@item -program [title=@var
{
title
}
:][program
_
num=@var
{
program
_
num
}
:]st=@var
{
stream
}
[:st=@var
{
stream
}
...] (@emph
{
output
}
)
Creates a program with the specified @var
{
title
}
, @var
{
program
_
num
}
and adds the specified
Creates a program with the specified @var
{
title
}
, @var
{
program
_
num
}
and adds the specified
...
...
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