[FFmpeg-devel] [PATCH] af_mix: mix two audio streams

Clément Bœsch ubitux at gmail.com
Sun Apr 1 11:13:06 CEST 2012

On Sat, Mar 31, 2012 at 07:55:00PM +0200, Nicolas George wrote:
> Le duodi 12 germinal, an CCXX, Matthieu Bouron a écrit :
> > This filter intends to be a simpler alternative to amerge+pan for
> > basic usage in a user's point of view.
> Others might disagree, but I believe the maintenance burden of feature
> duplication far outweighs the benefits for the user.
> > A good example would be adding a background music to a video.
> Assuming the input is stereo, you can do that with
> "[a] [b] amerge, pan=stereo:c0<c0+c2:c1<c1+c3".
> That's not very hard, and a copy-pastable example in the docs does not
> suffer from maintenance problems.

Adding the levels, it begins to look a bit insane IMO.

Maybe the "mix" filter could be added in the "pan" one, so it could use
the internals?

(A pan cmd line could be generated in the mix init func and use amerge

Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120401/a77744c4/attachment.asc>

More information about the ffmpeg-devel mailing list