pcmdiff(1)

πŸ“¦
this version Β· 2 versions
, in debian bookworm, debian trixie, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing

πŸ’– pcmdiff β€” proof-of-concept raw PCM deltifier πŸ’–

okay bestie, welcome to the hxtools corner of the manual pages, this one's pcmdiff(1) and she is niche but she ate πŸ’…


✨ SYNTAX ✨

pcmdiff file1 file2 >file3

that's it. that's the whole vibe. two files in, one file out, no cap 🫢


🌸 DESCRIPTION 🌸

so here's the tea, bestie πŸ“ β€” pcmdiff computes the arithmetic difference between the raw PCM files file1 and file2, and then writes that difference to stdout. that's literally the whole job. she's a proof-of-concept, she's lowkey doing the most with the least, iconic behaviour honestly πŸ‘‘

and why would you want that, you ask? because it lets you make the degradation that inherently comes with lossy audio formats actually audible 😭 like, you know how lossy codecs quietly eat bits and you're like "is anything even happening??" β€” yeah, this is how you hear exactly what got munched. main character energy for audio nerds, fr fr ✨

ngl the difference output is not a normal listenable song, it's the delta, so brace yourself for some weird little sounds πŸ™ˆ

πŸŽ€ EXAMPLES πŸŽ€

the classic lossy-degradation-exposing ritual, step by step:

oggenc -q0 -o test.ogg test.wav;
oggdec -o test2.wav test.ogg;
pcmdiff test.wav test2.wav >delta.wav;

so you encode test.wav into test.ogg with oggenc -q0 -o test.ogg test.wav πŸ‘‘, decode it right back with oggdec -o test2.wav test.ogg πŸ¦‹, and then let pcmdiff test.wav test2.wav >delta.wav show you exactly what the codec did to your baby πŸ’€βœ¨


πŸ¦‹ SEE ALSO πŸ¦‹

  • hxtools(7) β€” the whole hxtools fam, go say hi πŸ’œ

hxtools Β· 2008-11-11 β€” yeah she's been serving since 2008 and she's still cute, periodt πŸ’…βœ¨ bye bestie, go diff some PCM 🌈

πŸ“¦ where this page comes from