1

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()
Amit
  • 5,924
  • 7
  • 46
  • 94
  • These are at least two different problems. (1) how to extract audio from a mp4 file → see [here](https://stackoverflow.com/questions/26741116/python-extract-wav-from-video-file); (2) how to pretend working with files on disk when there is no disk. – mkrieger1 Apr 12 '19 at 13:09
  • Maybe ffmpeg has an API that lets you use it without an external command dealing with files? I don't know. – mkrieger1 Apr 12 '19 at 13:12

0 Answers0