LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-06-2016, 09:44 PM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
Batch conversion of mp3 to wav


My attempts at writing mp3s to a CD have met with limited success.

Many of them do not play.

I get numbers like song 133, 134 etc.

That many will not fit on a CD.

How can I batch convert those mp3s to wav files ?
 
Old 09-06-2016, 10:03 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Take a look at ffmpeg and mencoder.

Afterthought:

I think there's something more going on here. I've recorded many *.mp3 files to disk and they've always played, unless the blank itself was defective. I've also recorded them for play as audio (CD player) files (which converts them to *.wav, but they are called *.cda files, if I understand how it works correctly).

Last edited by frankbell; 09-06-2016 at 10:09 PM. Reason: More information
 
Old 09-06-2016, 10:06 PM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
https://ubuntuforums.org/showthread.php?t=212079
 
Old 09-07-2016, 12:00 AM   #4
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Originally Posted by frankbell View Post
Take a look at ffmpeg and mencoder.

Afterthought:

I think there's something more going on here. I've recorded many *.mp3 files to disk and they've always played, unless the blank itself was defective. I've also recorded them for play as audio (CD player) files (which converts them to *.wav, but they are called *.cda files, if I understand how it works correctly).
My files burn as mp3s.

And my disks are not defective.

And I am using high quality CDs.
 
Old 09-07-2016, 04:17 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Depends on what you are trying to accomplish. You need to provide more information.

Are you using an application like k3B or Brasero?

MP3s are data files. Depending on the size you can only burn as many files that fit within the limitations of a CD i.e. 700MB. Although MP3 data CDs play on modern commercial units (check the manual) they might require using standard ISO 9660 format naming convention versus rock ridge or joliet extension. If playing in a car stereo sometimes the manual might be lacking in information and you might need to experiment.

To create an audio CD the MP3s are converted to wave files which can be automatically done by the burning application but you might need to install a plugin. Audio CDs are limited to 80 minutes of music. If using one of the applications above you need to select an audio project.

Last edited by michaelk; 09-07-2016 at 04:40 AM.
 
Old 09-07-2016, 07:51 AM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Because you're burning them as data versus creating an audio CD. When you use the wizard, tell it you are creating an audio CD.
Quote:
Originally Posted by michaelk View Post
Audio CDs are limited to 80 minutes of music.
Back in my day when we walked uphill both ways through 2 feet of snow 5 miles to school everyday, it was SEVENTY FIVE minutes!

I had an extremely funny CD years ago when I first burned at like 1x speed. I had a 1 minute screen saver and so it cut in every minute unless I had already moved the mouse. Since this all was new, the screen saver coming on screwed up the CD. Turns out it was David Bowie and track one was Changes. The song was in an infinite seek look, "Still don't ...WAiting for ... ch-ch-ch-c-anges-anges-Changes ... waiting for ... face the ... still don't know wh ...." It never ended and it hopped all over the place. My friend was ecstatic, he was like "You GOTTA give me this CD!!!" I think he still has it.

Sometimes this stuff can be funner than we anticipated!

Last edited by rtmistler; 09-07-2016 at 07:57 AM.
 
Old 09-07-2016, 02:59 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
some audio players can play data disks with hundreds of mp3s on them.
others play only normal cd formst, i.e. wav files. that is limited to ~70-80mins of music.

so, depends on the player, depends on how the cd is created.

but really, i see nothing here that couldn't be fixed with a quick duckduck-
 
Old 09-07-2016, 04:12 PM   #8
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Originally Posted by michaelk View Post
Depends on what you are trying to accomplish. You need to provide more information.

Are you using an application like k3B or Brasero?

MP3s are data files. Depending on the size you can only burn as many files that fit within the limitations of a CD i.e. 700MB. Although MP3 data CDs play on modern commercial units (check the manual) they might require using standard ISO 9660 format naming convention versus rock ridge or joliet extension. If playing in a car stereo sometimes the manual might be lacking in information and you might need to experiment.

To create an audio CD the MP3s are converted to wave files which can be automatically done by the burning application but you might need to install a plugin. Audio CDs are limited to 80 minutes of music. If using one of the applications above you need to select an audio project.
I use Brasero.

By converting to wav files, file size goes up exponentially reducing the number of songs by a factor of at least 3.
 
Old 09-07-2016, 04:48 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
What are you trying to accomplish?

An audio CD is not data nor any sort of filesystem.
https://en.wikipedia.org/wiki/Compac..._Digital_Audio
 
Old 09-07-2016, 06:10 PM   #10
mikew9
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Rep: Reputation: Disabled
@Fixit7

I used this method in the past when I was making mp3 cds. And it worked like a charm. Make sure your player supports mp3 playback. Usually the drive will have a MP3 logo.

First, run cdrecord --scanbus to get the device id number. For example:
Code:
cdrecord --scanbus
scsibus1:
        1,0,0   100) 'Optiarc ' 'DVD RW AD-7203S ' '1-W2' Removable CD-ROM
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *
Mine is at 1,0,0.


Next, make an iso file of the mp3 folder. MAKE SURE THE ISO FILE YOU WILL CREATE IS 4.3GB OR LESS.

Code:
mkisofs -J -o mp3s.iso <path to mp3 folder/files>
Next, burn the iso

Code:
cdrecord dev=1,0,0 speed=16 -eject mp3s.iso
Replace 1,0,0 with your dvd/cdrom device address from cdrecord --scanbus output

Hope this helps
 
Old 09-07-2016, 11:31 PM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Fixit7 View Post
By converting to wav files, file size goes up exponentially reducing the number of songs by a factor of at least 3.
depending on the compression of the mp3s, it can be much more than 3.
read my answer, and read the frigging wikipedia article.
 
Old 09-08-2016, 09:49 AM   #12
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Originally Posted by ondoho View Post
depending on the compression of the mp3s, it can be much more than 3.
read my answer, and read the frigging wikipedia article.
Chill dude. :-)
 
Old 09-08-2016, 10:05 AM   #13
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by Fixit7 View Post
I use Brasero.

By converting to wav files, file size goes up exponentially reducing the number of songs by a factor of at least 3.
So what's the endgame here? Do you need assistance with using Brasero to put MP3 files into an audio CD project and audio CD's, or do you wish to convert all MP3 files to WAV files? Probably a variety of player applications will save a loaded MP3 file as WAV. Probably some of the player applications will either do this to multiple files through the UI or will support command line functions to do conversion using the command line. And then you'd write either a script or an expression to perform all the conversions once you're satisfied with test outcomes.
 
Old 09-08-2016, 10:07 AM   #14
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I followed mikew9's suggestion and made an iso of the mp3s and burned it to a CD.

I will test it when I drive somewhere.
 
Old 09-08-2016, 10:41 AM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Ultimately it depends on the capability of your car CD player. Your car manual(s) might have the specifications of the player and maybe some instructions on creating a playable disc.

An burned audio CD-R should be compatible with any player (unless it is really old) but as stated your limited to 80 minutes of music. Just like you would buy one from a music store. The wiki I posted explains how CD audio works. To burn an audio CD in your case the MP3 files need to be converted to a lossless or uncompressed format i.e. a wav file first.
 
  


Reply



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
[SOLVED] Conversion from WAV through CDR to MP3 w1k0 Linux - Software 1 05-21-2011 06:11 PM
need a bash script to batch convert .wav to .mp3 nass Slackware 15 06-23-2007 01:00 AM
shn to mp3/wav conversion linmix Linux - Software 3 06-15-2005 06:33 AM
mp3 to wav conversion jonfa Linux - General 11 06-27-2004 08:26 PM
mpg123 and mp3 to wav conversion knmwt15000 Linux - Newbie 7 03-24-2003 04:04 PM

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

All times are GMT -5. The time now is 04:41 PM.

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