View previous topic :: View next topic |
Author |
Message |
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Tue Jan 03, 2006 3:19 am Post subject: script for concatenating audio tracks? |
|
|
Hi,
Anyone have an automatic way of packing audio tracks ?
Many albums, especially live recordings get stupidly split up with aritificial breaks when remastered for CD release . I hate this, it often ruins the music and the enjoyment of listening to it.
Can anyone suggest a script to pack a series of individual tracks as mp3 into one continuous file.
I imagine uncompressing with mpg123 , stringing the files to gether and recompressing with mp3 or ogg.
I dont care if there is a slight loss of quality as long as I dont have 2s gaps in the cheering between tracks.
Thanks for any tips.
TIA, Gentree. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
tukachinchila Apprentice
Joined: 11 Mar 2005 Posts: 274 Location: Oregon
|
Posted: Tue Jan 03, 2006 7:07 am Post subject: |
|
|
Have you tried `cat'? I know it works with some movie files, but I haven't tried it on mp3s. You could try something like: Code: | cp track1.mp3 track.mp3
cat track2.mp3 >> track.mp3 |
There is also a program called mpeg3cat (comes with media-libs/libmpeg3) for combining movie files, but it may not work with mp3s. Or, the program mp3x (media-sound/lame) might help you out too. |
|
Back to top |
|
|
reynolds531 Apprentice
Joined: 23 Apr 2005 Posts: 260 Location: Rochester, NY
|
Posted: Tue Jan 03, 2006 8:17 pm Post subject: |
|
|
Is there a reason you can't use an audio player with gapless playback? (Maybe this is for a portable mp3 player that doesn't have that option?).
According to this mailing-list posting, xmms can play ogg files without gaps in-between. The posting also says that the windows program foobar2000 can play mp3 files gaplessly. I had no problem installing foobar2000 under wine and it seems to work well (though I've never used the gapless playback feature). |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Tue Jan 03, 2006 8:47 pm Post subject: |
|
|
tukachinchila wrote: | Have you tried `cat'? I know it works with some movie files, but I haven't tried it on mp3s. You could try something like: Code: | cp track1.mp3 track.mp3
cat track2.mp3 >> track.mp3 |
There is also a program called mpeg3cat (comes with media-libs/libmpeg3) for combining movie files, but it may not work with mp3s. Or, the program mp3x (media-sound/lame) might help you out too. |
Thanks I'll look into those suggestions, maybe this is simpler that I thought.
~gary
the trouble with gapless is that if there are other processes running (which there always are since I dont have a 2GHz PC just to play mp3s) there is always some lag while other processes grab a slice of CPU time, it's not just the player sticking a pause in.
As for installing windows software under wine ! If linux could not play an mp3 on its own I would probably go back to windows anyway. Wine is a flakey , unreliable piece of pre-release software with more regreassions that a politicians promiss list.
I am only prepared to put up with the hassle invovled with wine for something really worth the effort and for which there is really no alternative (like voice rec. dictiation) .
Thanks for all your suggestions. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
reynolds531 Apprentice
Joined: 23 Apr 2005 Posts: 260 Location: Rochester, NY
|
Posted: Wed Jan 04, 2006 5:38 am Post subject: |
|
|
Gentree wrote: | As for installing windows software under wine ! If linux could not play an mp3 on its own I would probably go back to windows anyway. Wine is a flakey , unreliable piece of pre-release software with more regreassions that a politicians promiss list.
I am only prepared to put up with the hassle invovled with wine for something really worth the effort and for which there is really no alternative (like voice rec. dictiation) . |
I would have agreed with you until recently, because I usually couldn't get past the installation stage. But I've have great luck with the wine 0.9.x series. Foobar2000 required no configuration, just "wine <installation file>.exe".
Edit: corrected attribution of the quote.
Last edited by reynolds531 on Wed Jan 04, 2006 9:06 pm; edited 1 time in total |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Wed Jan 04, 2006 8:56 pm Post subject: |
|
|
It not that anything has changed , you just got lucky this time. I suggest you tarball the whole ~/.wine installation because next time you touch it the chances are it will be broken. Also do a quickpkg wine.
That way at least you should be able to recreate what you have now.
Wine is impressive when it works but it rarely lasts long. There were some important regreassions again in 0.9.4.
Stick with what you've got and back it all up well. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
Tuna Guru
Joined: 19 Jul 2002 Posts: 485 Location: Berlin
|
Posted: Wed Jan 04, 2006 9:10 pm Post subject: |
|
|
there is also xmms-crossfade. if i am not mistaken it offers an intelligent gap-removal routine on the fly (read: while playing). it basically reads the first few bytes of the next song while the current is still playing. and it then tries to concatenate the sound ouput.. that basically means.. eliminating the gap. just get sure to disable the actual crossfade functionality.
you can then use the file writer to create a master for cd. but for mastering audio cds (i havnt done that under linux) but any decent burn program should be able to give an option to set the track gap. but then again.. im not sure if mastering audio cds was your main goal. |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Thu Jan 05, 2006 11:57 pm Post subject: |
|
|
tukachinchila wrote: | Have you tried `cat'? I know it works with some movie files, but I haven't tried it on mp3s. You could try something like: Code: | cp track1.mp3 track.mp3
cat track2.mp3 >> track.mp3 |
There is also a program called mpeg3cat (comes with media-libs/libmpeg3) for combining movie files, but it may not work with mp3s. Or, the program mp3x (media-sound/lame) might help you out too. |
Well it really was that simple , at least for a quick result.
The file header got a bit mangled and mplayer needed the .mp3 to know what to do with it. The tags seem to have been filled with the info from that last track, but it seems to play with a bearly noticible skip.
Well, actually it's hard to miss but it's very short. That's probably an artifact of the "digital remastering" that I will have to tidy up with an editor if I can be arsed.
I'm still fairly amazed that you can do that with a compressed format.
Thanks again. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
thingfish n00b
Joined: 05 Jan 2006 Posts: 6
|
Posted: Fri Jan 06, 2006 1:32 am Post subject: |
|
|
recording to a CD without 2 second gaps requires DAO mode. Although you could do it with 1 big track as well, I don't think you would be able to skip tracks easily. cdrdao is one way to record this way, but you probably want some type of front end for it, lots of people use k3b |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Fri Jan 06, 2006 9:40 am Post subject: |
|
|
That's the whole bloody problem , there are no tracks , this is one continuous recording that has been artificially chopped up into "tracks" for CD release.
As I posted above I have solved that to the best extent I can without getting into sound editting to repair the damage done by the publisher to the original recorded work.
I never even mentioned recording to CD _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
thingfish n00b
Joined: 05 Jan 2006 Posts: 6
|
Posted: Fri Jan 06, 2006 5:31 pm Post subject: |
|
|
my bad ... I saw the "2 seconds" part and immediately thought about the 2 sec pre-gap on most CD's
sox utility appears to be able to do this via the "silence" option, although the man page is slightly confusing.
try something like
sox <infile> <outfile> silence 0 -1 0:59 2%
to remove the first silence gap it finds in the first 59 minutes. change -1 to -2 for second gap, if I read it correctly. This looks like it would be useful in making sure mp3 files don't have any silence in them before burning a live cd, will check this out myself when I get a chance. |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Thu Jan 26, 2006 12:04 am Post subject: |
|
|
thx , Ill make a note. Let us know how you get on. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
Thnikkaman n00b
Joined: 30 Jun 2004 Posts: 63
|
Posted: Mon Feb 13, 2006 10:03 pm Post subject: |
|
|
I noticed in portage there is a program called mp3wrap. Have you tried that? _________________ while(realavant){
speak();
} |
|
Back to top |
|
|
|