jeanslack / ffcuesplitter Goto Github PK
View Code? Open in Web Editor NEWFFmpeg based audio splitter for CDDA images associated with .cue files
License: GNU General Public License v3.0
FFmpeg based audio splitter for CDDA images associated with .cue files
License: GNU General Public License v3.0
I'm batch splitting a bunch of opus/cue files with your tool in copy mode as they are quite large. The source files have the metadata written to "Stream #0:0:" instead of Output #0. The Stream #0:0: metadata takes priority in most applications for display from what I've seen, which hides important metadata such as the title. I'm only doing this once, so I'm just doing some sed replacements to the --dry run output, replacing the ffmpeg -metadata
with -metadata:s:a:0
as a quick fix, but it seemed worth reporting.
Regardless, TY for the great tool! Saved me hours!
Getting an FFCueSplitterError with the following code:
split = FileSystemOperations(
filename = absolute_cue_path
outputformat = "opus",
overwrite = "always",
outputdir = absolute_album_path,
ffmpeg_add_params = "-b:a 192k -metadata filename=folder.jpg",
)
split.work_on_temporary_directory()
WARNING:root:Not found: `(01) [Dear, friends] Opening-.flac`. Track is skipped.
WARNING:root:Not found: `(02) [Dear, friends] Phamtom.flac`. Track is skipped.
WARNING:root:Not found: `(03) [Dear, friends] VSレミリア in Last Word.flac`. Track is skipped.
WARNING:root:Not found: `(04) [Dear, friends] Ending.flac`. Track is skipped.
Traceback (most recent call last):
...
split = FileSystemOperations(
^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\ffcuesplitter\cuesplitter.py", line 156, in __init__
self.open_cuefile() # requires to open cue file first
^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\ffcuesplitter\cuesplitter.py", line 327, in open_cuefile
self.deflacue_object_handler()
File "C:\Python311\Lib\site-packages\ffcuesplitter\cuesplitter.py", line 246, in deflacue_object_handler
raise FFCueSplitterError('No audio files found!')
I've tested it with other albums and it works flawlessly otherwise. It's just this one that gives trouble. The cue plays correctly when using mpv, so I don't believe it's an issue with the files. I've uploaded the relevant files here for replication.
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.10/site-packages/ffcuesplitter/main.py", line 215, in
main()
File "/opt/homebrew/lib/python3.10/site-packages/ffcuesplitter/main.py", line 197, in main
split.open_cuefile()
File "/opt/homebrew/lib/python3.10/site-packages/ffcuesplitter/cuesplitter.py", line 407, in open_cuefile
self.deflacue_object_handler()
File "/opt/homebrew/lib/python3.10/site-packages/ffcuesplitter/cuesplitter.py", line 329, in deflacue_object_handler
filename = (f"{sanitize(track[1].title)}") # title names sanitize
File "/opt/homebrew/lib/python3.10/site-packages/ffcuesplitter/utils.py", line 52, in sanitize
newstr.replace('/', '')
UnboundLocalError: local variable 'newstr' referenced before assignment
Hello
Love this and working great except defaults to 128 VBR
How do I do 320k convert to mp3. I tried
ffcuesplitter -f mp3 -i example.cue --ffmpeg_add_params '-ab 320k'
and got the error:
unrecognized arguments: --ffmpeg_add_params -ab 320k: --ffmpeg_add_params -ab 320k
Pardon my ignorance and thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.