python-audio-tools icon indicating copy to clipboard operation
python-audio-tools copied to clipboard

tracksplit from FLAC to FLAC is slow

Open laurivosandi opened this issue 10 years ago • 1 comments

Currently tracksplit from FLAC to FLAC works pretty well but the track is being decoded and encoded in the process which is rather slow on a ARM processor. Is there a chance to optimize such usecase?

laurivosandi avatar Jun 15 '14 09:06 laurivosandi

There's not a lot of good options to split files without re-encoding since split points aren't likely to fall exactly on FLAC frame boundaries, renumbering the remaining frames to start from 0 means recalculating all the header and frame CRCs, I'd need to calculate the MD5 sum for the newly split file, and the process would ignore the quality setting.

I'll try some benchmarking to see if reducing some of the floating point math precision in the FLAC encoder makes any difference in speed. That might offer some useful gains without being quite as much of a hack as trying a direct split would be.

tuffy avatar Jun 16 '14 00:06 tuffy