Skip to content

nikerl/parallel-audiobook-binder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 ____                 _ _      _                   
|  _ \ __ _ _ __ __ _| | | ___| |                  
| |_) / _` | '__/ _` | | |/ _ \ |                  
|  __/ (_| | | | (_| | | |  __/ |                  
|_|   \__,_|_|  \__,_|_|_|\___|_|   _                 _    
           / \  _   _  __| (_) ___ | |__   ___   ___ | | __
          / _ \| | | |/ _` | |/ _ \| '_ \ / _ \ / _ \| |/ /
         / ___ \ |_| | (_| | | (_) | |_) | (_) | (_) |   < 
        /_/   \_\__,_|\__,_|_|\___/|_.__/ \___/ \___/|_|\_\
                    | __ )(_)_ __   __| | ___ _ __                     
                    |  _ \| | '_ \ / _` |/ _ \ '__|                    
                    | |_) | | | | | (_| |  __/ |                       
                    |____/|_|_| |_|\__,_|\___|_|

Parallel Audiobook Binder

Parallel Audiobook Binder is, as the name implies, a fully parallelized audiobook binder aka MP3 to M4B converter. It supports setting chapters from either MP3 files or from a CUE sheet.

Features:

  • Parallelized Conversion: Parallelized audio trancoding from MP3 to M4B/AAC
  • Chapter Support: Set chapters from CUE sheets or chapterized MP3 files.
  • Sorting Mechanism: Sort input files by ID3v2 track number if available, or alphabetically if not.
  • Metadata Management: Extracts and embeds metadata such as author, title, and release date.

Installation

  • Clone the repo
  • Install requirements:
    pip3 install -r requirments.txt
  • Ensure that FFmpeg is installed, download from here as neccesary: https://ffmpeg.org/download.html
    ffmpeg -version

Running the program

Run the TUI using the following command:

python3 binder.py

Or run binder.py with command line arguments like so:

python3 binder.py [-i INPUT] [-o OUTPUT] [-b BITRATE] -c {files,cue,none}

Arguments:

Argument Description
-h, --help Show list of arguments
-i INPUT, --input INPUT Path to the input files (optional, default is current directory)
-o OUTPUT, --output OUTPUT Path to the output file (optional, default is same as INPUT)
-b BITRATE, --bitrate BITRATE Bitrate of the output m4b file in kb/s (optional, default is 128k, use "-1" to get the same bitrate as the input mp3 files)
-c {files,cue,none}, --chapters {files,cue,none} Set the source for chapter data. Use "files" to use each mp3 file as a chapter, "cue" to get chapter data from a CUE sheet, "none" to not embed chapters (Required)

Dependencies

  • Python3
  • pip3
  • FFmpeg

About

A parallelized audiobook binder with support for ID3v2 tags. MP3 to M4B converter.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages