-
Notifications
You must be signed in to change notification settings - Fork 7
PCM Extract
Harry Munday edited this page Nov 20, 2024
·
3 revisions
A tool for extracting PCM encoded data from a bruteforce-sampled bitstream, primarily made for using the PCM1802 in combination with the MISRC.
Note
- That the sample rate must be more than twice the bandwidth, so that both low and high states of the bit clock can be observed. This tool is not yet integrated into the main repository but can be obtained from here.
PCM1802 PCB & Female DuPont Cable Ribbon

pcm_extract <BCK> <DOUT> <LRCK>
Provide the input on stdin, and the decoded audio is provided on stdout as signed 32 bit. Example usage with a MISRC capture:
misrc_extract -i test.bin -x - | pcm_extract 2 3 4 | ffmpeg -y -f s32le -ar 78125 -ac 2 -i - aux.flac
This assumes the following pin setup:
- 0: BCK
- 1: DOUT
- 2: LRCK
misrc_extract
pads the bottom by default, so each pin number has to be offset by 2.
Up to two PCM1802s can be connected to the aux bits, and you can extract their data individually by providing the correct pin numbers to pcm_extract.