[FFmpeg-user] Concatenate several audio files with FFmpeg, how ?

PyProg PyProg pyprog05 at gmail.com
Fri Oct 19 14:02:20 CEST 2012


2012/10/19 Nicolas George <nicolas.george at normalesup.org>:

> I suspect there is no video in your WAV files, so v=1 is absurd.

You're right !, with v=0 it's good. This is the result:

angelo at angelo-kubuntu:~$
/home/angelo/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -i
"/home/angelo/.ekd_tmp/ekd_angelo/concat_audio/tmp_0_.wav" -i
"/home/angelo/.ekd_tmp/ekd_angelo/concat_audio/tmp_1_.wav" -i
"/home/angelo/.ekd_tmp/ekd_angelo/concat_audio/tmp_2_.wav"
-filter_complex concat=n=3:v=0:a=1 -f wav -vn -y
"/home/angelo/test_concat_audio_ffmpeg.wav"
ffmpeg version N-45086-ged015f6 Copyright (c) 2000-2012 the FFmpeg developers
  built on Oct  6 2012 05:10:52 with gcc 4.6 (Debian 4.6.3-1)
  configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32
--extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static'
--extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static'
--extra-libs='-lxml2 -lexpat -lfreetype' --enable-static
--disable-shared --disable-ffserver --disable-doc --enable-bzlib
--enable-zlib --enable-postproc --enable-runtime-cpudetect
--enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis
--enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype
--enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc
--enable-libvo-amrwbenc --enable-version3 --enable-libvpx
  libavutil      51. 73.102 / 51. 73.102
  libavcodec     54. 63.100 / 54. 63.100
  libavformat    54. 29.105 / 54. 29.105
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 19.102 /  3. 19.102
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[wav @ 0xa1387a0] max_analyze_duration 5000000 reached at 5013333
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, wav, from '/home/angelo/.ekd_tmp/ekd_angelo/concat_audio/tmp_0_.wav':
  Duration: 00:00:05.76, bitrate: 1536 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
stereo, s16, 1536 kb/s
[wav @ 0xa1b72a0] max_analyze_duration 5000000 reached at 5013333
Guessed Channel Layout for  Input Stream #1.0 : stereo
Input #1, wav, from '/home/angelo/.ekd_tmp/ekd_angelo/concat_audio/tmp_1_.wav':
  Duration: 00:04:48.33, bitrate: 1536 kb/s
    Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
stereo, s16, 1536 kb/s
[wav @ 0xa249540] max_analyze_duration 5000000 reached at 5013333
Guessed Channel Layout for  Input Stream #2.0 : stereo
Input #2, wav, from '/home/angelo/.ekd_tmp/ekd_angelo/concat_audio/tmp_2_.wav':
  Duration: 00:02:28.24, bitrate: 1536 kb/s
    Stream #2:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
stereo, s16, 1536 kb/s
Output #0, wav, to '/home/angelo/test_concat_audio_ffmpeg.wav':
  Metadata:
    encoder         : Lavf54.29.105
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
stereo, s16, 1536 kb/s
Stream mapping:
  Stream #0:0 (pcm_s16le) -> concat:in0:a0
  Stream #1:0 (pcm_s16le) -> concat:in1:a0
  Stream #2:0 (pcm_s16le) -> concat:in2:a0
  concat -> Stream #0:0 (pcm_s16le)
Press [q] to stop, [?] for help
size=   82941kB time=00:07:22.35 bitrate=1536.0kbits/s
video:0kB audio:82941kB subtitle:0 global headers:0kB muxing overhead 0.000054%

Thanks a lot !

> Regards,
>
> --
>   Nicolas George

a+

-- 
http://ekd.tuxfamily.org
http://ekdm.wordpress.com
http://glouk.legtux.org/guiescputil
http://lcs.dunois.clg14.ac-caen.fr/~alama/blog
http://www.youtube.com/user/EnKoDeurMixeur
http://lprod.org/wiki/doku.php/video:encodage:avchd_converter


More information about the ffmpeg-user mailing list