HI @PointC
I was following @swampthang on the GSAP forums for a while, and tried the options he said. I was able to export the video successfully using
Electron Recorder. But it won't run headless, and what I need is a headless solution to export the video. So I ended up in phantomjs, which seems to work but with some issues as I mentioned above.
When I don't set a frame rate (60 is the default I think), on phantomjs I get around 27fps, and since I was expecting 60fps, the animation on video was running faster. What's weird is, If I set fps to 24 using,
TweenMax.ticker.fps(24);
Then I got 11 fps on phantomjs and FFmpeg is expecting 24 in this case. So I don't think it's lack of performance on phantomjs, but something tricky with the ticks. Because whatever framerate I set, I get almost half the fps on phantomjs. Seems like phantomjs is working like `useFrames:true` mode.
I was able to match it by time scaling to 0.2, but not sure how reliable it is.
EDIT: I just tried with a 16fps setting, and got 5fps on phantom. And I forgot to mention, I'm capturing screens on 'onUpdate' event, so frame count is the number of times onupdate is triggered.