LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-2016, 10:50 AM   #16
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 Fixit7 View Post
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.
It didn't work.

I know that Brasero will automatically convert mp3s to wav files, but I can't tell how many will fit.

Thus I need to convert those mp3s to wave files.
 
Old 09-08-2016, 10:56 AM   #17
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,877
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by Fixit7 View Post
It didn't work.

I know that Brasero will automatically convert mp3s to wav files, but I can't tell how many will fit.

Thus I need to convert those mp3s to wave files.
On Ubuntu you can easily install and use either mpg123 or gnac. Gnac will work through the UI and is very easy to use.

This is a Mint set of instructions but it will work for Ubuntu http://www.everydaylinuxuser.com/201...av-to-mp3.html
 
Old 09-08-2016, 12:08 PM   #18
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
SOLVED

Thanks.

Quote:
for file in ./*.mp3
do
#mpg123 -w ./wavs/"${file}".wav "$file"
mpg123 -w "${file}".wav "$file"
done
 
Old 09-08-2016, 01:39 PM   #19
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 264

Rep: Reputation: 58
Quote:
Originally Posted by Fixit7 View Post
I know that Brasero will automatically convert mp3s to wav files, but I can't tell how many will fit.
Thus I need to convert those mp3s to wave files.
It sounds like either a bug in Brasero or mp3's with bad header info (wrong length). An audio CD has a fixed length and the number of tracks that you can burn isn't dependent on the original file format. Or maybe you were trying to burn a data CD with mp3's on it (you never made it clear which you were trying to use).
 
Old 09-08-2016, 03:27 PM   #20
mikew9
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by Fixit7 View Post
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 ?
Quote:
Originally Posted by Fixit7 View Post
It didn't work.

I know that Brasero will automatically convert mp3s to wav files, but I can't tell how many will fit.

Thus I need to convert those mp3s to wave files.
Sorry, to hear that. When I read your post the first time, it appeared to me you wanted to create a mp3 disc to play mp3 files on a cdplayer with mp3 playback capabilities.

I used the iso method to burn mp3 files on the disc and then play on my cd/mp3 walkman. The cd walkman also had an mp3 logo which meant it can play mp3 files on the disc. No conversion necessary. I can put as much as 450 mp3 files on a single disc.

I also used k3b. When I used k3b, you have to select New data project project to make a mp3 disc. Not audio cd project. If you select the new audio project, it will convert the mp3's to wav or cda files.

But, in your case, you needed to to convert your mp3 files to wav or cda files to be played on your player. I believe your cdplayer has no native mp3 playback capabilities. :/

Last edited by mikew9; 09-08-2016 at 03:53 PM.
 
Old 09-08-2016, 05:22 PM   #21
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
No, my player can play mp3s.

It's just I have found no method that can write them and then all of them play.

It's a mystery as to what mp3s will play.
 
Old 09-08-2016, 05:43 PM   #22
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 264

Rep: Reputation: 58
You may want to check your mp3's with mp3val. It could also be that your player doesn't like a certain format of tags (for example, maybe it can't deal with ID3v2.4).
 
Old 09-08-2016, 06:06 PM   #23
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
What am I looking here for ?

Quote:
mp3val *.*
Analyzing file "AbbaDancingQueen.mp3"...
INFO: "/home/andy/Music/AbbaDancingQueen.mp3": 8860 MPEG frames (MPEG 1 Layer III), +ID3v2, Xing header
Done!
Analyzing file "AlabamaIfYoureGonnaPlayInTexas.mp3"...
INFO: "/home/andy/Music/AlabamaIfYoureGonnaPlayInTexas.mp3": 7770 MPEG frames (MPEG 1 Layer III), +ID3v2, CBR
I am assuming that there is a program that can fix it ???

And what is this ?
Quote:
Analyzing file "BillyEliIWontBeWaiting.mp3"...
WARNING: "/home/andy/Music/BillyEliIWontBeWaiting.mp3" (offset 0x2c): MPEG stream error, resynchronized successfully
WARNING: "/home/andy/Music/BillyEliIWontBeWaiting.mp3" (offset 0x214a8d8): Garbage at the end of the file
WARNING: "/home/andy/Music/BillyEliIWontBeWaiting.mp3": Too few MPEG frames (it's unlikely that this is a MPEG audio file)
Many of the songs were converted to mp3 by Audacity, if that helps provide any useful info.

Last edited by Fixit7; 09-08-2016 at 06:07 PM.
 
Old 09-08-2016, 07:20 PM   #24
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
I agree with seasons that it could be a format issue.
The MP3s in the first quote look good, second not so good.

Could be that your car player can not play MP3s using variable bit rate. It is if mp3val outputs Xing or VBR.
Could be file naming or format i.e. using joliet or rock ridge vs sticking with standard ISO9660
Could be bad MP3s like you posted in the second quote.
Could be the player can not handle higher bit rates.
Could be an ID tag problem.

mp3val does have a -f option to attempt a repair.

You will have to determine which MP3s work and check the mp3val output.
 
Old 09-08-2016, 08:04 PM   #25
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
I agree with seasons that it could be a format issue.
The MP3s in the first quote look good, second not so good.

Could be that your car player can not play MP3s using variable bit rate. It is if mp3val outputs Xing or VBR.
Could be file naming or format i.e. using joliet or rock ridge vs sticking with standard ISO9660
Could be bad MP3s like you posted in the second quote.
Could be the player can not handle higher bit rates.
Could be an ID tag problem.

mp3val does have a -f option to attempt a repair.

You will have to determine which MP3s work and check the mp3val output.
Owners manual are very sparse on details.

I will go with burning wav files knowing they will always play.

Even if it means 4 to 20 times the number of CDs I will need.
 
Old 09-11-2016, 11:37 AM   #26
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
It's a mystery as to what mp3s will play.
could this be related to this: https://www.linuxquestions.org/quest...ds-4175587591/
 
Old 09-11-2016, 01:45 PM   #27
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 used this to convert mp3 to wav, but most of the wavs are very shortened versions which are useless. ??

Quote:
for file in ./*.mp3
do
#mpg123 -w ./wavs/"${file}".wav "$file"
mpg123 -w "${file}".wav "$file"
done
 
Old 09-11-2016, 03:43 PM   #28
H.Brice
LQ Newbie
 
Registered: Sep 2016
Distribution: Zorin 9
Posts: 15

Rep: Reputation: Disabled
Maybe you can try using ffmpeg to make stereo 16 bit wav files

Code:
for file in *.mp3
do
ffmpeg -i "${file}" -c:a pcm_s16le "${file%.mp3}.wav"
done
 
Old 09-11-2016, 03:44 PM   #29
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 264

Rep: Reputation: 58
Some ideas:
1. Try --no-gapless option of mpg123
2. Try stripping the tag off before conversion to wav
3. Try it with ffmpeg

Personally, I think you're going about it all wrong though. First, you should figure out whether the results are repeatable. In other words, if you burn a CD with mp3's and some of them don't play, try burning it again. Do the same files not play? You should look at a few files that don't play when you burn them and a few that do. Look at them with mp3val and look at the tags/filenames to see if there's a difference. Or try the same thing with the files you're burning to wav. Is it always the same files that get cut off?
The bottom line is (as programmers say): Garbage In = Garbage Out
 
Old 09-11-2016, 03:49 PM   #30
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 H.Brice View Post
Maybe you can try using ffmpeg to make stereo 16 bit wav files

Code:
for file in *.mp3
do
ffmpeg -i "${file}" -c:a pcm_s16le "${file%.mp3}.wav"
done
Thanks, it worked for two songs.

Will probably work for the balance. :-)
 
  


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
[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 08:59 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