mifi / editly

Slick, declarative command line video editing & API
MIT License
4.75k stars 309 forks source link

Very slow video rendering #255

Open adnanhassan23 opened 1 year ago

adnanhassan23 commented 1 year ago

To create a video of 50 seconds with 3 images(each of 3 seconds) is taking around 10 minutes(600 seconds) to create on production server. Am i do doing anything wrong?

LittleTerry commented 1 year ago

same here.

mjperrone commented 1 year ago

In order to make a 12 second clip, it took editly 21 minutes and dropped a bunch of frames. Here is my config:

{
  outPath: 'output.mp4',
  clips: [
    {
      layers: [
        { type: 'video', path: 'input.MP4', cutFrom: 14, cutTo: 26 },
      ],
    },
  ],
}

For ffmpeg to do it directly, it took 3 seconds and appeared to not have dropped any frames.

ffmpeg -ss 14 -to 26 -i "/Volumes/SeagateBlac/biking video/raw/20230623_evening_0.MP4"  -c copy output.mp4

I'd be happy to help devote time to debug this issue further if you have any time for that @mifi.

I think this project is a great idea and I'd love to be able to use it, but it seems I need some help with that.

mifi commented 1 year ago

I don't have time to work on this now unfortunately. I would recommend https://github.com/mifi/reactive-video as a much faster alternative to editly (but more limited)