phronmophobic / clj-media

Read, write, and transform audio and video with Clojure.
Apache License 2.0
58 stars 2 forks source link

`avfilter/trim` buffers the whole video in memory #8

Open phronmophobic opened 3 months ago

phronmophobic commented 3 months ago

This is bad for a bunch of reasons. Trimming should be fast and use a constant amount of memory unrelated to the length of the full clip.

phronmophobic commented 3 weeks ago

The main problem seems to stem from com.phronemophobic.clj-media.impl.av/new-packet and com.phronemophobic.clj-media.impl.av/new-frame.