-
-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak on long video (200 clips) #72
Comments
Does it work on other AWS EC2 machines? |
Its does not work on any AWS or DO machines. I tried with a 32 GB RAM as well and increased the swap size too. |
Which OS are you running? Could you try newest Ubuntu? |
I tried Fedora, Ubuntu & CentOS. Fails on all the distros. |
how do you install it? do you use npm i -g editly? which version of node.js? headless machine or x11? |
I install it by running npm install as editly is a dependency in our project. Node 14.X and NPM 6.X. Here are the steps required to install all the dependencies required to run editly on AWS linux / centos distros. Ignore the indexes, they are off.
|
@mifi Tried it and it broke again! Fails around 73% of completion when the video width is 1280 PX and fails around 96% of completion when the video width trying to construct is 720 PX
|
Could you share your json spec? |
|
How many clips is it? Could you post the output if you run with verbose: true ? Also are you running newest version of editly?
|
|
Ok, it does sound like a memory leak then. I've never tried such a long video with 200 clips. Gonna have to find where in the code it's leaking. I'm guessing it's not related to AWS, and it will probably fail on another computer too. |
It works on my mac with 500 clips. |
Does it have the same amount of memory? And is it the same input/output resolution on the test on your mac? |
It has half the memory of my AWS machine. Input is same on both the machines. |
Maybe the AWS machine doesn't have hardware acceleration, while the Mac has. Then maybe in node-canvas there is some memory leak only with software acceleration. |
@mifi Anything on this? Tried the latest version. Fails with the same error. |
Could you run editly with the |
I might be having a similar issue, I was using c5d.2xlarge aws ec2 with elastic beanstalk (Docker running on 64bit Amazon Linux 2/3.0.3). I only had 15 clips but each clip has like a video + an overlayed alpha channel .mov with custom text animations. My issue is that it just stops on the 3rd to last clip, with no error message or anything, I'm assuming ec2/node could be running out of memory or there is a memory leak. Editly actually finished creating the file, but doesn't render the last 3 clips I input. I will test using a larger ec2 instance and relay my results.
ffmpeg -f rawvideo -vcodec rawvideo -pix_fmt rgba -s 1920x1080 -r 30 -i - -stream_loop -1 -i soundTrack.mp3 -shortest -map 0:v:0 -map 1:a:0 -acodec aac -b:a 128k -vf format=yuv420p -vcodec libx264 -profile:v high -preset:v medium -crf 18 -movflags faststart -y /backend/tmp/vayn_in_home_article_INITIATE_AI_d8becfe3-485b-4cb2-ac7f-59e080af1db8.mp4
|
Update: Improving ec2 instance to c5d.9xlarge seemed to have no effect, same issue occurs. If I run this same editly render on my local windows machine it works :/ no error message to figure out how to fix is very stressful. |
@ariel-frischer Are those stock footages from pexel.com? |
Yea mostly... why? |
@ariel-frischer I am building a tool for YouTubers that picks up videos from pexels.com and was just curious about how others are using this tool. Are you sharing what you are working on in public? |
I'm making a text to video platform, I guess your right I could hide the urls, didn't see much of the harm though. |
Sent you a mail. |
? I didn't seem to get anything... |
The one with gmail.com or .edu? I sent it to gmail. |
Gmail is better I just updated it. |
Update: Somehow my editly version was not on the latest version 💯 things should be working now as expected. |
Ok, I've figured out the issue, I noticed editly just stopped at around the time my audio file finished, even though loopAudio was set to true. The actual issue was that my FFMPEG version 3.4.8-0ubuntu0.2 was not high enough so there could have been some bugs with |
Generating a video from clips with the kenBurns model of width 720 fails in between when running on an AWS machine with sufficient memory.
Using
xvfb-run -s '-screen 0 1024x768x24 -ac +extension GLX +render -noreset' node index.js
fails with an out of memory error if the video is 720P in width.m5ad.large | 2 CPU | 8 GiB RAM | 1 x 75 GB NVMe SSD Storage | Up to 2.120 Gbps | Up to 10 Gbps
Error:
The text was updated successfully, but these errors were encountered: