5 ms·
If you're wondering, PANDA is this:https://github.com/moyix/panda https://github.com/moyix/panda QEMU based recorder. Sounds pretty neat. Although if you want
by MichaelGG 12y ago
If you're wondering, PANDA is this:https://github.com/moyix/panda https://github.com/moyix/panda
QEMU based recorder. Sounds pretty neat.
Although if you wanted realtime audio decryption, I'd imagine just writing a sound driver or hooking the OS's sound functions would be far more direct.
- nzmsv 12y agoThat would miss the point. The approach in the article does not hook the audio driver, but rather the decryptor. This gets you the original compressed audio file, not a stream that has been uncompressed (and would have artifacts when re-compressed).
- csense 12y agoNot if you recompressed with a lossless codec like FLAC.
- KMag 12y agoThat's true, unless the original audio is 24-bit and your audio driver is sending 16-bit audio to your sound card, or similar sorts of loss are happening post-decompression. Many devices have hardware acceleration for mp3 decoding, which also helps with battery life. I'm not sure how many devices have hardware accelerators that can be used/repurposed for Vorbis decoding in the Spotify case. I believe it's less common for hardware decoders to be useful for FLAC decoding, so there may be a battery life penalty for re-encoding mp3 or Vorbis audio as FLAC. (I also presume everyone realizes re-encoding lossily-compressed audio using a lossless codec likely pays a size penalty without any quality increase.)
- MichaelGG 12y agoThat's fair. Although a lot of BluRay rips are re-encoded and seem quite usable. Even the YiFY stuff at 1GB/hour or so. Edit: Why can't a compressor perfectly re-compress the decompressed audio? It's obviously possible since the compressed data exists producing that specific decompressed data.
- diafygi 12y agoBecause the media uses lossy compression, the uncompressed version of the compressed file still contains artifacts of compression. If you the re-compress the file, so add even more artifacts. A good example of this is the guy who re-uploaded the same video to YouTube many times. http://mashable.com/2010/06/03/youtube-i-am-sitting/ http://mashable.com/2010/06/03/youtube-i-am-sitting/
- KMag 12y agoThe GP's question isn't if current re-encoders are capable of recovering the original compressed data, but rather if it's theoretically possible to write a decompressor that given the parameters to the psyco-acoustic model that's introducing most of the artifacts, is able to produce a compressed file that still has artifacts, but no new artifacts. Yes, it sounds theoretically possible, but it may involve searching a huge search space and may be computationally infeasible.
- nikanj 12y agoHow would you tell that a given artifact is an artifact and not part of the original recording
- KMag 12y agoThe distinction doesn't matter one iota.
- AlyssaRowan 12y agoI'm not sure that it is even theoretically possible, unless the encoder is deterministic. At least some encoders (LAME?) break ties arbitrarily.
- KMag 12y agoThe reversibility depends on the decoder being deterministic, not the encoder.
- ghkbrew 12y agoThanks. I read the whole article thinking he was using PANDAS (http://pandas.pydata.org http://pandas.pydata.org)
- e12e 12y agoI saw the headline and thought the same. I'm a little disappointed now :/ On the bright side, maybe someone will use PANDAS for defeating DRM, and blog about that... :)
- moyix 12y agoThe script [1] that computes the statistics on the in-memory data actually does use numpy, and perhaps could benefit from using pandas. Sadly I haven't had time to look into it though! [1] https://github.com/moyix/panda/blob/wip/recondemo/scripts/find_drm.py https://github.com/moyix/panda/blob/wip/recondemo/scripts/fi...