cuetools.net icon indicating copy to clipboard operation
cuetools.net copied to clipboard

Support raw PCM data as input

Open TokugawaHeavyIndustries opened this issue 2 years ago • 2 comments

Currently CueTools (and FlaCCL in particular) supports WAV input, but not raw PCM data. I have a large set of raw data, mono, 16-bit unsigned little endian 44.1k that needs compression to FLAC. FlaCCL would be the perfect candidate for large datasets such as this.

TokugawaHeavyIndustries avatar Apr 27 '22 18:04 TokugawaHeavyIndustries

@TokugawaHeavyIndustries Thanks for your report. So, you have got a large dataset. Is ffmpeg an option for you to convert the raw PCM files? See e.g. https://stackoverflow.com/questions/11986279/can-ffmpeg-convert-audio-from-raw-pcm-to-wav

c72578 avatar May 07 '22 06:05 c72578

@c72578 ffmpeg is an option and is what is currently utilized. However, this raw PCM data is ~150-200GB in size. Processing on a single CPU core, ffmpeg takes hours. We're hoping to utilize FlaCCL to accelerate this processing.

In order to allow FlaCCL to process PCM data, we've simply been injecting a 78-byte WAV header, as WAV data is just PCM with a header.

TokugawaHeavyIndustries avatar May 08 '22 02:05 TokugawaHeavyIndustries