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
4ecfb91b
Commit
4ecfb91b
authored
Mar 03, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/ffmpeg.texi: apply misc fixes to the -map_channel documentation
parent
bf807a5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
ffmpeg.texi
doc/ffmpeg.texi
+10
-11
No files found.
doc/ffmpeg.texi
View file @
4ecfb91b
...
...
@@ -798,7 +798,7 @@ Note that using this option disables the default mappings for this output file.
@item -map
_
channel [@var
{
input
_
file
_
id
}
.@var
{
stream
_
specifier
}
.@var
{
channel
_
id
}
|-1][:@var
{
output
_
file
_
id
}
.@var
{
stream
_
specifier
}
]
Map an audio channel from a given input to an output. If
@var
{
output
_
file
_
id
}
.@var
{
stream
_
specifier
}
are
not set, the audio channel will
@var
{
output
_
file
_
id
}
.@var
{
stream
_
specifier
}
is
not set, the audio channel will
be mapped on all the audio streams.
Using "-1" instead of
...
...
@@ -820,18 +820,18 @@ The order of the "-map_channel" option specifies the order of the channels in
the output stream. The output channel layout is guessed from the number of
channels mapped (mono if one "-map
_
channel", stereo if two, etc.). Using "-ac"
in combination of "-map
_
channel" makes the channel gain levels to be updated if
channel layouts don't match (for instance two "-map
_
channel" options and "-ac
6").
input and output channel layouts don't match (for instance two "-map
_
channel"
options and "-ac
6").
You can also extract each channel of an
@var
{
INPUT
}
to specific outputs; the
following command extract each channel of the
audio stream (file 0, stream 0)
to the respective @var
{
OUTPUT
_
CH0
}
and @var
{
OUTPUT
_
CH1
}
:
You can also extract each channel of an
input to specific outputs; the following
command extracts two channels of the @var
{
INPUT
}
audio stream (file 0, stream 0)
to the respective @var
{
OUTPUT
_
CH0
}
and @var
{
OUTPUT
_
CH1
}
outputs
:
@example
ffmpeg -i INPUT -map
_
channel 0.0.0 OUTPUT
_
CH0 -map
_
channel 0.0.1 OUTPUT
_
CH1
@end example
The following example split
the channels of a stereo input into streams:
The following example split
s the channels of a stereo input into two separate
streams, which are put into the same output file:
@example
ffmpeg -i stereo.wav -map 0:0 -map 0:0 -map
_
channel 0.0.0:0.0 -map
_
channel 0.0.1:0.1 -y out.ogg
@end example
...
...
@@ -841,14 +841,13 @@ input stream; you can't for example use "-map_channel" to pick multiple input
audio channels contained in different streams (from the same or different files)
and merge them into a single output stream. It is therefore not currently
possible, for example, to turn two separate mono streams into a single stereo
stream. However spliting a stereo stream into two single channel mono streams
stream. However split
t
ing a stereo stream into two single channel mono streams
is possible.
If you need this feature, a possible workaround is to use the @emph
{
amerge
}
filter. For example, if you need to merge a media (here @file
{
input.mkv
}
) with 2
mono audio streams into one single stereo channel audio stream (and keep the
video stream):
video stream), you can use the following command:
@example
ffmpeg -i input.mkv -f lavfi -i "
amovie=input.mkv:si=1 [a1];
...
...
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