Dec-06-2021, 12:56 PM
Hi friends,
I have test.pcm file with raw data i want to draw wave form to image from pcm file how can i do.
I have test.pcm file with raw data i want to draw wave form to image from pcm file how can i do.
convert pcm to image
|
Dec-06-2021, 12:56 PM
Hi friends,
I have test.pcm file with raw data i want to draw wave form to image from pcm file how can i do.
Dec-06-2021, 02:54 PM
You have to know the structure of your raw data and the data types inside the structure, then you can parse for example with numpy or struct. After this you have an n-dimensional data-structure. For example, 44.100 Hz stereo 1 second long has the shape (44100, 2) or (2, 44100) depending on how it was recorded.
Then you can plot the data with matplotlib.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians! |
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Convert numpy array to image without loading it into RAM. | DreamingInsanity | 7 | 5,957 |
Feb-08-2024, 09:38 AM Last Post: paul18fr |
|
Binary data to Image convert | Nuwan16 | 1 | 5,743 |
Aug-24-2020, 06:03 AM Last Post: millpond |