INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: CUE+FLAC / CUE+APE - splitting: is it lossless?  (Read 2962 times)

xexets

  • Recent member
  • *
  • Posts: 25
CUE+FLAC / CUE+APE - splitting: is it lossless?
« on: May 30, 2020, 05:01:01 am »

Hello!
So I have a large collection of classical music in my JRiver. In the past, not sure why, I used to rip my CDs to CUE+APE and then to CUE+FLAC. No problem having them in JRiver of course. However yesterday I moved the library to a new HD and... wonderful surprise, I lost all tagging done in JRiver for everything that was CUE+FLAC or CUE+APE. HURRAY! (I have sidecar on, but it does not work for cue rips???).
In order to avoid this in the future, I thought I might bite the bullet and just split all CUE+FLAC and convert the  CUE+APE track FLAC.
JRiver makes it very simple: I can just bulk convert and replace the files in library so I should not even notice it once it's done.

My question is about whether these operations are lossless:

1) Converting cue+Flac into track flac (since there no real option to SPLIT the flac in JRiver): is it lossless? Should I rather do it with cuetools?
2) Converting Cue+APE into track flac: is it lossless? Should I use another software?

3) instead of converting is there another way? - i.e. why don't sidecar files work for me - shouldn't they work with cue+flac/ape since internal tagging is not supported in this case?

Many thanks!
Logged

w_axlrose1

  • Junior Woodchuck
  • **
  • Posts: 58
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #1 on: May 30, 2020, 06:22:49 am »

1) It should be. I've not used Cuetools but have used Medieval Cue Splitter and the result is lossless.
2) It's lossless.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7402
  • The color of Spring...
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #2 on: May 30, 2020, 06:29:37 am »

If you're ever trying to decide using either Medieval Cue Splitter or CUETools, Medieval Cue Splitter should be avoided because it introduces sector boundary errors (or SBEs) when splitting files, and CUETools does not.

Otherwise, yes, it should be lossless.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2024 Update (24H2) 64-bit + Ubuntu 24.04 LTS Noble Numbat 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | iFi ZEN DAC 3 | Edifier R2000DB Bookshelf Speakers | Audio-Technica ATH-M50x Headphones

xexets

  • Recent member
  • *
  • Posts: 25
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #3 on: May 30, 2020, 06:42:37 am »

Thanks, so I can just use JRiver to 'split' the cue+flac and it'll be lossless, same thing with cue+ape.
My understanding is that it won't 'split' the flac into tracks but it'll convert it to PCM, and then back to flac split in tracks, but the whole operation is, since it's flac, lossless.
Thank you!
Logged

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1559
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #4 on: May 30, 2020, 07:44:44 am »

Flacs are pcm ... raw pcm usually are in wav files. Flac contain those pcm in compressed form.

Analogy would be flac is like a zip that compresses wav files. Zip have a higher compression ratio ... but zip need to be complettely unzip to access what inside. Flac can play and seek pcm they contain without completely uncompressing what they contain.
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

xexets

  • Recent member
  • *
  • Posts: 25
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #5 on: May 30, 2020, 12:28:20 pm »

Yes indeed thanks. And also APE is PCM right?
Logged

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1559
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #6 on: May 30, 2020, 12:37:46 pm »

Yes indeed thanks. And also APE is PCM right?
Yup APE is compression algorith that contains  PCM too.

In fact all audio formats are PCM ... except DSD.

APE and FLAC are similar to zip in that they do not alter what they are compressing. What differentiate them from zip is that they allow access to part of what they contain without "unzipping" whole file.

MP3 and AAC on the other hand petmanantly alter PCM they encode inorder to save space.
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

xexets

  • Recent member
  • *
  • Posts: 25
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #7 on: May 30, 2020, 01:05:31 pm »

Perfect many thanks! Then basically if I stay away from lossy formats every ‘transcoding’ done in JRiver is lossless a part from anything involving DSD (including DSD iso to DSF) because that would imply a conversion to PCM (though I might not notice)?
Logged

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1559
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #8 on: May 30, 2020, 02:47:14 pm »

Not exactly ... PCM is characterised by bit deapth and sampling
1. reducing those is lossy process
2. increasing bit deapth is lossless but pointless ... just padding zeroes at the end and increasing storage space
3. increasing sampling frequency is also lossy process (even if done in multiples of 2 ... someone correct me here if i am wrong)

It is important to understand what lossless is. It means you do something to your audio file, and then later can revert back to original quality.

It does not mean best quality. It just mean you preserve the original quality of your source material.

if you just splitting large flac/ape without altering bit depth and frequency correctly its a lossless process. Meaning that if you combine split files back to one large one in correct order ... you will end up with exactly same audio you started with.

Someone correct me if i am wrong here again ... but my understanding is because of the nature DSD is encoded ... you cannot losslessly split DSD audio.
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

xexets

  • Recent member
  • *
  • Posts: 25
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #9 on: May 31, 2020, 03:34:09 am »

Yes indeed, thanks for  clarifying. Of course FLAC/APE to flac can be lossless if sample rate is not changed, it is not automatically lossless.
As for DSD, my understanding is that with SACD_EXTRACT you can get DSF out of ISOs without any re-enconding. But I might be wrong
Logged

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1559
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #10 on: May 31, 2020, 04:15:17 am »

i use cueTools to split files. The reason beeing it can check your rip againsht other ppl rips and give indication whether your rip is bit perfect. It can also repair minor glitches in your rip (maybe due to small scratches) by comparing your rip to other ppl rip.
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7402
  • The color of Spring...
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #11 on: May 31, 2020, 06:17:07 am »

Someone correct me if i am wrong here again ... but my understanding is because of the nature DSD is encoded ... you cannot losslessly split DSD audio.

You can take a SACD ISO and use sacd_extract to "extract" individual files (in DFF or DSF format for example), and it should be a 'lossless' process doing so because there's no resampling or dithering involved.

I've done it at least 60 times, and the results have been perfect.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2024 Update (24H2) 64-bit + Ubuntu 24.04 LTS Noble Numbat 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | iFi ZEN DAC 3 | Edifier R2000DB Bookshelf Speakers | Audio-Technica ATH-M50x Headphones

xexets

  • Recent member
  • *
  • Posts: 25
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #12 on: May 31, 2020, 08:39:18 am »

Yes, that was my understanding
Logged

Frobozz

  • Citizen of the Universe
  • *****
  • Posts: 634
  • There is a small mailbox here.
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #13 on: May 31, 2020, 11:42:29 am »

I've never used JRiver Media Center to split a CUE+APE or CUE+FLAC. I don't know exactly how MC would do it, but I would expect it would do it fully lossless and do things the right way.

What I would do to confirm would be to first use CueTools to verify a CUE+FLAC and make sure that rip matches with AccurateRip and CTDB.
Then have MC split it.
Then have CueTools verify the split files to make sure they match up with the same AccurateRip and CTDB findings as before.

If it passes that, and I expect it will, then you're good to go to have MC split all of your CUE rips and import them into your library.
Logged

joshhuggins

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 410
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #14 on: July 05, 2020, 03:11:33 am »

I've never used JRiver Media Center to split a CUE+APE or CUE+FLAC. I don't know exactly how MC would do it, but I would expect it would do it fully lossless and do things the right way.

What I would do to confirm would be to first use CueTools to verify a CUE+FLAC and make sure that rip matches with AccurateRip and CTDB.
Then have MC split it.
Then have CueTools verify the split files to make sure they match up with the same AccurateRip and CTDB findings as before.

If it passes that, and I expect it will, then you're good to go to have MC split all of your CUE rips and import them into your library.
I just did this just using the Convert Format function in Media Center and I think worked great. All the tracks I used JRMC to separate the CUE+FLAC into individual track files show Accurate Rip matches except some of the really obscure stuff I had that I am guessing is not in the CTDB.
Logged
Thanks!

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3020
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #15 on: July 05, 2020, 07:55:10 am »

dff and dsf are the two common two DSD formats. Neither of them is compressed. dff does not store metadata and is thus analogous to wav. dsf has a metadata section using id3 format. Converting between the two should simply change the header, leaving the uncompressed data the same.

DSD files have traditionally been uncompressed, although there is no reason they cannot be compressed. Wavpack does have a lossless dsd compression format and stores it is a  .wv file. Wavpack can then decompress the .wv format losslessly to the original data. They claim to be able to compress up to 60%. I have never tried this format.

MC does support wavpack, but I have never tried it for DSD files.

https://diyaudioheaven.wordpress.com/digital/pc-software/compressing-dsd-files-with-wavpack-5/

EDIT:

Looks like playing  wavpack compressed DSD has been implemented since V23.

https://yabb.jriver.com/interact/index.php?topic=110703.0
Logged

MikeO

  • Citizen of the Universe
  • *****
  • Posts: 789
Re: CUE+FLAC / CUE+APE - splitting: is it lossless?
« Reply #16 on: July 05, 2020, 08:30:10 am »

I have used CUETools for years with no issues

Just try say Dark side of the moon , your question will be answered  😉
Logged
Pages: [1]   Go Up