I have an MP4 video encoded in bytes in memory on a server that has no available storage, only RAM.
Is there a way to get the waveform from that MP4 file without needing to save that file to storage, convert to WAV and then read the WAV file?
Consider the bytes of the MP4 file were read in the following way from a read-only storage attachment that was detached after reading it:
f = open("file.mp4", "rb")
return f.read()