I have a audio processing Python script that I would like to move into an azure function.
The audioread library I used in Python script requires FFMPEG binary file exist in system PATH. if FFMPEG binary file is not existed in system PATH, the audioread function cannot detect the ffmpeg and output NoBackendError.
Now I can upload ffmpeg binary file together with my python code to Azure function /home/site/wwwroot. However, since the ffmpeg is not in the correct path (/usr/bin), the python code run on the Azure function will output NoBackendError. I would like to know is there any ways that can move or copy ffmpeg binary file to the correct PATH or any alternative methods that make audioread library detect the ffmpeg.
I have checked the doc:
https://learn.microsoft.com/en-us/azure/azure-functions/bring-dependency-to-functions?pivots=programming-language-python#accessing-the-dependencies-in-your-code
https://stackoverflow.com/questions/55132619/how-to-add-and-execute-a-binary-in-azure-functions
Both is to run ffmpeg command line tool but cannot make python library detect the ffmpeg.
Anyone can help me, thanks!