[FFmpeg-user] amerge troubles

Craig Murray craigmurray100 at gmail.com
Wed May 30 20:04:44 CEST 2012


I'm trying to use ffmpeg to merge to mp3 files together but I'm having
trouble.  I'm unclear on how to use amerge correctly.

I have two mp3 files, beep-1.mp3 and beep-2.mp3 and I'm trying to
merge them into o.mp3 as an output.  Trying to use the amerge
documentation as an example I've done this:


ffmpeg -f lavfi -i amovie=beep-1.mp3 [l]; amovie=beep-2.mp3 [r]; [l][r] amerge

result:

ffmpeg version N-38292-ga4c22e3 Copyright (c) 2000-2012 the FFmpeg developers
 built on Feb 27 2012 14:50:39 with gcc 4.6.2
 configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib
--enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libfreetype --enable-libgsm --enable-libmp3lame
--enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
 libavutil      51. 41.100 / 51. 41.100
 libavcodec     54.  4.100 / 54.  4.100
 libavformat    54.  1.100 / 54.  1.100
 libavdevice    53.  4.100 / 53.  4.100
 libavfilter     2. 62.101 /  2. 62.101
 libswscale      2.  1.100 /  2.  1.100
 libswresample   0.  7.100 /  0.  7.100
 libpostproc    52.  0.100 / 52.  0.100
[mp3 @ 01D9A800] Estimating duration from bitrate, this may be inaccurate
[amovie @ 01D9A560] seek_point:0 format_name:(null)
file_name:beep-1.mp3 stream_index:0
[lavfi @ 01D99AA0] Estimating duration from bitrate, this may be inaccurate
Input #0, lavfi, from 'amovie=beep-1.mp3':
 Duration: N/A, start: 0.000000, bitrate: 705 kb/s
   Stream #0:0: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
[NULL @ 01D9FA20] Unable to find a suitable output format for '[l];'
[l];: Invalid argument


More information about the ffmpeg-user mailing list