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-11-2016, 03:52 PM   #31
H.Brice
LQ Newbie
 
Registered: Sep 2016
Distribution: Zorin 9
Posts: 15

Rep: Reputation: Disabled

Quote:
Originally Posted by Fixit7 View Post
Thanks, it worked for two songs.

Will probably work for the balance. :-)
That's good to hear.
 
Old 09-11-2016, 04:07 PM   #32
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
It will take 10 CDs of those wave files as opposed to getting all the mp3s on one CD. :-(

I want to continue investigating why some mp3s play while others do not.

Guess I will start with using file on a batch of ten and looking for a pattern to those that do not play.

I feel this mystery can be solved with some Sherlock Holmes work. :-)
 
Old 09-11-2016, 05:04 PM   #33
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 263

Rep: Reputation: 58
I find misplaced tags to be the biggest culprit of making mp3val complain, even if the tags show up correctly in an audio player program.
There's the whole issue of programs/devices choking on ID3v2.4 (tag your files with ID3v2.3 for best compatibility) because 2.4 allowed putting tags at the end of the file where previous versions wanted the tag at the beginning.
 
Old 09-11-2016, 05:27 PM   #34
H.Brice
LQ Newbie
 
Registered: Sep 2016
Distribution: Zorin 9
Posts: 15

Rep: Reputation: Disabled
Quote:
Originally Posted by Fixit7 View Post
It will take 10 CDs of those wave files as opposed to getting all the mp3s on one CD. :-(

I want to continue investigating why some mp3s play while others do not.

Guess I will start with using file on a batch of ten and looking for a pattern to those that do not play.

I feel this mystery can be solved with some Sherlock Holmes work. :-)
You can try testing other commands for converting audio files to mp3, like ffmpeg and lame.
LAME is a very popular mp3 encoder. Ffmpeg also uses the lame libraries to create mp3 files.

Code:
for file in *.wav
do
lame -m j -b 192 -s 44.1 "${file}"
done
The 192 above is the audio bitrate. You can change this to a lower or higher number.

64 is low quality, but smaller file size. Good for podcasts and speech.
128 is the standard bitrate.
320 is higher quality, but larger file size.

Using ffmpeg

Code:
for file in *.wav
do
ffmpeg -i "${file}" -c:a libmp3lame -ab 192k -ar 44100 "${file%.wav}.mp3"
done
 
Old 09-11-2016, 05:29 PM   #35
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
How do I tag every mp3 as ID 3v2.3 ?

(Most of mine are 2.4.
 
Old 09-11-2016, 05:41 PM   #36
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
These 3 types will not play.

Quote:
BillyJoelUptownGirl.mp3: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz
SimonGarfunkelTheBoxer.mp3: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, Stereo
VillagePeopleMachoMan.mp3: Audio file with ID3 version 2.4.0
 
Old 09-11-2016, 05:48 PM   #37
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
The first one is not mp3, it is uncompressed audio.
Second one is audio stream, probably AAC (also not mp3)
Third one ... dunno what that is, probably not mp3 either, try playing it with mplayer or mpv in a terminal, see what decoder is used.
 
Old 09-11-2016, 06:04 PM   #38
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
How about this version ?

Is the ID3 what indicates it's a real mp3?

Quote:
Billy Joel Uptown Girl with Lyrics.mp3: Audio file with ID3 version 2.4.0
 
Old 09-11-2016, 06:10 PM   #39
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
No, any audio files can have tags, play it at command line as I told, player will tell you what decoder is used.
 
Old 09-11-2016, 06:13 PM   #40
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
See below, an audio file with mp3 extension is played, revealing it actually is ogg vorbis.
Code:
~/audio/Yes $ mpv 01.mp3 
Playing: 01.mp3
 (+) Audio --aid=1 'Survival' (vorbis)
File tags:
 Artist: Yes
 Album: Greatest Hits
 Title: Survival
 Track: 1
AO: [alsa] 48000Hz stereo 2ch float
A: 00:00:06 / 00:06:17 (1%)
 
Old 09-11-2016, 06:23 PM   #41
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 think I have it figured out.

I have some files that have the incorrect extension and some that Audacity did not export correctly as mp3s, and 4KYouTubetoMp3 goofs as well.

I am making progress in correcting those files, but it will take quite a while.
 
Old 09-11-2016, 06:25 PM   #42
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Good job, Watson!
 
Old 09-11-2016, 06:28 PM   #43
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Just for info, MPEG files do play on my CD player as well as Audio file with ID3 version 2.4.0.

Quote:
MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo
 
Old 09-11-2016, 06:31 PM   #44
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 thought I could add files to my CD as data, but ImgBurn makes me blank it each time ?

I want to add 10 files at a time in order to see what works, then add 10 more etc.
 
Old 09-11-2016, 06:37 PM   #45
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
MPEG ADTS, layer III - this is mp3, but it is in special stream format, not all players will play it.
 
  


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 01:32 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