VideoHelp Forum
+ Reply to Thread
Results 1 to 13 of 13
Thread
  1. Member
    Join Date
    Jan 2007
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  2. Mod Neophyte Super Moderator redwudz's Avatar
    Join Date
    Sep 2002
    Location
    USA
    Search Comp PM
    I use Audacity for that. Add in each file in a separate track, then cut and paste them to a single file. Audacity accepts WAV, MP3, Ogg and AIFF audio formats. It will output MP3 with the addition of the Lame MP3 codec.
    Quote Quote  
  3. Member
    Join Date
    Jan 2007
    Location
    United States
    Search Comp PM
    Thanks for the response, but I'm looking for a method to automate the process, which is why I'm hoping to use the command line ffmpeg tool. I will eventually have many wav files in many directories to convert.

    Thanks.
    Quote Quote  
  4. Член BJ_M's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Search Comp PM
    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)
    Quote Quote  
  5. Member
    Join Date
    Jan 2007
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  6. 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.
    Quote Quote  
  7. Member
    Join Date
    Dec 2003
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  8. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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, ...""
    Quote Quote  
  9. Sweet!
    Quote Quote  
  10. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Hold on... I'm trying it out right now. Maybe my syntax or source files are bad.
    Quote Quote  
  11. Member
    Join Date
    Feb 2004
    Location
    Australia
    Search Comp PM
    So no-one use's besweet's batch mode ?

    It can output them as a single file .
    Quote Quote  
  12. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  13. Member GTRBudda's Avatar
    Join Date
    Jul 2005
    Location
    United States
    Search Comp PM
    Perhaps Winamp's Disk Writer plugin set to single file mode?
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!