antiboredom / videogrep

automatic video supercuts with python
https://antiboredom.github.io/videogrep
Other
3.34k stars 257 forks source link

Exception Attribute Error / Windows Error 5 #28

Closed pashakun closed 2 years ago

pashakun commented 10 years ago

Hi,

First thanks for this great project! Hopefully you can help me with this error.

Ran this command on Windows 7, 64-bit: python videogrep.py --input c:/orange/ --search "text" --max-clips 3

Got this:

Traceback (most recent call last): File "videogrep.py", line 261, in videogrep(args.inputfile, args.outputfile, args.search, args.searchtype, arg s.maxclips, args.padding, args.test, args.randomize, args.sync) File "videogrep.py", line 241, in videogrep create_supercut(composition, outputfile, padding) File "videogrep.py", line 86, in create_supercut videofileclips = dict([(f, VideoFileClip(f)) for f in all_filenames]) File "C:\Python27\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 5 8, in init self.reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt) File "C:\Python27\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 1 7, in init infos = ffmpeg_parse_infos(filename, print_infos) File "C:\Python27\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 1 97, in ffmpeg_parse_infos stderr=sp.PIPE) File "C:\Python27\lib\subprocess.py", line 679, in init errread, errwrite) File "C:\Python27\lib\subprocess.py", line 896, in _execute_child startupinfo) WindowsError: [Error 5] Access is denied Exception AttributeError: "FFMPEG_VideoReader instance has no attribute 'proc'" in <bound method FFMPEG_VideoReader.del of <moviepy.video.io.ffmpeg_reader.F FMPEG_VideoReader instance at 0x04E78B48>> ignored

I saw an earlier discussion of a similar error here: https://github.com/antiboredom/videogrep/issues/18

Unfortunately for me, using -m flag does it help, no matter what values I try.

Thank you in advance~