RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Joining MP3 music files to a single track

Joining MP3 files can be rather simple task with a cat command. Suppose we have a directory with multiple MP3 files. The following cat command will join all MP3 files in a current directory to a single file called out.mp3:

$ cat *.mp3 > out.mp3

If we wish to join only specific files we can name them on a command line separately:

$ cat file1.mp3 file2.mp3 > out.mp3

NOTE: You will lose all tags such as artist, album which are related to each track.

This approach is good if all of your MP3 files are from the same album which means that there is a good change that they all have same volume settings. If we wish to join MP3 files with different volume setting we first need to perform normalization first, so there will be no sudden volume spikes between tracks:

$ normalize-mp3 *.mp3

In case you do not have normalize-mp3 command available but you only have normalize or normalize-audio command you need to first convert all MP3 files to a wav format:

$ for i in $( ls *.mp3); do ffmpeg -i $i $i.wav; done

Next normalize all volume settings for each wav file:

$ normalize-audio *.wav

Now we either convert all files to MP3 and join them with cat command or we can use sox command to join all wav files to a single file and then convert it to MP3 format:

$ sox file1.wav file2.wav file3.wav out.wav

And now convert the out.wav file to mp3 with ffmpeg:

$ ffmpeg -i out.wav -acodec libmp3lame out.mp3

Share this linux post:

Submit Joining MP3 music files to a single track in Delicious Submit Joining MP3 music files to a single track in Digg Submit Joining MP3 music files to a single track in FaceBook Submit Joining MP3 music files to a single track in Google Bookmarks Submit Joining MP3 music files to a single track in Stumbleupon Submit Joining MP3 music files to a single track in Technorati Submit Joining MP3 music files to a single track in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download