Passing bytes instead of filepath in ffmpeg function argument

  ffmpeg, python, python-2.7, python-3.x

full code

Good day, I’m new to python and was tasked to do video compression and I found ffmpeg library, my problem is it requires the filepath of the file but I don’t really intend to save the file locally.

Is it possible to use bytes instead of filepath for this?

thank you.

Source: Python Questions