I don't know much about FFmpeg and don't know if it could make a .csv file (it seems unlikely to me, but then, I've been surprised by how much it can do in the past), but I would do it by writing to a .wav file and then reading at converting the samples to C code in Python using the 'wave' module and the 'struct' module, as in https://stackoverflow.com/a/5281240 . If you'd still have to use CSV for some reason, Python has the 'csv' module.
On Sun, Jun 30, 2024 at 2:14 AM Michael Koch <astroelectro...@t-online.de> wrote: > Am 30.06.2024 um 07:47 schrieb Alexander Gribanov: > > вс, 30 июн. 2024 г. в 08:38, Michael Koch <astroelectro...@t-online.de>: > > > >> Hi, > >> > >> is it possible to convert an audio waveform to a CSV list? > >> I want to insert 2048 samples of a waveform into the C source code for a > >> microcontroller. > >> > > Hello! I don't know about how to make a CSV list, but if You need it for > a > > microcontroller, why wouldn't You make a .wav file and read the samples > one > > by one Your C code? > > The microcontroller can't read a file. It's a very simple circuit > without SD card. That's why I want to insert the samples into the C > source code. > > Michael > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".