Comments (7)
Further:
The problem seems to be that the try block fails and falls through to the except block. It fails within create_supercut() at the point that moviepy is called:
videofileclips = dict([(f, VideoFileClip(f)) for f in all_filenames])
The call to VideoFileClip() is also what throws the Windows(123) error, so my suspicion now falls on moviepy.
from videogrep.
Can you paste the whole error that occurs when you remove the try block ?
from videogrep.
Hi Zulko, Here is the error message I get when I perform a search that returns fewer than the max clips threshold. This just means that I bypass the create_supercut_in_batches() function and it's try/except block.
File "videogrep.py", line 261, in <module>
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 "D:\Python27\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 5
5, in **init**
self.reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt
File "D:\Python27\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 1
7, in **init**
infos = ffmpeg_parse_infos(filename, print_infos)
File "D:\Python27\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 2
07, in ffmpeg_parse_infos
stderr=sp.PIPE)
File "D:\Python27\lib\subprocess.py", line 710, in **init**
errread, errwrite)
File "D:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 123] The filename, directory name, or volume label syntax i
s incorrect
I have to call it quits for tonight. Tomorrow I want to follow the process through ffmpeg where I'm beginning to think the problem lies..
Thanks for your interest.
from videogrep.
Hi Zulko, Here is the error message I get when I perform a search that returns fewer than the max clips threshold. This just means that I bypass the create_supercut_in_batches() function and it's try/except block.
Traceback (most recent call last):
File "videogrep.py", line 261, in <module>
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 "D:\Python27\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 5
5, in __init__
self.reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt
File "D:\Python27\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 1
7, in __init__
infos = ffmpeg_parse_infos(filename, print_infos)
File "D:\Python27\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 2
07, in ffmpeg_parse_infos
stderr=sp.PIPE)
File "D:\Python27\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "D:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 123] The filename, directory name, or volume label syntax i
s incorrect
Thanks for your interest.
from videogrep.
It seems like a file name issue... strange.
from videogrep.
Man, that was a mission! I've finally cracked it (chest puffed, superior expression...)
at the beginning of videogrep.py, and the appropriate place in conf.py (for moviepy), where you indicate your path to ffmpeg and IMAGEMAGICK_BINARY, place an 'r' immediately before the opening quote. For example, on my (Windows) machine, in conf.py:
FFMPEG_BINARY = r'D:\ffmpeg\bin\ffmpeg'
IMAGEMAGICK_BINARY = r'D:\ImageMagick\convert'
...and in videogrep.py
FFMPEG_BINARY = r'D:\ffmpeg\bin\ffmpeg'
(note the leading r)
This inputs a raw string and stops python from shagging around with double backslashes etc (I think). Maybe the instructions can be amended?
from videogrep.
Yes they will be ! Thanks a bunch !
from videogrep.
Related Issues (20)
- --input not reading wildcard on windows powershell HOT 5
- switch to embeded imageio_ffmpeg
- How to pass multiple files as input on Windows? HOT 2
- add parts of speech/word category example
- Generating the supercut shows video_fps key error HOT 2
- Automatically refine word-level alignments from sentence-level alignments HOT 2
- Feature that cut silent parts HOT 7
- Inverse videogrep to remove certain words from videos HOT 4
- Subtitle file detection in same directory broken in Windows HOT 1
- Hangs forever at "[+] creating clips" HOT 6
- FileNotFoundError: [Errno 2] No such file or directory: '' not finding subtitles HOT 7
- Setting video quality HOT 3
- Audio-only mode? HOT 2
- Keyerror: 'video_fps' HOT 5
- Selecting folder HOT 5
- XML Compatibility and Combining CL Args? HOT 4
- Unexpected behaviour with "fragment" option? HOT 4
- (Enhancement?) Include pre/post silence in word detection HOT 2
- No results found in vtt file HOT 7
- from . import vtt, srt, sphinx, fcpxml HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from videogrep.