Skip to content

Commit

Permalink
Update concurrency.
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptofyre committed Aug 9, 2024
1 parent ee155bc commit 596e83f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const processStream = async (url, key, jobId) => {
.inputOptions('-protocol_whitelist file,http,https,tcp,tls,crypto')
.output(gifPath)
.outputOptions('-vf', 'fps=15,scale=500:-1:flags=lanczos')
.outputOptions('-threads', '24')
.outputOptions('-threads', '8')
.outputOptions('-preset', 'fast')
.outputOptions('-multiple_requests', '1')
.outputOptions('-buffer_size', '8192k')
Expand All @@ -96,7 +96,7 @@ const processStream = async (url, key, jobId) => {
};

// Process job queue
processQueue.process(async (job) => {
processQueue.process(3, async (job) => {
const { url, key, jobId } = job.data;
const gifPath = path.join(cacheDir, `${key}.gif`);

Expand Down

0 comments on commit 596e83f

Please sign in to comment.