mifi / editly

Slick, declarative command line video editing & API
MIT License
4.64k stars 295 forks source link

Cant run multiple editly render at once on linux: Caught error Error: write EPIPE #247

Open matukaking opened 1 year ago

matukaking commented 1 year ago

editly 0.14.2 ubuntu 22.10x64 python 3.10.7 node 16.13.2

i have installed every dependencies and the single video rendering works just fine, but when im try to render multiple video at the same time i get this error after the second video.

xvfb-run: error: Xvfb failed to start

on my local pc (win 11) multiple video rendering works fine.

do you guys know what could be the problem?

matukaking commented 1 year ago

UPDATE> Im using this command to start the process: xvfb-run --auto-servernum --server-num=1 editly --json ./datajson/${albumid}.json

i get this error:

info: Apr-17-2023 15:32:27: stdout: Caught error Error: write EPIPE at afterWriteDispatched (node:internal/stream_base_commons:164:15) at writeGeneric (node:internal/stream_base_commons:155:3) at Socket._writeGeneric (node:net:795:11) at Socket._write (node:net:807:8) at writeOrBuffer (node:internal/streams/writable:389:12) at _write (node:internal/streams/writable:330:10) at Socket.Writable.write (node:internal/streams/writable:334:10) at file:///root/.nvm/versions/node/v16.13.2/lib/node_modules/editly/index.js:367:68 at new Promise () at Editly (file:///root/.nvm/versions/node/v16.13.2/lib/node_modules/editly/index.js:367:32) { errno: -32, code: 'EPIPE', syscall: 'write', originalMessage: 'write EPIPE', shortMessage: 'Command failed with EPIPE: ffmpeg -hide_banner -loglevel error -f rawvideo -vcodec rawvideo -pix_fmt rgba -s 1920x1080 -r 25 -i - -i videos/editly-tmp-uiq26rck7QO_oItdtsYZR/> 'write EPIPE', command: 'ffmpeg -hide_banner -loglevel error -f rawvideo -vcodec rawvideo -pix_fmt rgba -s 1920x1080 -r 25 -i - -i videos/editly-tmp-uiq26rck7QO_oItdtsYZR/audio-mixed.flac -map 0:v:0 -map> escapedCommand: 'ffmpeg -hide_banner -loglevel error -f rawvideo -vcodec rawvideo -pix_fmt rgba -s 1920x1080 -r 25 -i - -i "videos/editly-tmp-uiq26rck7QO_oItdtsYZR/audio-mixed.flac" -map "> exitCode: undefined, signal: undefined, signalDescription: undefined, stdout: undefined, stderr: undefined, failed: true, timedOut: false, isCanceled: false, killed: false }

matukaking commented 1 year ago

@mifi

do you have any idea how can i run multiple rendering at the same time without getting EPIPE error?