Metadata-Version: 2.4
Name: ffcuesplitter
Version: 1.0.31
Summary: FFmpeg-based audio splitter for CDDA images associated with .cue files .
Project-URL: Homepage, https://github.com/jeanslack/FFcuesplitter
Project-URL: Documentation, https://github.com/jeanslack/FFcuesplitter#readme
Project-URL: Wiki, https://github.com/jeanslack/FFcuesplitter/wiki
Project-URL: Tracker, https://github.com/jeanslack/Videomass/issues
Author-email: Gianluca Pernigotto <jeanlucperni@gmail.com>
Maintainer-email: Gianluca Pernigotto <jeanlucperni@gmail.com>
License: GNU General Public License v3 (GPLv3)
License-File: AUTHORS
License-File: LICENSE
Keywords: audio splitter,converter,ffcuesplitter,ffmpeg
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Multimedia :: Sound/Audio :: Conversion
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Requires-Dist: charset-normalizer>=3.0.1
Requires-Dist: tqdm>=4.38.0
Description-Content-Type: text/markdown

# FFcuesplitter - FFmpeg-based audio splitter for CDDA images associated with .cue files .

[![Image](https://img.shields.io/static/v1?label=python&logo=python&message=3.9%20|%203.10%20|%203.11%20|%203.12&color=blue)](https://www.python.org/downloads/)
[![Python application](https://github.com/jeanslack/FFcuesplitter/actions/workflows/CI.yml/badge.svg)](https://github.com/jeanslack/FFcuesplitter/actions/workflows/CI.yml)

FFcuesplitter is a multi-platform CUE sheet splitter entirely based on FFmpeg.
Splits big audio tracks and automatically embeds tags using the information
contained in the associated **"CUE"** sheet. It supports multiple CUE sheet
encodings (via charset-normalizer) and many input formats (due to FFmpeg), including 
APE format, without need installing extra audio libs and packages. It has the ability 
to accept both files and directories as input while also working in recursive mode. It can 
be used either as a [Python module](https://github.com/jeanslack/FFcuesplitter#using-python) 
or from the [command line](https://github.com/jeanslack/FFcuesplitter#using-command-line).

## Features

- Supports many input formats, due to FFmpeg.
- Convert to Wav, Flac, Ogg, Opus, and Mp3 formats.
- Ability to copy source codec and format without re-encoding.
- Batch mode processing is also available.
- Accepts both files and directories.
- Ability to perform recursive searches.
- Ability to generate audio collection directories (Artist/Album/TrackNumber - Title)
- Auto-tag from CUE file data.
- Features automatic character set detection for CUE files (via [python3-charset-normalizer](https://pypi.org/project/charset-normalizer/)).
- Ability to remove original file after conversion.
- Works on Linux, MacOs, FreeBSD, Windows.
- It can be used either as a Python module or from the command line.

## Requires

- Python >=3.9
- [python3-charset-normalizer](https://pypi.org/project/charset-normalizer/)
- [tqdm](https://pypi.org/project/tqdm/#description)
- [FFmpeg](https://ffmpeg.org/) *(including ffprobe)*


## Using Command Line

```
ffcuesplitter -i FILENAMES DIRNAMES [FILENAMES DIRNAMES ...]
              [-r]
              [-f {wav,flac,mp3,ogg,opus}]
              [-o OUTPUTDIR]
              [-del]
              [-c {author+album,author,album}]
              [-ow {ask,never,always}]
              [-ce CHARACTERS_ENCODING]
              [--ffmpeg-cmd URL]
              [--ffmpeg-loglevel {error,warning,info,verbose,debug}]
              [--ffmpeg-add-params='parameters']
              [-p {tqdm,standard}]
              [--ffprobe-cmd URL]
              [--dry]
              [--prg-loglevel {error,warning,info,debug}]
              [-h]
              [--version]
```

**Examples**

`ffcuesplitter -i 'inputfile_1.cue' 'inputfile_2.cue' 'inputfile_3.cue'`

Batch file processing to split and convert to default audio `flac` format.

`ffcuesplitter -i '/User/music/collection/inputfile.cue' -f ogg -o 'my_awesome_tracklist'`

To splits the individual audio tracks into `ogg` format
and saves them in the `my_awesome_tracklist` directory.

**For further information and other examples visit the [wiki page](https://github.com/jeanslack/FFcuesplitter/wiki)**
***

## Using Python

```python
>>> from ffcuesplitter.cuesplitter import FFCueSplitter
>>> getdata = FFCueSplitter(**kwargs)
>>> tracks = getdata.audiotracks  # get all tracks data
>>> getdata.commandargs(tracks)  # get FFmpeg command/arguments recipes.
```
#### Getting additionals data

```python
>>> getdata.probedata  # ffprobe data of the sources audio files.
>>> getdata.cue.meta.data  # get CD info.
```

**For further information and other examples visit the [wiki page](https://github.com/jeanslack/FFcuesplitter/wiki)**
***

## Installation

`python3 -m pip install ffcuesplitter`

## License and Copyright

Copyleft: (C) 2025 Gianluca Pernigotto
Author and Developer: Gianluca Pernigotto
Mail: <jeanlucperni@gmail.com>
License: GPL3 (see LICENSE file in the source directory)
