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)
No description
Solution:
remove @ffmpeg-installer/ffmpeg
Jump to solution
11 Replies
Percy
Percy4mo ago
Project ID: da984312-0719-4831-b9b9-0c5cfa01bdcf
TheArtfulProgrammer
da984312-0719-4831-b9b9-0c5cfa01bdcf
TheArtfulProgrammer
There are the build logs and deplyment logs
Brody
Brody4mo ago
package.json please
TheArtfulProgrammer
Ok sure
Solution
Brody
Brody4mo ago
remove @ffmpeg-installer/ffmpeg
Brody
Brody4mo ago
you have two ffmpeg pacjages ffmpeg and fluent-ffmpeg choose one to use in your code and remove the other
TheArtfulProgrammer
Ok sure, let me try that. Thank you Brody, it worked!
Brody
Brody4mo ago
no problem!