LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 11-12-2008, 06:51 AM   #1
SSamiK
LQ Newbie
 
Registered: Jan 2008
Distribution: Ubuntu and Gentoo
Posts: 5

Rep: Reputation: 0
Convert m4b to mp3 (batch)


I've got quite a few audio files that are m4b's, and while on an ipod that worked just fine. Now however, I need to be able to listen to those files on a MP3 player that only supports MP3... Is there any way to make a bash script that could convert all m4b files inside a folder into mp3's? I've found a little python program that can convert them to ogg, but that won't do in this case.

Is it simple to modify that program to make mp3's instead?
Here is the original program: http://robert.penz.name/94/convert-m4b-to-ogg-on-linux/
Can a simple bash script do the job, if so how would I do that?

I'm familiar with linux, not so mutch with making scripts....
Any help would be greatly appreciated.
 
Old 11-12-2008, 02:16 PM   #2
rjwilmsi
Member
 
Registered: Mar 2005
Location: UK
Distribution: opensuse 12.2 x86_64
Posts: 563

Rep: Reputation: 38
See http://intuitivenipple.net/10/conver...and-m4b-to-mp3
 
Old 11-13-2008, 05:10 AM   #3
SSamiK
LQ Newbie
 
Registered: Jan 2008
Distribution: Ubuntu and Gentoo
Posts: 5

Original Poster
Rep: Reputation: 0
thank you!
 
Old 12-27-2011, 04:49 AM   #4
igrowingbaby
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Rep: Reputation: Disabled
Just google search Step by Step Guide on How to Convert M4B to MP3 as well as Split M4B with the Powerful M4B to MP3 Converter

you will find a simple solution
 
Old 02-12-2012, 04:45 AM   #5
threaderslash
Member
 
Registered: Dec 2008
Location: HongKong
Distribution: Fedora/Centos/RedHat
Posts: 115

Rep: Reputation: 15
Lightbulb

Recently I have to make a similar file convert. On request, I have to rip the CD music files we have at home, convert and put it up and running as mp3 on iPod.

Using a combination of K3B and VLC conveniently did the trick.

In K3B you have the option: New Audio CD Project. And if it doesn't attend all your needs in terms of formats, you can additionally use the VLC option: Media > Convert Save.

Very functional and out of the box.
 
Old 03-31-2012, 01:55 PM   #6
romanlv
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
bash script

I wrote a small script that does it:

gist.github.com/2267094


----------
mkdir -p mp3s

SAVEIFS=$IFS
IFS=$(echo -en "\n\b")

for i in `find . -type f -iname "*.m4[ab]" -print`; do
echo $i
NAME=`echo $i | sed -e 's/\.\///' -e 's/\.m4b//g' `
echo "doing '$NAME'"
faad --stdio $i | lame --preset standard - "mp3s/${NAME}.mp3"
done

IFS=$SAVEIFS

----------
 
  


Reply

Tags
ffmpeg, mp3


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
i want to convert .wav file into mp3 files in batch mode sparsh Linux - Software 6 11-20-2007 11:53 AM
need a bash script to batch convert .wav to .mp3 nass Slackware 15 06-23-2007 02:00 AM
Batch convert MP3 and AAC files to FLAC burninGpi Linux - General 2 05-07-2007 09:01 PM
Convert mp3 to m4b (aac) merixon Linux - Software 1 01-18-2006 05:17 AM
mp3 batch convert, remote from command line zerodot Linux - Networking 1 02-12-2003 06:08 AM


All times are GMT -5. The time now is 04:04 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration