Some adjustments to video sizes, max record length is now 80sek
This commit is contained in:
parent
c630f4e54b
commit
785b4c4ff5
@ -33,7 +33,7 @@ app = Flask(__name__)
|
|||||||
# configure the database, give it a path (it will be in the instances folder)
|
# configure the database, give it a path (it will be in the instances folder)
|
||||||
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///database.db"
|
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///database.db"
|
||||||
app.config["PERMANENT_SESSION_LIFETIME"] = 10800 #3 Stunden, 10800 sekunden
|
app.config["PERMANENT_SESSION_LIFETIME"] = 10800 #3 Stunden, 10800 sekunden
|
||||||
app.config['MAX_CONTENT_LENGTH'] = 16 * 1000 * 1000 # try and fix video upload not working
|
app.config['MAX_CONTENT_LENGTH'] = 20 * 1000 * 1000 # try and fix video upload not working
|
||||||
db.init_app(app)
|
db.init_app(app)
|
||||||
|
|
||||||
#set the secret key (TODO change this for final deployment)
|
#set the secret key (TODO change this for final deployment)
|
||||||
|
@ -123,8 +123,9 @@ async function cameraButton() {
|
|||||||
|
|
||||||
// initialize MediaRecorder, give it the webcam stream as input to record
|
// initialize MediaRecorder, give it the webcam stream as input to record
|
||||||
mediaRecorder = new MediaRecorder(stream, {
|
mediaRecorder = new MediaRecorder(stream, {
|
||||||
mimeType: "video/webm", // could use different video format
|
mimeType: "video/webm",
|
||||||
// videoBitsPerSecond: 5000000, // Standard bitrate for video is 2,5 mbps
|
audioBitsPerSecond: 0,
|
||||||
|
videoBitsPerSecond: 2000000, // Standard bitrate for video is 2,5 mbps
|
||||||
});
|
});
|
||||||
|
|
||||||
// when data is available at the mediaRecorder (this means the recording has ended, since I have not specified time intervalls)
|
// when data is available at the mediaRecorder (this means the recording has ended, since I have not specified time intervalls)
|
||||||
|
Loading…
Reference in New Issue
Block a user