VideoHelp Forum

+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. I have single large M4B container with audio book split into multiple chapters.

    Is there quick way to extract chapters as separate files that will not require re-encoding to another format?
    Quote Quote  
  2. Not sure if it works (never seen a M4B container, guess it's standard AAC audio with some kind of dedicated metadata), but I would try to import it in MKVToolNix, then in the "Output" tab, select "Split mode: Before chapters". If MKVToolNix does recognize the format, should produce one MKV (or MKA) file for each chapter. If not, you'd have to re-create a chapter template.
    Quote Quote  
  3. m4b is a mp4 audio container, it should be possible to extract the chapters to .m4a / .aac files without reencoding.
    Quote Quote  
  4. m4b is a mp4 audio container, it should be possible to extract the chapters to .m4a / .aac files without reencoding.
    Alright. How ?
    Quote Quote  
  5. split audio into 20 min equal time interval segments split00.mp3, split01.mp3, split02.mp3, split03.mp3

    ffmpeg -i input.m4b -c copy -f segment -segment_time 20:00 -reset_timestamps 1 split%02d.mp3

    -reset_timestamps 1 is critical as for each segment it recalculates the time
    %02d outputs 00, 01, 02, 03, etc. change to %03d for 000, 001, 002, 003, etc.

    split an m4b audiobook into multiple mka or mkv audio files for each chapter (if it already has chapters) with MKVToolnix. Drag m4b file into MKVToolnix into Multiplexer then choose Output
    Image
    [Attachment 60825 - Click to enlarge]


    Note: same can be done with Freac by importing m4b and outputting an mp3 for each chapter

    also probably best just done with m4b-tool

    m4b-tool split --audio-format mp3 --audio-bitrate 96k --audio-channels 1 --audio-samplerate 22050 "data/my-audio-book.m4b"
    Quote Quote  
  6. m4b seems to be m4a + chapters. If this holds the following is possible via script:
    - extract a section losslessly with ffmpeg using timestamps
    - or extract chapters to mka with mkvtoolnix/mkvmerge then remux to .aac/m4a losslessly with ffmpeg.

    note:
    - audiobooks don't typically have same length chapters.
    - any conversion to mp3 implies recompression.
    Quote Quote  



Similar Threads