-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't unlink file after audio extraction #97
Comments
I am not sure I understood. What do you mean by unlink ? And by "it is good to del it manually (it work in other place in my app)" ? Can you provide a minimal snippet with what MoviePy does now, and what you would like it to do ? |
When I'm merging ImageSequenceClip with AudioFileClip to create mp4 file I use that code:
Deleting audio from ImageSequnce deleting reader and audio separately was only way to close audio file. This was temporary file, so I'm deleting it later. I would like to delete mp4 file from which audio was extracted but could not figure out how to do so yet. |
I think I fixed it, can you try the new version (github or PyPI) and tell me if it works ? |
Yes, now it works like charm. |
Good. Cheers ! |
So I'm downloading mp4 file to temp and extract audio like that:
where infile is full path to tempfile and outfile is full path to mp3 file to save audio to. I can't unlink tempfile after extraction as I get
PermissionError
. I'm trying to 'destroy' VideoFileClip object:and it is for nothing. I found out AudioFileClip has no del method so it is good to del it manually (it works in other place in my app).
The text was updated successfully, but these errors were encountered: