You are not logged in.

#1 2009-01-23 21:57:21

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Joining .mp3's. Is it a simple cat? [SOLVED]

Could joining to mp3's end on end be as simple as

cat track1.mp3 track2.mp3 > tracka.mp3

Would this work?  Or am I simply looking at this case to kiss smile

Thought I would ask because my 2 files are about 40mb so it could take a while?

Last edited by gazj (2009-01-23 22:22:38)

Offline

#2 2009-01-23 22:01:54

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,940

Re: Joining .mp3's. Is it a simple cat? [SOLVED]

It is a simple cat, and it should be really, really quick.

Offline

#3 2009-01-23 22:11:04

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: Joining .mp3's. Is it a simple cat? [SOLVED]

And people say linux is not user friendly big_smile

Thanks Skottish

Offline

#4 2009-01-23 22:17:41

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,940

Re: Joining .mp3's. Is it a simple cat? [SOLVED]

I wish life were so easy for mp4. It works, but the time stamps get all screwy.

Go ahead and mark this thread as [SOLVED] if your done with it.

Offline

#5 2009-01-23 22:21:15

loudtiger
Member
Registered: 2009-01-08
Posts: 68

Re: Joining .mp3's. Is it a simple cat? [SOLVED]

wow i'm surprised it's that easy. there's no data in the beginning of the file that needs to be moved?

Offline

#6 2009-01-23 22:24:10

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: Joining .mp3's. Is it a simple cat? [SOLVED]

It is solved, Thankyou, as a matter of interest, is there any huge advantages with mp4, and am I going to have problems with mp3 players not being able to play them?

Offline

#7 2009-01-23 22:24:58

haxit
Member
From: /home/haxit
Registered: 2008-03-04
Posts: 1,247
Website

Re: Joining .mp3's. Is it a simple cat? [SOLVED]

loudtiger wrote:

wow i'm surprised it's that easy. there's no data in the beginning of the file that needs to be moved?

Yes, surprisingly easy.  Haven't tested it for speed yet, but could be a very good way to compile full albums into 1 file big_smile


Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.

Offline

#8 2009-01-23 22:25:01

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,940

Re: Joining .mp3's. Is it a simple cat? [SOLVED]

loudtiger wrote:

wow i'm surprised it's that easy. there's no data in the beginning of the file that needs to be moved?

No, but you do lose the tags and such. This also works for mpeg2 video, but A/V sync issues creep in fairly frequently.

Offline

#9 2009-01-23 22:27:11

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: Joining .mp3's. Is it a simple cat? [SOLVED]

haxit wrote:
loudtiger wrote:

wow i'm surprised it's that easy. there's no data in the beginning of the file that needs to be moved?

Yes, surprisingly easy.  Haven't tested it for speed yet, but could be a very good way to compile full albums into 1 file big_smile

It joined my two files in seconds!!

Offline

#10 2009-01-23 22:27:45

haxit
Member
From: /home/haxit
Registered: 2008-03-04
Posts: 1,247
Website

Re: Joining .mp3's. Is it a simple cat? [SOLVED]

gazj wrote:
haxit wrote:
loudtiger wrote:

wow i'm surprised it's that easy. there's no data in the beginning of the file that needs to be moved?

Yes, surprisingly easy.  Haven't tested it for speed yet, but could be a very good way to compile full albums into 1 file big_smile

It joined my two files in seconds!!

Woah. I got to try this!


Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.

Offline

#11 2009-01-24 00:01:43

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,876
Website

Re: Joining .mp3's. Is it a simple cat? [SOLVED]

you should not do this.. the resulting file might play fine, but its broken nonetheless... for obvious reasons:

every mp3 file starts with a header.. using cat to combine them will create a header in the middle of the new file.. I would be very surprised if you wont come into trouble at some time. (mobile devices anyone?)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#12 2009-01-24 00:08:54

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,940

Re: Joining .mp3's. Is it a simple cat? [SOLVED]

Rasi wrote:

you should not do this.. the resulting file might play fine, but its broken nonetheless... for obvious reasons:

every mp3 file starts with a header.. using cat to combine them will create a header in the middle of the new file.. I would be very surprised if you wont come into trouble at some time. (mobile devices anyone?)

That's what happens to mp4 files. It concats them fine, but only the first track will play because the time stamp still exists.

Offline

#13 2009-01-24 00:14:07

quetzyg
Member
From: /home/quetzyg
Registered: 2006-08-03
Posts: 129

Re: Joining .mp3's. Is it a simple cat? [SOLVED]

Just do a pacman -S mp3wrap, and use the right tool for the job.


ZzZz...

Offline

#14 2009-01-24 15:55:25

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: Joining .mp3's. Is it a simple cat? [SOLVED]

mp3splt(notice the missing 'i') is a perfect tool for those tasks . Just read the manual .

extra/mp3splt 2.1c-2 [0.04 MB]
    Comandline tool for splitting mp3 and ogg files without decoding

English is not my native language .

Offline

#15 2009-01-24 16:19:34

akira86
Member
Registered: 2009-01-16
Posts: 118

Re: Joining .mp3's. Is it a simple cat? [SOLVED]

With a simple cat you might have tags in the middle of your mp3 ...

try
strings mon.mp3
and you will see the tags.

so I think that mp3splt or mp3wrap are better solution.

Offline

Board footer

Powered by FluxBB