Report this

What is the reason for this report?

How to stop sigsegv with ffmpeg?

Posted on January 22, 2022

Hello, I’m running a droplet with 1vcpu and 2GB of ram and I have a script that takes the video and audio URLs from the Reddit API and attempts to merge them into one video using FFmpeg. It works on my Windows 10 PC with an i5-9600k and 32GB of ram but when I run it on my server I get a sigsegv error. The error can be seen below:

Error: ffmpeg was killed with signal SIGSEGV
    at ChildProcess.<anonymous> (/root/discord-bots/fiverr/notsockpuppet/node_modules/fluent-ffmpeg/lib/processor.js:180:22)
    at ChildProcess.emit (node:events:390:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

Any help on what I can do to stop this error is appreciated I’ve looked for alternatives but I can find any other ways to combine these two files. The Reddit API separates audio and video so I have to merge them in order to have the complete video.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

This can be caused by a variety of factors, including lack of memory. As your droplet has 2GB of RAM, ensure you have enough free memory for the FFmpeg process to run smoothly.

Also, consider using swap file if your system is running out of memory frequently. It can provide an extra buffer of RAM by utilizing hard drive space.

Another possibility is that the issue might be stemming from the specific build of FFmpeg installed on your server. You can try to update FFmpeg to the latest version or compile it yourself directly from the source (though it’s a bit more advanced).

In case these suggestions don’t help, please install debugging tools and post detailed logs which could help to investigate this issue more deeply.

For more guidance on memory and CPU optimized droplets, you can check out DigitalOcean’s documentation.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.