[Libav-user] Mixes multiple audio inputs into a single output.

Alan alan.3976 at gmail.com
Thu Jan 24 05:58:55 CET 2013


Dear all,

I'd like to mix two audio into a single output.

But I always got this error

#ffmpeg -i 1.wav -i 2.wav -filter_complex 
amix=inputs=2:duration=first:dropout_transition=2 out.wav


ffmpeg version 0.11.2 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov  5 2012 10:44:13 with gcc 4.7.1 20120723 [gcc-4_7-branch 
revision 189773]                                                    
  configuration: --disable-yasm                                                                                                             
  WARNING: library configuration mismatch                                                                                                   
  avutil      configuration: --prefix=/usr --disable-yasm --enable-shared                                                                   
  avcodec     configuration: --prefix=/usr --disable-yasm --enable-shared                                                                   
  avformat    configuration: --prefix=/usr --disable-yasm --enable-shared                                                                   
  avdevice    configuration: --prefix=/usr --disable-yasm --enable-shared                                                                   
  avfilter    configuration: --prefix=/usr --disable-yasm --enable-shared                                                                   
  swscale     configuration: --prefix=/usr --disable-yasm --enable-shared                                                                   
  swresample  configuration: --prefix=/usr --disable-yasm --enable-shared                                                                   
  libavutil      51. 54.100 / 51. 54.100                                                                                                    
  libavcodec     54. 23.100 / 54. 23.100                                                                                                    
  libavformat    54.  6.100 / 54.  6.100                                                                                                    
  libavdevice    54.  0.100 / 54.  0.100                                                                                                    
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, wav, from '1.wav':
  Duration: 00:00:03.76, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, 
s16, 1411 kb/s
Guessed Channel Layout for  Input Stream #1.0 : stereo
Input #1, wav, from '2.wav':
  Duration: 00:00:03.76, bitrate: 1411 kb/s
    Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, 
s16, 1411 kb/s
[abuffersink @ 0x10dd900] No opaque field provided, an AVABufferSinkParams struct 
is required
Error configuring filter.


If this is not the right place to post this question, please correct me.

Thanks
BRs

Alan


More information about the Libav-user mailing list