[FFmpeg-user] Is there a better way to concatenate mp3 files

Cecil Westerhof Cecil at decebal.nl
Sat May 24 15:36:10 CEST 2014


I want to concatenate some YouTube audio files, but because they have
some silence at the end not completely.

The following does what I want:
    ffmpeg \
      -y \
      -i ~/Audio/YouTube/In_The_Hall_Of_The_Mountain_King_by_Grieg.mp3 -t 137 \
      1.mp3
    ffmpeg \
      -y \
      -i ~/Audio/YouTube/Morning_Mood_by_Grieg.mp3                     -t 216 \
       -acodec copy \
      2.mp3
    ffmpeg \
      -y \
      -i "concat:1.mp3|2.mp3" \
      -acodec copy \
      AvondVierdaagseWerkhoven.mp3

But I was wondering if there was a more efficient way?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


More information about the ffmpeg-user mailing list