Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a list audio file paths and extensions in a CSV file that looks like this:

Path        Extension  
~/src/0000  .wav
~/src/0001  .aif
~/src/0002  .wav

I need to run LAME on each file converting it to a standard format. The problem is LAME won't run on a source file without an extension. Is it possible to specify a file extension (as a parameter) without renaming the source file (renaming will be difficult in my case)? My current efforts yield:

> lame ~/src/0000 ~/dst/0000.mp3
Warning: unsupported audio format
share|improve this question
    
What is the output of file ~/src/0000? –  ændrük May 14 '11 at 0:13

2 Answers 2

up vote 3 down vote accepted

It is not true, lame can even read the input file from stdin if you give it - as a name.

Are you sure the input file is in the correct format? You can use the file util to check.

Have you read lame man page to see if some option is required for your input file?

share|improve this answer
    
I concur that lame can read stdin. –  boehj May 14 '11 at 2:51
    
Thanks. I realized it was just my first WAV that had the issue and other files seem to work. –  Kevin Sylvestre May 14 '11 at 18:56

There's another way without renaming the source file: create a symbolic link.

ln -s ~/src/0000 ~/tmp/0000.wav
lame ~/tmp/0000.wav ~/dest/0000.mp3
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.