Good day, I am facing issues while streaming the video using ffmpeg. I am using express and nodejs.
I have looked on other solutions and recommendations it does not seem to solve my case. The following are fixes i have done:
Add nixpacks.toml
[phases.setup]
aptPkgs = ["...", "ffmpeg"]
Add railway.toml
[build]
nixpacksVersion = "1.15.0"
The error am getting (attached) and is:
Spawned ffmpeg with command: ffmpeg -f mp4 -i https://savanna-previews.s3.af-south-1.amazonaws.com/1707138035755-Vector+databases+are+so+hot+right+now+WTF+are+they_1080p.mp4 -acodec aac -vcodec libx264 -f mp4 -movflags frag_keyframe+empty_moov -preset ultrafast -tune zerolatency pipe:1
GET /api/v1/previews/65c0dc112a9b09ebd254b743 200 - - 499.791 ms
Error: Error: ffmpeg was killed with signal SIGSEGV
at ChildProcess.<anonymous> (/app/node_modules/fluent-ffmpeg/lib/processor.js:180:22)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.emit (node:domain:489:12)
at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
Error: ffmpeg was killed with signal SIGSEGV
at ChildProcess.<anonymous> (/app/node_modules/fluent-ffmpeg/lib/processor.js:180:22)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.emit (node:domain:489:12)
at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
11 Replies
Project ID:
da984312-0719-4831-b9b9-0c5cfa01bdcf
da984312-0719-4831-b9b9-0c5cfa01bdcf
build logs please https://bookmarklets.up.railway.app/log-downloader/
There are the build logs and deplyment logs
package.json please
Ok sure
Solution
remove
@ffmpeg-installer/ffmpeg
you have two ffmpeg pacjages
ffmpeg
and fluent-ffmpeg
choose one to use in your code and remove the otherOk sure, let me try that.
Thank you Brody, it worked!
no problem!