IPB

Welcome Guest ( Log In | Register )

M4B to MP3 (chapter separation), Converting M4B to multiple MP3s taking into account the M4B chapters
jaime11
post Sep 23 2009, 00:23
Post #1





Group: Members
Posts: 3
Joined: 22-September 09
Member No.: 73392



Hello
I have been searching on the forum but haven't found anything. Basicly what I'm looking for is a program that will input a M4B file and output several MP3 files (1 MP3 per chapter in the M4B file).
I have been using Free M4B to MP3 Converter, but unfortunately, all it does is extract a single MP3 from the M4B.

Anyone knows any other programs for this job?

Thank you
Go to the top of the page
+Quote Post
 
Start new topic
Replies
valekhz
post Jan 3 2011, 16:55
Post #2





Group: Members
Posts: 10
Joined: 4-December 10
Member No.: 86227



No problem, I'm glad it worked.

I needed a few more features for myself so I'll release them as v0.5. Changes:
  • More advanced encoding options
  • Drop multiple m4b files onto m4b.py
I also cleaned up and simplified the code which means m4b_half and those modifications will need some changes. But you can safely skip this one if you already have the previous version and don't need the new features. The only thing left on my TODO is making the script work with more python versions than 2.7 but this has a low priority.
Go to the top of the page
+Quote Post
swavek
post Oct 15 2011, 18:58
Post #3





Group: Members
Posts: 1
Joined: 15-October 11
Member No.: 94405



First off, many thanks to valekhz for building this tool. There is only one other program out there that I found (Bigasoft Audio Converter), but it doesn't have command-line support and so this tool still reigns supreme.

In hopes that valekhz is still open to tweaking the tool, I ran into one problem. For some reason, the tool crashes on The Economist podcasts with this message:
Traceback (most recent call last):
File "C:\Programs\Python27\m4b.py", line 337, in <module>
main()
File "C:\Programs\Python27\m4b.py", line 334, in main
split(args, log, output_dir, encoded_file, chapters)
File "C:\Programs\Python27\m4b.py", line 290, in split
chapter_name = unicode(chapter_name, 'utf-8')
UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: invalid start byte

Here is an example file I tried to split: http://dl.dropbox.com/u/19007038/13%20Inte...C%20The%20E.m4a
(I know it's an m4a extension, but the same issue happens on m4b's)

Thanks to valekhz or anyone else who can help with this!
Go to the top of the page
+Quote Post
cynepnaxa
post Jul 15 2012, 02:35
Post #4





Group: Members
Posts: 2
Joined: 15-July 12
Member No.: 101434



Many thanks to valekhz! Note for customers. Valekhz's script is working fine. If smtg not work follow instruction from begin or see run options.

On Ubuntu 12.04 you just run in terminal in any folder:

sudo apt-get install python2.7 ffmpeg libavcodec-extra-53 mp4v2-utils libmp4v2-dev libmp4v2-2 git
git clone https://github.com/valekhz/m4b-converter.git
cd ./m4b-converter
python m4b.py --no-mp4v2 PATH_TO_YOUR_M4B_FILE_ABSOLUTE_OR_RELATIVE_FROM_NEW_DIR_m4b-converter


QUOTE (swavek @ Oct 15 2011, 18:58) *
First off, many thanks to valekhz for building this tool. There is only one other program out there that I found (bigsoftasses Audio Converter), but it doesn't have command-line support and so this tool still reigns supreme.

In hopes that valekhz is still open to tweaking the tool, I ran into one problem. For some reason, the tool crashes on The Economist podcasts with this message:
Traceback (most recent call last):
File "C:\Programs\Python27\m4b.py", line 337, in <module>
main()
File "C:\Programs\Python27\m4b.py", line 334, in main
split(args, log, output_dir, encoded_file, chapters)
File "C:\Programs\Python27\m4b.py", line 290, in split
chapter_name = unicode(chapter_name, 'utf-8')
UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: invalid start byte

Here is an example file I tried to split: http://dl.dropbox.com/u/19007038/13%20Inte...C%20The%20E.m4a
(I know it's an m4a extension, but the same issue happens on m4b's)

Thanks to valekhz or anyone else who can help with this!


--no-mp4v2 works for me
Go to the top of the page
+Quote Post
cynepnaxa
post Jul 17 2012, 01:08
Post #5





Group: Members
Posts: 2
Joined: 15-July 12
Member No.: 101434



QUOTE (cynepnaxa @ Jul 15 2012, 02:35) *
Valekhz's script is working fine.

And soon i found problems with unicode filenames on linux. I fix it, but then i found that it's looks like already fixed in Ramovsky's branch:
https://github.com/ramovsky/m4b-converter
Go to the top of the page
+Quote Post

Posts in this topic
- jaime11   M4B to MP3 (chapter separation)   Sep 23 2009, 00:23
- - DVDdoug   NOTE - I've never seen an M4B file, so maybe s...   Sep 23 2009, 00:53
- - MostlyHarmless   Would you point me to a link with such file (m4b w...   Sep 23 2009, 09:17
- - tedgo   Have you tried foobar2000? It can handle m4a/m4b w...   Sep 23 2009, 10:06
- - jaime11   Hello Thanks to everyone with their fast replies.....   Sep 23 2009, 23:21
- - Zarggg   Is there any particular reason you need to transco...   Sep 24 2009, 16:10
|- - jaime11   QUOTE (Zarggg @ Sep 24 2009, 17:10) Is th...   Sep 24 2009, 16:56
|- - uberwolf   QUOTE (jaime11 @ Sep 24 2009, 15:56) QUOT...   Oct 29 2009, 01:03
- - Zarggg   If you don't have (lossless) sources, and you...   Nov 2 2009, 20:26
|- - uberwolf   My idea was to first convert the complete M4b file...   Nov 3 2009, 19:21
- - Zarggg   Have you tried using Audacity? I've had pretty...   Nov 4 2009, 16:56
- - HydrogenNoobie   Jamie11, Did you ever find a solution? I am looki...   Sep 20 2010, 05:22
- - valekhz   If anyone is still interested I wrote a little pyt...   Dec 4 2010, 01:22
|- - nbarzgar   QUOTE (valekhz @ Dec 4 2010, 02:22) If an...   Dec 4 2010, 08:06
|- - valekhz   Thank you for writing the guide, nbarzgar. QUOTE ...   Dec 4 2010, 13:25
- - nbarzgar   QUOTE (valekhz @ Dec 4 2010, 14:25) Thank...   Dec 5 2010, 06:02
|- - valekhz   QUOTE (nbarzgar @ Dec 5 2010, 06:02) I pu...   Dec 5 2010, 16:11
- - nbarzgar   VLC shows the chapters!! So now what would...   Dec 5 2010, 20:30
|- - valekhz   QUOTE (nbarzgar @ Dec 5 2010, 20:30) VLC ...   Dec 6 2010, 00:45
|- - nbarzgar   QUOTE (valekhz @ Dec 6 2010, 01:45) Aweso...   Dec 8 2010, 06:59
- - valekhz   I finally got the time to finish the script. Unfor...   Dec 10 2010, 22:42
|- - nbarzgar   QUOTE (valekhz @ Dec 10 2010, 23:42) I fi...   Dec 11 2010, 11:58
- - HydrogenNoobie   valekhz, Thank you so much for writing this scrip...   Dec 11 2010, 23:47
|- - valekhz   Unfortunately there's no Unicode support right...   Dec 12 2010, 19:02
- - daleybox   I ran into a couple of problems: 1) It was sayin...   Dec 13 2010, 03:36
|- - valekhz   Had some time to figure out the Unicode problem to...   Dec 13 2010, 22:59
|- - brian2090   QUOTE (daleybox @ Dec 12 2010, 21:36) ......   Feb 24 2011, 04:52
|- - alexf   thanks to valekhz for creating this script   Aug 23 2011, 22:40
- - HydrogenNoobie   Valekhz - I prefer no pre-pending of "Chapter...   Dec 13 2010, 23:37
- - HydrogenNoobie   valekhz, I hadn't seen your latest post when I...   Dec 13 2010, 23:50
- - HydrogenNoobie   Wow! I am both impressed and happy. Not only ...   Dec 14 2010, 06:33
|- - daleybox   Thanks so much for the chapter naming support, and...   Dec 14 2010, 14:19
|- - valekhz   QUOTE (HydrogenNoobie @ Dec 14 2010, 06:3...   Dec 14 2010, 20:37
- - HydrogenNoobie   Valekhz, 2. Ahh. I suspected that might be the c...   Dec 17 2010, 05:43
|- - valekhz   QUOTE (HydrogenNoobie @ Dec 17 2010, 05:4...   Dec 17 2010, 19:53
- - HydrogenNoobie   Valekhz, I just wanted to say thank you one last ...   Dec 27 2010, 20:08
- - valekhz   No problem, I'm glad it worked. I needed a fe...   Jan 3 2011, 16:55
|- - swavek   First off, many thanks to valekhz for building thi...   Oct 15 2011, 18:58
|- - cynepnaxa   Many thanks to valekhz! Note for customers. Va...   Jul 15 2012, 02:35
|- - cynepnaxa   QUOTE (cynepnaxa @ Jul 15 2012, 02:35) Va...   Jul 17 2012, 01:08
- - js2002   QUOTE (valekhz @ Dec 4 2010, 01:22) If an...   Jul 28 2011, 12:57
|- - js2002   fixed 1 problem in line 44: proc = subprocess...   Jul 28 2011, 14:55
- - ertdredge   As with everyone who's posted, major props to ...   Oct 16 2011, 03:57
|- - vitos   QUOTE (ertdredge @ Oct 16 2011, 04:57) As...   Aug 22 2012, 11:29
- - fyrebender360   Absolutely brilliant!!!! Thanks f...   Nov 9 2011, 23:23
|- - Jaantat   I tried all different versions but still it makes ...   Jun 16 2012, 15:30
|- - nmallears   QUOTE (Jaantat @ Jun 16 2012, 07:30) I tr...   Jun 18 2013, 17:15
- - theviki   If this is still relevant, I found an easier way. ...   Aug 31 2012, 12:48


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th April 2014 - 03:32