editly icon indicating copy to clipboard operation
editly copied to clipboard

Performance expectations

Open 3JTek opened this issue 3 years ago • 4 comments

Hi Mikael,

I am super impressed by this lib/framework and wanted to replace ffmpeg-concat by editly,

However, after some performance testing I found out that concatenating 2 videos of 10s each at 30fps takes:

~60-70s with editly (fast mode set to 'false') ~25-30s with ffmped-concat

I am a bit surprised so I digged a little bit and found out that 2 functions takes quite a while to execute:

  1. "frameSource.readNextFrame" takes ~0.07s
  2. "renderFabricCanvas" takes ~0.03s.

=> total per frame = 0.1s (execution time / frame) * 2 (videos) * 10s * 30 (fps) = 60s.

I've got a mac book pro and run everything locally.

Just wanted to know if those performances are expected or do I have a config issue?

Thanks in advance.

3JTek avatar Oct 21 '20 03:10 3JTek

Hi. This depends a lot on the resolution and the CPU power of your machine. The performance you're seeing sounds about right for a high res video on a modern computer. The reason I believe editly is slower than ffmpeg-concat is that it renders everything to fabric.js canvas with multiple layers for the highest flexibility and feature possibilites.

You can try to install v0.6.3 and see if it's any faster. If you have only 2 videos with no titles etc, then I think that version could be alot faster. That version did more work in ffmpeg and never rendered to fabric.js with videos only.

mifi avatar Oct 22 '20 20:10 mifi

Hi Mikael,

Thanks a lot for coming back to me. You are right, I've tried 0.6.3 and I got almost the same perfs than with ffmpeg-concat 👌.

Will keep a close eye on how this lib is progressing, love your work mate !!!

3JTek avatar Oct 24 '20 02:10 3JTek

hi, @mifi , does 0.6.3 support resizeMode: contain-blur feature?

carl-jin avatar Dec 25 '20 21:12 carl-jin

@carl-jin no unfortunately

mifi avatar Dec 28 '20 20:12 mifi