LDAC

2 years ago by Sjmarf to c/programmer_humor

load all comments
fouloleron 11 points 2 years ago

Ignorant of the subject matter, but I ripped a bunch of CDs to FLAC some time ago. Would that not work for this purpose?

path: 0 14664501, hotness: undefined, score: 11, children: 20
kipo 21 points 2 years ago

The Sound Guys do a good job of breaking down LDAC, however the main point of criticism I have about the article is that they say that LDAC isn't great because most smartphones don't auto-choose the highest 990 bitrate. That doesn't seem like an LDAC problem, that seems like a phone problem. My phone is admittedly a Sony, but it always chooses the highest bitrate first. There's even a setting to force it to use 990.

The other criticism I have is that the sound guys kind of overlook the fact that, when your phone is in your pocket, it's close enough to the headphones that you'll almost always get the 990 bitrate. And the sound quality at 990 is fantastic. I cannot tell a difference between it and a wired connection for CD-quality FLACs. Even the 660 stepdown bitrate of the LDAC codec is really good.

path: 0 14664501 14666346, hotness: undefined, score: 21, children: 0
fl42v 13 points 2 years ago

Ldac is a Bluetooth thingy, so my understanding is that flacs will be re-encoded on the fly when you play 'em on bt headphones with ldac.

path: 0 14664501 14665217, hotness: undefined, score: 13, children: 0
user224 8 points 2 years ago

Bluetooth has fairly low bitrate which also helps save power. The throughput will also vary with signal quality. It needs to somehow adjust to worse conditions, otherwise it will just keep cutting out. Streaming CD quality FLAC could probably be done over Bluetooth 5 2M PHY, but 2Mbps is just the physical layer. There's also some overhead. Perhaps just enough would be left, but the bitrate will also vary with the content. Not everything can be compressed much, while some audio can be compressed quite a bit.

Probably would work, but the reliability is also a question.

Anyway, just guessing. Perhaps the 3Mbps EDR could be used just fine.

Oh, Bluetooth 3.0 + HS could do 24Mbps. Sort of. It used WiFi to do that.

path: 0 14664501 14665567, hotness: undefined, score: 8, children: 0
floquant 0 points 2 years ago

Audio CDs contain 44.1kHz 16-bit PCM. If you got FLACs out you transcoded them, and transcoding from lossy to lossless is generally undesirable

EDIT: I stand corrected, I forgot that PCM is not a codec.

path: 0 14664501 14665560, hotness: undefined, score: 0, children: 16
BakedCatboy 11 points 2 years ago

I'm pretty sure if you rip CDs directly to FLAC, it's a perfect copy assuming you're using good software. PCM isn't lossy or lossless because it's not a compressed format, it's an uncompressed bitstream. Think of it like the original data. If it was burned to a CD as digital MP3 data and then ripped that to FLAC, then yes you'd be going from lossy compressed to lossless, which would hide the fact that quality was lost when it went to MP3 in the first place.

Just as an example, you can rip a CD directly to FLAC (you should also find and use the correct sample offset for your CD drive), rip the cue sheet for track alignment, then burn the FLAC back to a new CD using the cuesheet (and the correct write offset configuration), and you'll get a CD with the exact bit for bit pattern of "pits" burned into the data layer.

You can then rip both CDs to a raw uncompressed wav file (wav is basically just a container for PCM data) and then you'll be able to MD5sum both wav files and see that they are identical.

This is how I test my FLAC rips to make sure I'm preserving everything. This is also how CD checksum databases (like CDDB) work - people across the globe can rip to wav or flac and because it's the same master of the CD, they'll get identical checksums, and even after converting the PCM/wav into a flac you are still able to checksum and verify it's identical bit for bit.

path: 0 14664501 14665560 14666686, hotness: undefined, score: 11, children: 2
Scoopta 7 points 2 years ago

But CDs are lossless to start? Raw PCM is raw digital audio data, it's completely uncompressed lossless audio so transcoding to flac is the most sensible thing to do. The flac will just be transcoded back to raw PCM for output anyway, as raw PCM is what audio hardware accepts for playback.

path: 0 14664501 14665560 14666297, hotness: undefined, score: 7, children: 1
Ghoelian 3 points 2 years ago

I have had a few (I think only 2) CDs that actually included a few different formats in the filesystem, otoh ogg, flac, MP3, and wav. That was a nice surprise when I was preparing to rip them.

path: 0 14664501 14665560 14665630, hotness: undefined, score: 3, children: 7
Yerbouti 2 points 2 years ago

PCM Wav is uncompressed (best quality) and FLAC is lossless compression. FLAC will keep the audio quality while significantly reducing size of the file so ripping a CD to FLAC is a good idea.

path: 0 14664501 14665560 14666590, hotness: undefined, score: 2, children: 2
programmer_humor
programmer_humor

@programming.dev

login for more options
33596
2558
7290

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.

go to feed...