Skip to main content

FFmpeg based audio splitter for audio CD images supplied with CUE sheet files.

Project description

FFcuesplitter - FFmpeg based audio splitter for audio CD images supplied with .cue sheet files.

Image Python application

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 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. Can be used both as a Python module and from command line.

Features

  • Supports many input formats.
  • 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 multiple CUE file names and multiple folder path names.
  • Ability to activate the recursive option to search for CUE files in all subfolders.
  • Optionally auto-generate audio collection folders (Artist/Album/TrackNumber - Title)
  • Auto-tag from CUE file data.
  • Features automatic character set detection for CUE files (via chardet).
  • Works on Linux, MacOs, FreeBSD, Windows.
  • Can be used both as a Python module and in command line mode.

Requires

Usage

Using Command Line

ffcuesplitter -i FILENAMES DIRNAMES [FILENAMES DIRNAMES ...]
              [-r]
              [-f {wav,flac,mp3,ogg,opus,copy}]
              [-o OUTPUTDIR]
              [-c {artist+album,artist,album}]
              [-ow {ask,never,always}]
              [--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 folder.

For further information and other examples visit the wiki page


Using Python

>>> from ffcuesplitter.cuesplitter import FFCueSplitter
>>> getdata = FFCueSplitter("tests/Three Samples_ASCII.cue", dry=True)
>>> getdata.open_cuefile()  # you need to open the cue file first.
>>> getdata.audiotracks  # get processed audio tracks list taken from the cue file.
>>> getdata.cue.meta.data  # get CD info.
>>> getdata.commandargs()  # get FFmpeg command/arguments recipes.

For further information and other examples visit the wiki page


Installation

python3 -m pip install ffcuesplitter

License and Copyright

Copyright (C) 2023 Gianluca Pernigotto
Author and Developer: Gianluca Pernigotto
Mail: jeanlucperni@gmail.com
License: GPL3 (see LICENSE file in the source folder)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ffcuesplitter-1.0.20.tar.gz (69.9 kB view details)

Uploaded Source

Built Distribution

ffcuesplitter-1.0.20-py3-none-any.whl (38.3 kB view details)

Uploaded Python 3

File details

Details for the file ffcuesplitter-1.0.20.tar.gz.

File metadata

  • Download URL: ffcuesplitter-1.0.20.tar.gz
  • Upload date:
  • Size: 69.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for ffcuesplitter-1.0.20.tar.gz
Algorithm Hash digest
SHA256 c56402391a2f8ace97eb82e496051fe51766d4e323f1f570aa46e9fb23f31da7
MD5 86d12ed3e068caa35ac41e4ea1f21fe8
BLAKE2b-256 4765f42235720534ec78418d8e9ebad1ad5e2a16b0ae5c886f5e6a6ea86e15e9

See more details on using hashes here.

File details

Details for the file ffcuesplitter-1.0.20-py3-none-any.whl.

File metadata

File hashes

Hashes for ffcuesplitter-1.0.20-py3-none-any.whl
Algorithm Hash digest
SHA256 c4781fe4f4dc148515a40affae11e300bbfa9ae91d05639dfe6fc15e9c4b197e
MD5 49508409c4d7c00dc0f0aeb7167ab5d1
BLAKE2b-256 ce283afd35c9fe7c88176f9d8d884c670616911aff1ba7100430c2ff1beeb881

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page