View Full Version : [ubuntu] [SOLVED] mixing 2 mp3 file
rahul_bhise
August 14th, 2008, 12:40 PM
i have 2 mp3 file i want to mix it and make it one mp3 file. which application should i use.
ajgreeny
August 14th, 2008, 01:51 PM
Try audacity which can import two or more mp3 files, and other audio file types, and then allows you to move either one separately backwards or forwards so you can have them play together or one after the other. If all you want is to just add one mp3 to another and play more like an album, use mp3wrap. After using this you can then split the mp3s with mp3splt (note there is no i in this applications name) I use them a lot for my mp3 player which seems to play tracks randomly, so I need to join album tracks into one file for some albums where tracks merge one into another.
ryanisablond
August 14th, 2008, 07:24 PM
If you want to dabble in the command line a little bit, the cat command is very powerful and very handy. Basically, it takes multiple files and just sticks them together. Sounds like exactly what you want to do.
It is pretty easy to learn, too. Open up the terminal and do the following:
cd ~/Path/to/your/music
cat file1.mp3 file2.mp3 > name-me.mp3
Navigate to the folder with your music, then use cat with the files you want to join (in order), and replace "name-me" with whatever you want the joined file´s name to be.
The best part about cat is that you can join a couple mp3s or a couple waves. How about a few text files? Simple. :)
Just FYI: there will be no cross-fades between the files, so you might get a pop at the transition. If you are more interested in editing the files, Audacity (as ajgreeny suggested) would be a better choice.
Good luck!
Stochastic
August 14th, 2008, 10:38 PM
ryanisablond, I don't think cat is a very useful tool when working with audio (other than low-level hacks), as it doesn't separate the audiofile header from the actual audio data. Furthermore the OP sounds like he/she wants to MIX the two files together, not JOIN the two files together. For batch file work, try reading up on ecasound.
I'd stick with audacity for the task at hand. There are many other audio editors out there as well, if you don't like audacity.
loboc
August 14th, 2008, 11:15 PM
If you want to dabble in the command line a little bit, the cat command is very powerful and very handy. Basically, it takes multiple files and just sticks them together. Sounds like exactly what you want to do.
It is pretty easy to learn, too. Open up the terminal and do the following:
cd ~/Path/to/your/music
cat file1.mp3 file2.mp3 > name-me.mp3
Navigate to the folder with your music, then use cat with the files you want to join (in order), and replace "name-me" with whatever you want the joined file´s name to be.
The best part about cat is that you can join a couple mp3s or a couple waves. How about a few text files? Simple. :)
Just FYI: there will be no cross-fades between the files, so you might get a pop at the transition. If you are more interested in editing the files, Audacity (as ajgreeny suggested) would be a better choice.
Good luck!
Thats the first thing i tried after reading the thread title you beat me to the post though
rahul_bhise
August 15th, 2008, 03:30 PM
Furthermore the OP sounds like he/she wants to MIX the two files together, not JOIN the two files together.
I'd stick with audacity for the task at hand. There are many other audio editors out there as well, if you don't like audacity.
yes i want to mix it together. my one mp3 has a sound of sea waves and author file has a sound of birds sound. and i want to mix it together so that i can hear both the tracks at same time. and audacity did the job
Try audacity which can import two or more mp3 files, and other audio file types,
thank you. audacity did the job after importing the two files i again exported it to a single file
cd ~/Path/to/your/music
cat file1.mp3 file2.mp3 > name-me.mp3
The best part about cat is that you can join a couple mp3s or a couple waves. How about a few text files? Simple. :)
Good luck!
i didn't now this use of cat command. thanks for information.
Stochastic
August 16th, 2008, 03:38 AM
Another fun cat audio hack is to send files directly to the /dev/dsp device. But that's not normal audio, it's binary file data being sent to your audio device;) (try a .pdf or a .jpg) But now I've drifted off topic.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.