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
d055c328
Commit
d055c328
authored
Jan 10, 2012
by
Clément Bœsch
Committed by
Clément Bœsch
Feb 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: document amerge filter as an alternative for the -map_channel limitation.
parent
b90d79ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
ffmpeg.texi
doc/ffmpeg.texi
+12
-0
filters.texi
doc/filters.texi
+17
-0
No files found.
doc/ffmpeg.texi
View file @
d055c328
...
@@ -835,6 +835,18 @@ possible, for example, to turn two separate mono streams into a single stereo
...
@@ -835,6 +835,18 @@ 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 spliting a stereo stream into two single channel mono streams
is possible.
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):
@example
ffmpeg -i input.mkv -f lavfi -i "
amovie=input.mkv:si=1 [a1];
amovie=input.mkv:si=2 [a2];
[a1][a2] amerge" -c:a pcm
_
s16le -c:v copy output.mkv
@end example
@item -map
_
metadata[:@var
{
metadata
_
spec
_
out
}
] @var
{
infile
}
[:@var
{
metadata
_
spec
_
in
}
] (@emph
{
output,per-metadata
}
)
@item -map
_
metadata[:@var
{
metadata
_
spec
_
out
}
] @var
{
infile
}
[:@var
{
metadata
_
spec
_
in
}
] (@emph
{
output,per-metadata
}
)
Set metadata information of the next output file from @var
{
infile
}
. Note that
Set metadata information of the next output file from @var
{
infile
}
. Note that
those are file indices (zero-based), not filenames.
those are file indices (zero-based), not filenames.
...
...
doc/filters.texi
View file @
d055c328
...
@@ -189,6 +189,23 @@ Example: merge two mono files into a stereo stream:
...
@@ -189,6 +189,23 @@ Example: merge two mono files into a stereo stream:
amovie=left.wav [l] ; amovie=right.mp3 [r] ; [l] [r] amerge
amovie=left.wav [l] ; amovie=right.mp3 [r] ; [l] [r] amerge
@end example
@end example
If you need to do multiple merges (for instance multiple mono audio streams in
a single video media), you can do:
@example
ffmpeg -f lavfi -i "
amovie=input.mkv:si=0 [a0];
amovie=input.mkv:si=1 [a1];
amovie=input.mkv:si=2 [a2];
amovie=input.mkv:si=3 [a3];
amovie=input.mkv:si=4 [a4];
amovie=input.mkv:si=5 [a5];
[a0][a1] amerge [x0];
[x0][a2] amerge [x1];
[x1][a3] amerge [x2];
[x2][a4] amerge [x3];
[x3][a5] amerge" -c:a pcm_s16le output.mkv
@end example
@section anull
@section anull
Pass the audio source unchanged to the output.
Pass the audio source unchanged to the output.
...
...
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