Is it possible to write video or audio file in current directory using moviepy in cloud Functions as azure functions have read only access?
I want to use moviepy to concatenate videos in azure functions, even though it is running locally but after it is deployed to cloud functions its giving error that functions have read only access.
I used below code: final_clip.write_videofile('finalvideo.mp4',codec='libx264', audio_codec='aac', temp_audiofile='temp-audio.m4a')
And when I used the following codes: final_clip.write_videofile('/tmp/finalvideo.mp4',codec='libx264', audio_codec='aac', temp_audiofile='/tmp/temp-audio.m4a')
logs
Hello,
Do you mean to say this issue is to be found in Azure functions? If so, that is a different environment. We deal here with Google Cloud Functions - a different offer from Azure.
In general, one cannot use local directories to write data in Cloud Functions. You may check the "File system" sub-chapter for related information.