LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2014, 03:22 AM   #1
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Rep: Reputation: 13
M4B to MP3 Convertion


Hi there,

I've got some M4b files I would like to convert to Mp3. I've searched and found this little piece of code
Code:
faad --stdio DTF.m4b | lame --preset standard - DTF.mp3
But it only returns this:
Code:
Unable to find correct AAC sound track in the MP4 file.
Warning: unsupported audio format
Can anyone offer any help or advice?

Thanks
 
Old 08-03-2014, 12:29 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
You can give VLC a try. It looks like there is no need to convert the file, VLC can play .M4A and .M4B formats. See this link.

-->http://www.fileinfo.com/software/vid...c_media_player
 
Old 08-03-2014, 03:39 PM   #3
David.V
LQ Newbie
 
Registered: Jul 2014
Location: USA
Distribution: Mint 17
Posts: 15

Rep: Reputation: Disabled
@ NotAComputerGuy

ffmpeg can decode m4a files quite easily. But, I'm sure about m4b. It depends on the version of ffmpeg and what decoders/encoders was compiled into the binary.

You can check the decoders/encoders used by ffmpeg by typing this at the terminal

Code:
ffmpeg -formats | egrep -i 'm4a|m4b'
To convert m4a files, type this

Code:
ffmpeg -i input_file.m4a -acodec libmp3lame output_file.mp3
Ffmpeg will use the audio values of the input file for the mp3 file, If you want to change the audio quality of the mp3 file, you can use these switches

-ab = audio bitrate # example -ab 192k
-ar = audio frequency # example -ar 48000
-ac = audio channels # example -ac 2

Note: On some distros, ffmpeg is depreciated and avconv is the replacement for it. However, avconv is compatible with ffmpeg switches as well.

Last edited by David.V; 08-03-2014 at 03:46 PM.
 
Old 08-11-2014, 11:54 AM   #4
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
I found the problem to this. Stupidly I bought them from a legitimate source: iTunes. This means I'm not allowed to use them with any other device. It's the DRM that means I cannot change the format.
 
Old 08-11-2014, 12:59 PM   #5
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Also note that iTunes watermarks files e.g. you should be able to hear a faint hissing noise in the background, this would be your identifying info embedded into the audio.
 
1 members found this post helpful.
Old 08-11-2014, 01:01 PM   #6
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
Wonderful to know! I'm sure that illegitimate sources of media wouldn't have this.
 
  


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
bash/sh mp3 to m4b script mstaaf Linux - General 1 04-30-2012 11:53 AM
Convert m4b to mp3 (batch) SSamiK Linux - Software 5 03-31-2012 12:55 PM
Converting m4b to mp3, error with libmp3lame aphesia Linux - Software 1 01-14-2011 08:57 AM
Convert mp3 to m4b (aac) merixon Linux - Software 1 01-18-2006 04:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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