LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 06-01-2007, 11:27 AM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,189

Rep: Reputation: 47
merge wav files


I am using grip to rip my audio cds and later convert to mp3 files. I'm finding that some cds have multiple tracks, so it's ripping track1-track7 as wav files. I want to merge these multiple wav files to 1 big file for each cd. I tried using cat file1.wav file2.wav file3.wav bigfile.wav and got a bunch of strange characters flying by on the screen for a long time and no bigfile.wav was written. I eventually did a CTRL-c and stopped it.

How could I merge these wav files?

Last edited by linuxhippy; 06-01-2007 at 11:34 AM.
 
Old 06-01-2007, 11:43 AM   #2
pusrob
Member
 
Registered: Jan 2006
Distribution: Debian
Posts: 468

Rep: Reputation: 35
Hi.
Did you tried to use Audacity? This is the tool if you wanna create on big wav from many smaller wavs. Audacity has many functions, including direct export to mp3s. It uses lame to code, but only can create constant bitrate mp3s without id3 tags. Use EasyTag for tagging your mp3 files.
 
Old 06-01-2007, 11:53 AM   #3
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Your cat command might have worked, but you need to specify an output file, otherwise cat just spews whatever it's catting to standard output. So, this might have worked:
Code:
cat myfile_1.wav myfile_2.wav ... myfile_n.wav > bigfile.wav
Note: I haven't tested this, but this is why you were getting all those strange characters on your screen.
 
Old 06-01-2007, 12:11 PM   #4
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,189

Original Poster
Rep: Reputation: 47
cat worked...I forgot the > bigfile.wav. I got a file that is equal in size to each smaller file. Unfortunately, when I play it with Amarok or xmms it will only play for ~ 12 minutes. That's the time length of the first small file. Why won't it play the entire file?
 
Old 06-01-2007, 12:18 PM   #5
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Hmmm. Probably because the audio program comes across some code in the merged wave file that it considers to be the end of a file, and so it stops playing it at that point, essentially ignoring everything thereafter.

Google showed me this page of audio tools, one of which (wavbreaker/wavmerge) seems fairly promising.

I'm sure that mencoder (part of mplayer) could do this too, I just don't know how.

edit: or just use audacity as pusrob suggested

Last edited by pwc101; 06-01-2007 at 12:22 PM.
 
Old 06-01-2007, 12:23 PM   #6
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
have a look at sox.

Quote:
sox myfile_1.wav myfile_2.wav ... myfile_n.wav bigfile.wav
could just work.
maybe also of interest is
http://sox.sourceforge.net/Docs/Scripts
 
Old 06-01-2007, 12:30 PM   #7
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Try this:

http://sourceforge.net/projects/wavtools/

"wavmerge: merge several wav-files into one file"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
merge multiple pdf files esteeven Linux - Software 8 11-21-2007 02:59 PM
Can anyone recommend some good software to convert *.wav files into *mp3 files? Tom "Techno" Earl Linux - Software 4 10-12-2006 05:03 PM
merge two files without repeating text pukas Linux - General 0 02-18-2004 08:22 PM
program to split and merge files fuelinux Linux - Software 3 10-25-2003 12:56 PM
[AVI, mencoder, merge files] MrGreg Linux - Software 5 01-02-2003 06:46 AM


All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration