I'm using windows 8.1 64 bit
my code
import pdb
from moviepy.editor import *
clip = VideoFileClip(".\a.mp4")
clip.write_gif('.\aasda.gif')
the exception is at write_gif method
Traceback (most recent call last):
File "C:abiyoutubetogif_projectest.py", line 5, in <module>
clip.write_gif('G:\abi\aasda.gif')
File "<string>", line 2, in write_gif
File "C:Python34libsite-packagesmoviepy-0.2.1.8.12-py3.4.eggmoviepydecorators.py", line 49, in requires_duration
return f(clip, *a, **k)
File "C:Python34libsite-packagesmoviepy-0.2.1.8.12-py3.4.eggmoviepyvideoVideoClip.py", line 435, in write_gif
dispose= dispose, colors=colors)
File "<string>", line 2, in write_gif
File "C:Python34libsite-packagesmoviepy-0.2.1.8.12-py3.4.eggmoviepydecorators.py", line 49, in requires_duration
return f(clip, *a, **k)
File "C:Python34libsite-packagesmoviepy-0.2.1.8.12-py3.4.eggmoviepyvideoiogif_writers.py", line 186, in write_gif
stdout=sp.PIPE)
File "C:Python34libsubprocess.py", line 848, in __init__
restore_signals, start_new_session)
File "C:Python34libsubprocess.py", line 1104, in _execute_child
startupinfo)
PermissionError: [WinError 5] Access is denied
I moved the script to another folder and partition, running moviepy dependancies and python as admin, turning off UAC still gives me error
question from:
https://stackoverflow.com/questions/26091530/permissionerror-winerror-5-access-is-denied-python-using-moviepy-to-write-gif 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…