Spaces:
Running
Running
Commit ·
ffef181
1
Parent(s): 13d0800
Increase concurreny
Browse files- routes.js +1 -1
- server-plugins/split-render.js +5 -1
routes.js
CHANGED
|
@@ -361,7 +361,7 @@ RenderRouter.post('/api/render-sync', async (req, res) => {
|
|
| 361 |
let outFiles = await listOutputFiles(jobId);
|
| 362 |
await applyPluginsPostrender(plugins, originalManuscript, originalManuscriptPath, jobId, outFiles)
|
| 363 |
outFiles = await listOutputFiles(jobId);
|
| 364 |
-
console.log('Render complete, uploading... to target folder: ' + targetUrl + jobId + '/')
|
| 365 |
console.log('Files to upload: ', outFiles)
|
| 366 |
if (zip) {
|
| 367 |
let outFile = await generateOutputBundle(jobId, outFiles);
|
|
|
|
| 361 |
let outFiles = await listOutputFiles(jobId);
|
| 362 |
await applyPluginsPostrender(plugins, originalManuscript, originalManuscriptPath, jobId, outFiles)
|
| 363 |
outFiles = await listOutputFiles(jobId);
|
| 364 |
+
console.log('Render complete, took', perf.elapsedString(), 'uploading... to target folder: ' + targetUrl + jobId + '/')
|
| 365 |
console.log('Files to upload: ', outFiles)
|
| 366 |
if (zip) {
|
| 367 |
let outFile = await generateOutputBundle(jobId, outFiles);
|
server-plugins/split-render.js
CHANGED
|
@@ -10,7 +10,11 @@ export class SplitRenderPlugin extends Plugin {
|
|
| 10 |
super(name, options);
|
| 11 |
}
|
| 12 |
async applyPrerender(originalManuscript, jobId) {
|
| 13 |
-
_.set(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
originalManuscript.transcript.forEach(element => {
|
| 15 |
element._mediaAbsPaths = _.cloneDeep(element.mediaAbsPaths)
|
| 16 |
element.mediaAbsPaths = []
|
|
|
|
| 10 |
super(name, options);
|
| 11 |
}
|
| 12 |
async applyPrerender(originalManuscript, jobId) {
|
| 13 |
+
_.set(
|
| 14 |
+
originalManuscript,
|
| 15 |
+
'meta.generationConfig.extras.buildParams',
|
| 16 |
+
`--codec=prores --prores-profile=4444 --pixel-format=yuva444p10le --transparent --image-format=png --concurrency=2 --hardware-acceleration --enable-multiprocess-on-linux --offthreadvideo-cache-size-in-bytes=4294967296`
|
| 17 |
+
);
|
| 18 |
originalManuscript.transcript.forEach(element => {
|
| 19 |
element._mediaAbsPaths = _.cloneDeep(element.mediaAbsPaths)
|
| 20 |
element.mediaAbsPaths = []
|