Hi,
I've found examples on how to convert multiple files from one format to another, but not how to append several files into a single file.
I'm trying to convert several wav files to a single mp3 file on Windows XP.
I'm using:
ffmpeg -i *.wav out.mp3
But it is not working, the first wav file simply overwrites the second file, and no mp3 is created.
Any help would be appreciated.
Thanks.
Jim
+ Reply to Thread
Results 1 to 13 of 13
-
-
use the dos copy command
copy /B file1.wav+file2.wav+file3.wav..........+file200.wa v /B newfile.wav"Each problem that I solved became a rule which served afterwards to solve other problems." - Rene Descartes (1596-1650) -
Thanks, but that isn't working either. That will append the wav files into a single file, however, due to the nature of the wav file format the mp3 encoder (a media player) view the file as just the first wav added.
-
You need to join the data in the WAV files. Simply joining the files doesn't quite work, since the first header will still just describe the first set of WAV data.
Most any audio editor can join WAV files. I've even written a command-line application to do it. Mine just joins them two at a time, tedious for joining many WAV files. But it would be easy to generalize it to take any number of names of WAV files to join. -
For joining .WAV files, i use a tool call ADDaWAV. I've added up to 30 .WAV into one. As for converting to mp3, any audio editor should be able to do it.
Mako -
shntool
http://www.etree.org/shnutils/shntool/dist/win32/shntool-3.0.0.zip
shntool join -stdout -o wav -nopad *.wav | ffmpeg -i - -vn -ac 2 -ab 384 -y output.mp3
"filenames can now be sorted automatically using
a natural sorting algorithm, which orders filenames containing numbers the
the same way a human would, e.g. "t1.wav, t2.wav, ... t10.wav" instead of
"t1.wav, t10.wav, t2.wav, ..."" -
Hold on... I'm trying it out right now. Maybe my syntax or source files are bad.
-
LOL
You're probably right, but why do something with a GUI when the command line is so much more PITA ?
Had to use an earlier version of shntool (v2.x), plus ffmpeg didn't like stdin audio, so it has to be done in 2 steps
shntool join -o wav -nopad *.wav
ffmpeg -i joined.wav -ac 2 -ab 320 -y joined.mp3
Similar Threads
-
Convert AND Combine Multiple VCD DAT files to Single Divx/Xvid file
By GrayStrickland in forum Video ConversionReplies: 4Last Post: 17th Aug 2012, 13:23 -
How to Extract /Convert RMVB Audio Files to MP3 or WAV?
By devilcoelhodog in forum AudioReplies: 6Last Post: 28th Dec 2011, 11:07 -
Convert and join multiple m4a in one wav?
By astrosyn in forum AudioReplies: 1Last Post: 17th Nov 2011, 21:38 -
Convert MP3 -> WAV, Copy to HD and RIP
By ctdvd in forum AudioReplies: 4Last Post: 23rd Jan 2010, 07:32 -
need convert from audio caset to wav or mp3
By assi in forum AudioReplies: 6Last Post: 5th Nov 2008, 20:07