Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Is it possible to write video or audio file in current directory using moviepy in Cloud Functions

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 

harishgavel_0-1637774463631.png

 

harishgavel_1-1637774515854.png

 

0 1 567
1 REPLY 1

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.