LinuxQuestions.org
Help answer threads with 0 replies.
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, 08:56 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 18.04
Posts: 1,863

Rep: Reputation: 68
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, 11:15 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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, 06:16 PM   #3
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 18.04
Posts: 1,863

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

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

Original Poster
Rep: Reputation: 68
Nope, sorry! When I have Linux questions, I generally come here first. The people here know a lot about Linux!
 
Old 09-08-2012, 10:22 PM   #6
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,080

Rep: Reputation: 862Reputation: 862Reputation: 862Reputation: 862Reputation: 862Reputation: 862Reputation: 862
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, 11:29 PM   #7
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 18.04
Posts: 1,863

Original Poster
Rep: Reputation: 68
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, 02:14 PM   #8
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,080

Rep: Reputation: 862Reputation: 862Reputation: 862Reputation: 862Reputation: 862Reputation: 862Reputation: 862
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, 07: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, 08:37 AM   #10
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 517
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, 05: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 07:34 PM
[SOLVED] change one time format to other format himu3118 Linux - Newbie 4 06-21-2010 08:29 AM
Slack-Current kaudiocreator Default encoder:WAV Can't be change blue900 Slackware 4 07-20-2009 12:34 AM
Unsupported wav format arubin Linux - Software 2 03-28-2005 03:12 AM
Real format to wav? qmon2002 Linux - Software 1 04-15-2004 01:28 PM

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

All times are GMT -5. The time now is 07:55 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