I need to get file duration from audio\video files in Python.
In my case file is StringIO object (byte array) and I have no way to save this data to file system.
I checked some libraries (mutagen, freevo, etc.) but all of this working only with file path, not with byte array.
Maybe exist library that can get byte array and give me media file duration information?
Thanks for your answers!