I tried all different versions but still it makes just one mp3 file
Can someone help me out?
i can see that it reads the chapter names but it wont make multiple files
C:\Python27>python m4b.py --debug game.m4b
INFO: m4bsplit started.
DEBUG: Options:
ffmpeg: ffmpeg
custom_name: %(title)s
skip_encoding: False
filename: ['game.m4b']
encoder: ffmpeg
ext: mp3
encode_opts: -y -i %(infile)s -acodec libmp3lame -ar %(sample_rate)d -ab %(b
it_rate)dk %(outfile)s
output_dir:
debug: True
pipe_wav: False
no_mp4v2: False
INFO: Initiating script for file 'game.m4b'.
INFO: Loading metadata using libmp4v2...
INFO:
Metadata:
Chapters: 135
Bit rate: 64 kbit/s
Sampling freq: 22050 Hz
DEBUG:
Chapter data:
<Chapter Title="00 - Prologue 1", Start=0:00:00, End=0:10:00, Dura
tion=0:10:00>
<Chapter Title="Part 1.1", Start=0:10:00, End=0:20:00, Duration=0:10:00>
<Chapter Title="Part 1.2", Start=0:20:00, End=0:24:33.005000, Duration=0:04:33.0
05000>
-----------------------
-----------------------
<Chapter Title="Part 38.3", Start=16:09:59.963000, End=16:17:54.605000, Duration
=0:07:54.642000>
INFO: Encoding audio...
DEBUG: Encoding with command: ffmpeg -y -i game.m4b -acodec libmp3lame -ar 22050
-ab 64k game\temp\game.mp3
ffmpeg version N-41416-g718607b Copyright © 2000-2012 the FFmpeg developers
built on Jun 8 2012 12:46:19 with gcc 4.6.3
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
--enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --ena libavutil 51. 56.100 / 51. 56.100
libavcodec 54. 25.100 / 54. 25.100
libavformat 54. 6.101 / 54. 6.101
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 78.101 / 2. 78.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'game.m4b':
Metadata:
major_brand : M4A
minor_version : 0
compatible_brands: 3gp5isom
creation_time : 2011-04-30 13:52:34
genre : Audiobook
media_type : 2
encoder : Chapter and Verse V 1.4
title : 01 - A Game of Thrones - Part 1
artist : George R.R. Martin
album : A Game of Thrones
composer : George R.R. Martin
track : 1/2
Duration: 16:17:54.64, start: 0.000000, bitrate: 60 kb/s
Chapter #0.0: start 0.000000, end 600.000000
Metadata:
title : 00 - Prologue 1
Chapter #0.1: start 600.000000, end 1200.000000
Metadata:
title : Part 1.1
-----------------------------
-------------------------------
Metadata:
title : Part 38.1
Chapter #0.133: start 57600.000000, end 58200.000000
Metadata:
title : Part 38.2
Chapter #0.134: start 58200.000000, end 58674.642721
Metadata:
title : Part 38.3
Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 22050 Hz, stereo, s16, 59
kb/s
Metadata:
creation_time : 2011-04-30 13:52:34
Stream #0:1(und): Subtitle: mov_text (text / 0x74786574)
Metadata:
creation_time : 2011-04-30 13:54:41
Output #0, mp3, to 'game\temp\game.mp3':
Metadata:
major_brand : M4A
minor_version : 0
compatible_brands: 3gp5isom
TDEN : 2011-04-30 13:52:34
TCON : Audiobook
media_type : 2
TRCK : 1/2
TIT2 : 01 - A Game of Thrones - Part 1
TPE1 : George R.R. Martin
TALB : A Game of Thrones
TCOM : George R.R. Martin
TSSE : Lavf54.6.101
Chapter #0.0: start 0.000000, end 600.000000
Metadata:
title : 00 - Prologue 1
Chapter #0.1: start 600.000000, end 1200.000000
Metadata:
title : Part 1.1
Chapter #0.2: start 1200.000000, end 1473.005442
Metadata:
title : Part 1.2
Chapter #0.3: start 1473.005442, end 1800.000000
------------------
-------------------
Metadata:
title : Part 38.2
Chapter #0.134: start 58200.000000, end 58674.642721
Metadata:
title : Part 38.3
Stream #0:0(und): Audio: mp3, 22050 Hz, stereo, s16, 64 kb/s
Metadata:
creation_time : 2011-04-30 13:52:34
Stream mapping:
Stream #0:0 -> #0:0 (aac -> libmp3lame)
Press [q] to stop, [?] for help
size= 458397kB time=16:17:54.65 bitrate= 64.0kbits/s
video:0kB audio:458396kB global headers:0kB muxing overhead 0.000119%
INFO: Splitting chapter 1/135 '00 - Prologue 1'...
DEBUG: Splitting with command: ffmpeg -y -acodec copy -t 600.0 -ss 0.0 -i game\t
emp\game.mp3 game\_tmp_1.mp3
ERROR:
An error occurred while splitting audio file.
Command: ffmpeg -y -acodec copy -t 600.0 -ss 0.0 -i game\temp\game.mp3 game\_t
mp_1.mp3
Return code: 1
Output: ---->
ffmpeg version N-41416-g718607b Copyright © 2000-2012 the FFmpeg developers
built on Jun 8 2012 12:46:19 with gcc 4.6.3
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
--enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --ena libavutil 51. 56.100 / 51. 56.100
libavcodec 54. 25.100 / 54. 25.100
libavformat 54. 6.101 / 54. 6.101
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 78.101 / 2. 78.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Unknown decoder 'copy'