remote probing through html
Opened this issue · 0 comments
jodersus commented
Hi,
I'm trying to probe video info through a web service, I have a webserver based on Flask + uwsgi where I upload a video and would like to return video info.
I use the simple info = c.probe("path/to/filename")
which works perfect on command-line, but when I run it through the html call, I get an error I can't make anything of it:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "home.py", line 42, in decorated_function
return f(*args, **kwargs)
File "home.py", line 93, in uploaded_file
info = c.probe(os.path.join(os.getcwd(),'uploads',filename))
File "/usr/local/lib/python3.5/dist-packages/converter/__init__.py", line 224, in probe
return self.ffmpeg.probe(fname, posters_as_video)
File "/usr/local/lib/python3.5/dist-packages/converter/ffmpeg.py", line 387, in probe
'-show_format', '-show_streams', fname])
File "/usr/local/lib/python3.5/dist-packages/converter/ffmpeg.py", line 354, in _spawn
close_fds=True)
File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1484, in _execute_child
self.pid = _posixsubprocess.fork_exec(
AttributeError: 'NoneType' object has no attribute 'fork_exec'
I already tried looking in current issues, #5 looked promising but solution applies to conversion, not probing.
I'm stuck. Your help is highly appreciated.