1

这是代码

from moviepy.editor import VideoFileClip, concatenate_videoclips
clip1 = VideoFileClip ("intro.mp4",audio=True)
clip2 = VideoFileClip ("myvideo2.mp4").subclip(50,60)
clip3 = VideoFileClip("myvideo3.mp4")
final_clip = concatenate_videoclips([clip1,clip2,clip3])
final_clip.write_videofile("my_concatenation.mp4")

当我运行时遇到这样的错误

Traceback (most recent call last):
  File "C:\Users\INTEL\Desktop\Youtube bot\add3.py", line 2, in <module>
    clip1 = VideoFileClip ("intro.mp4",audio=True)
  File "C:\Python27\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 57, in __init__
    reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt)
  File "C:\Python27\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 32, in __init__
    infos = ffmpeg_parse_infos(filename, print_infos, check_duration)
  File "C:\Python27\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 241, in ffmpeg_parse_infos
    proc.terminate()
  File "C:\Python27\lib\subprocess.py", line 1002, in terminate
    _subprocess.TerminateProcess(self._handle, 1)
WindowsError: [Error 5] Access is denied
>>> 

请帮我 !

4

0 回答 0