- Posts: 26
- Joined: Mon Dec 28, 2020 12:13 pm
- Real Name: Charles Duffy
FWIW, I ended up not worrying about trying to do this in-line with the plugin API; instead, I modified termtosvg to allow the 1ms minimum time between frames to be eliminated (to make frame numbers line up perfectly with the time metadata in its input file), leveraged the existing option to emit a separate SVG file per state, and then wrote a wrapper to call inkscape to render those frames that would actually be included in the recording and then duplicate them in an output stream (to ffmpeg, creating an intermediate file) as many times as necessary to have the timings work out for an arbitrary framerate.
It's a kludge, and a lot slower than it could be, but it's a kludge that does what I needed -- and I'd be glad to share parts of it with anyone who happens to have similar needs.