Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
convert pcm to image
#1
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.
Reply
#2
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!
Reply


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

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020