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

Matthieu Bouron matthieu.bouron at gmail.com
Tue Dec 13 16:57:15 CET 2011

Hi there,

Here is a first attempt to write an audio filter which merge two audio streams.
Usage is:
ffplay -f lavfi "amovie=test1.mp3[a];amovie=test2.mp3[b];[a][b]mix=0.7:0.3[out]"

The volume of each streams can be configured and default to 0.5:0.5 is
not specified. It only support two s16 audio streams with same sample
Feel free to comment.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-af_mix-mix-two-audio-streams.patch
Type: text/x-patch
Size: 8864 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111213/60655148/attachment.bin>

More information about the ffmpeg-devel mailing list