You are not logged in.
Pages: 1
Topic closed
I'm trying to split a single-file flac cd rip to flac files, with tags read from cuesheet
without tagging, (simple '-o flac'), shnsplit works fine... but the help message says that it can take additional arguments for the encoder
-o fmt specify output file format, extension, encoder and/or arguments.
format is: "fmt [ext=abc] [encoder [arg1 ... argN (%f = filename)]]"
-T FIELD=VALUE, --tag=FIELD=VALUE
Add a FLAC tag. The comment must adhere to the Vorbis comment spec; i.e. the FIELD must contain only legal characters, terminated by an
'equals' sign. Make sure to quote the comment if necessary. This option may appear more than once to add several comments. NOTE: all tags
will be added to all encoded files.
I always failed when I try to add encoder arguments. I want to ask flac to do the tagging so that I don't have to tag the files manually
# shnsplit -f utf.cue -t "%p - %a - %n %t" -x 1 -o "flac -T TITLE=%t -T ALBUM=%a -T TRACKNUMBER=%n -T ARTIST=%p %f" After\ Eden.flac
shnsplit: warning: discarding initial zero-valued split point
Splitting [After Eden.flac] (65:43.21) --> [Kalafina - After Eden - 01 Eden.flac] (5:40.28) : 0% ERROR
shnsplit: warning: error while transferring 60041856 bytes of data
shnsplit: warning: child encoder process 11477 had non-zero exit status 1
shnsplit: error: failed to split file
same error even without really invoking additional arguments
# shnsplit -f utf.cue -t "%p - %a - %n %t" -x 1 -o "flac %f" After\ Eden.flac
shnsplit: warning: discarding initial zero-valued split point
Splitting [After Eden.flac] (65:43.21) --> [Kalafina - After Eden - 01 Eden.flac] (5:40.28) : 0% ERROR
shnsplit: warning: error while transferring 60041856 bytes of data
shnsplit: warning: child encoder process 11508 had non-zero exit status 1
shnsplit: error: failed to split file
is this a bug?
始まりの荒野を独り もう歩き出してるらしい、僕は灰になるまで僕で有り続けたい
http://about.me/nnhnkn | http://identi.ca/nnhzkn
Offline
Do you know cue2tracks? It does the job extremely well, so you can either use it directly, or explore the code of the script for the most relevant parts.
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
In my experience, this is a broken .flac file that will make tools reading it stop when CRCs don't match.
I tried shnsplit, audacity, flac, they all fail.
The way out for me was to use ffmpeg to convert to other lossless format, say, wav:
ffmpeg -i the_file.flac the_file.wav
and then regenerate the flac with the reversed parameters:
ffmpeg -i the_file.wav test.flac
Splitting the regenerated test.flac worked without errors, hence my conclusion that initial flac was broken.
It's also possible to read through errors in input files with flac, instead of ffmpeg:
flac -F -d the_file.flac
This will force decoding to a wav for further processing, as above and flac will report a CRC mismatch.
Offline
Thank you for sharing that, arch_goat.
I'm going to close this now, as it's a four year old thread.
https://wiki.archlinux.org/index.php/Fo … bumping.22
Closing.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Pages: 1
Topic closed