According to this article all cloud function environments have ffmpeg.
However, running this code:
import subprocess
subprocess.Popen("ffmpeg")
... on a python310 env fails with this error:
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'
Later Edit:
I ran this code in a python310 cloud function:
import subprocess
def find_ffmpeg(request):
cmd = ['find', '/', '-name','"ffmpeg"']
ffmpeg = subprocess.Popen(cmd, stdout=subprocess.PIPE)
out, err = ffmpeg.communicate()
return out
yeah, no result.
PATHenvironment variable?/usr/binpathffmpegshould be installed and accessible without full path but better check in system/full/lpath/to/ffmpegand use this path insubprocess.