HydrogenAudio

Lossless Audio Compression => WavPack => Topic started by: exetlaios on 2020-11-06 16:29:38

Title: Is there a software for trim/crop wavpack files ?
Post by: exetlaios on 2020-11-06 16:29:38
Hello everybody...

I start to upgrade whatever 32bit wv I find because flac doesn't support 32bit. Is there software to crop wv files without re-encoding? The only solution close to this is to crop the file with audacity, export to wav, and then convert to wv. (using the best options available). Audacity can export directly to wv but the depth drops to 16bit... (as far as I  know...)

Any thoughts?

Thank you...
Title: Re: Is there a software for trim/crop wavpack files ?
Post by: Brand on 2020-11-06 17:48:00
Audacity should be able to export to pretty much anything and any bit depth, seeing how it supports ffmpeg and other command line encoders with custom commands. I've never used it for that purpose, but if ffmpeg and/or the Wavpack executable support it, it should work.

I quite doubt there is software that can edit Wavpack directly without re-encoding. I don't even know one for FLAC, which is a more popular format.
Title: Re: Is there a software for trim/crop wavpack files ?
Post by: kode54 on 2020-11-07 05:54:27
And there is literally zero point to editing without reencoding lossless formats, as the only generational loss will be your crop and edit actions, not the compression and decoding.
Title: Re: Is there a software for trim/crop wavpack files ?
Post by: ajp9 on 2020-11-07 21:03:03
If you mean cropping to time, I've tested avconv, and it handles WavPack to nearest block without reencoding using "-c copy", -ss and -t switches.
Title: Re: Is there a software for trim/crop wavpack files ?
Post by: Porcus on 2022-12-05 10:58:45
To get it sample-accurate, you will have to recompress. Both the following solutions will decompress, but you can use WavPack to compress afterwards (and in the end copy tags with e.g. Mp3tag):

* The official wvunpack has --skip= and --until=, see the documentation: https://www.wavpack.com/wavpack_doc.html
* If you use a cuesheet with cut points, you can use refalac (with -D to get it to WAVE rather than ALAC). You need to copy the official WavPack .dll file into the appropriate directory this way: https://github.com/nu774/qaac/wiki/refalac-usage