LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-08-2012, 07:56 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
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?
 
Old 09-08-2012, 10:15 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
Old 09-08-2012, 05:16 PM   #3
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
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!
 
Old 09-08-2012, 07:47 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Have you tried searching the internet for "linux command line audio cd ripper"?
 
Old 09-08-2012, 07:59 PM   #5
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Nope, sorry! When I have Linux questions, I generally come here first. The people here know a lot about Linux!
 
Old 09-08-2012, 09:22 PM   #6
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,099
Blog Entries: 6

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
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
 
Old 09-08-2012, 10:29 PM   #7
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
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!)
 
Old 09-09-2012, 01:14 PM   #8
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,099
Blog Entries: 6

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
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
 
Old 09-16-2012, 06:11 AM   #9
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Quote:
Originally Posted by Pedroski View Post
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).
 
Old 09-16-2012, 07:37 AM   #10
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
Red face

Quote:
Originally Posted by cascade9 View Post
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 ?
 
Old 09-18-2012, 04:56 AM   #11
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Quote:
Originally Posted by DJ Shaji View Post
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 View Post
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.
 
  


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
Inquiry:How to convert .wav sound files to .gsm format with sox utility hadimotamedi Linux - Newbie 6 04-17-2015 06:34 PM
[SOLVED] change one time format to other format himu3118 Linux - Newbie 4 06-21-2010 07:29 AM
Slack-Current kaudiocreator Default encoder:WAV Can't be change blue900 Slackware 4 07-19-2009 11:34 PM
Unsupported wav format arubin Linux - Software 2 03-28-2005 02:12 AM
Real format to wav? qmon2002 Linux - Software 1 04-15-2004 12:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:45 AM.

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
Open Source Consulting | Domain Registration