LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   change .wav to another format (https://www.linuxquestions.org/questions/linux-software-2/change-wav-to-another-format-4175426237/)

Pedroski 09-08-2012 07:56 AM

change .wav to another format
 
Hi, I have a CD full of .wav files to go with a 'Learn German' book. I want to put them on my laptop. I think it is better to change the format to .ogg or .mp3, one that is less memory consuming I believe.

Can you please tell me how to do this?

bigrigdriver 09-08-2012 10:15 AM

Search the web for information about "liux cd ripping software". You will find many; one or more are available in the Ubuntu repository.

To rip the cd, set up the ripper for the type of file on the cd (in your case, .wav) and for the type of file to save to disk (.ogg or .mp3), then start the rip.

Pedroski 09-08-2012 05:16 PM

I was thinking more of a command line entry, you know, like:

wav2ogg /german/*.wav /german/ogg/

I'm sure there is such a program, but I can't remember the exact name!

bigrigdriver 09-08-2012 07:47 PM

Have you tried searching the internet for "linux command line audio cd ripper"?

Pedroski 09-08-2012 07:59 PM

Nope, sorry! When I have Linux questions, I generally come here first. The people here know a lot about Linux!

teckk 09-08-2012 09:22 PM

http://linux.die.net/man/1/lame
http://linux.die.net/man/1/ffmpeg
Code:

lame (options here) input.wav output.mp3
Code:

ffmpeg -i input.wav -vn -acodec libmp3lame -b:a 192k output.mp3

Pedroski 09-08-2012 10:29 PM

That's what I meant. Thanks. If I can use the command line, I feel like I know something about computers! (I don't of course!)

teckk 09-09-2012 01:14 PM

Mencoder will also do audio only encoding. Something that alluded me for a while.
Notice that the input file is given twice, after -audiofile and after -rawvideo
Code:

mencoder -audiofile /path/to/input.wav -demuxer rawvideo -rawvideo w=1:h=1 /path/to/input.wav -ovc copy -oac mp3lame -lameopts cbr:br=192 -of rawaudio -o output.mp3

cascade9 09-16-2012 06:11 AM

Quote:

Originally Posted by Pedroski (Post 4775930)
That's what I meant. Thanks. If I can use the command line, I feel like I know something about computers! (I don't of course!)

LOL. I'd suggest avoiding command line rippers. They dont make life any eaiser, and if you dont actually know about the codecs and bitrates they can make things more complicated.

A nice GUI CD ripper is easy to get, lets you select the output codec (eg ogg vorbis) and bitrate (bigger the bitrate, the better the quality).

DJ Shaji 09-16-2012 07:37 AM

Quote:

Originally Posted by cascade9 (Post 4781526)
LOL. I'd suggest avoiding command line rippers. They dont make life any eaiser, and if you dont actually know about the codecs and bitrates they can make things more complicated.

A nice GUI CD ripper is easy to get, lets you select the output codec (eg ogg vorbis) and bitrate (bigger the bitrate, the better the quality).

A GUI ripper / encoder is probably a front end to some command line tool. So what's the harm in taking out the middleman and doing the thing yourself? You'll even get to learn a little something in the process.

Generally, every program comes with sane defaults, so doing
Code:

lame file.wav
would be enough for most situations.

Adding a bitrate is as simple as
Code:

lame -b 256 file.wav
Where lies the difficultiness ?

cascade9 09-18-2012 04:56 AM

Quote:

Originally Posted by DJ Shaji (Post 4781562)
A GUI ripper / encoder is probably a front end to some command line tool. So what's the harm in taking out the middleman and doing the thing yourself? You'll even get to learn a little something in the process.

Yeah, they are front-ends for command line tools. BTW, at least one of the GUIs has features that (AFAIK) you cant get with the command line version. Rubyripper, its a front-end for cdparanoia, but has is own secure ripping algorithm. ;)

How is copying a command without knowing anything much about what is happening going to help learning anything?

Quote:

Originally Posted by DJ Shaji (Post 4781562)
Adding a bitrate is as simple as
Code:

lame -b 256 file.wav
Where lies the difficultiness ?

Yeah, thats all well and good if you want a LAME MP3 'the defaults are fine' or 256k CBR file.

If you want ogg vorbis? Go find another command. Want flac? Go find another command. Want to have the output files in a different place to the input? Go find another command.

Using the command line if great, IF you know what you are doing, and remember all the commands.

For people that dont know what they are doing, or have an idea of what they are doing but arent sure about all the options available, GUIs can have an advantage.


All times are GMT -5. The time now is 11:09 AM.