The file is being written to .h264, after the recording is stopped, a script is launched that moves it to the .mp4 container. All this happens with FFmpeg and Flask. If the file is too large and the response does not come to the browser, flask exits the current task. How to increase its response time, or force it to perform without even receiving a response?
- What is used as an application environment? ngixn / apach2? need to dig in this direction. - bmsdave
- @ VadimGorbachev only flask. There are no apach2 / nginx - Insider
- OK. those. application runs through app.run ()? and what does he write to the log? Are there any errors? - bmsdave
|
1 answer
Generally...
man configs flask - here is MAX_CONTENT_LENGTH.
try to increase this parameter to the desired value.
from flask import Flask, Request app = Flask(__name__) app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
|