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

PyProg PyProg pyprog05 at gmail.com
Thu Oct 18 19:47:56 CEST 2012


Hello all,

Is it possible to concatenate several audio files with FFmpeg ?, an how ?

In this example I tried to do it but on arrival there was only the
first audio file (second audio file is not present):

angelo at angelo-kubuntu:~$
/home/angelo/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg -i
concat:"/home/angelo/.ekd_tmp/ekd_angelo/concat_audio/tmp_0_.wav|/home/angelo/.ekd_tmp/ekd_angelo/concat_audio/tmp_1_.wav"
-c copy "/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 @ 0xb5347a0] max_analyze_duration 5000000 reached at 5013333
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, wav, from
'concat:/home/angelo/.ekd_tmp/ekd_angelo/concat_audio/tmp_0_.wav|/home/angelo/.ekd_tmp/ekd_angelo/concat_audio/tmp_1_.wav':
  Duration: 00:02:28.24, bitrate: 1907 kb/s
    Stream #0: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, 1536 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=   27796kB time=00:02:28.24 bitrate=1536.0kbits/s
video:0kB audio:27796kB subtitle:0 global headers:0kB muxing overhead 0.000162%

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