DreamWall-Animation / dwencode

FFmpeg python wrapper to encode image sequence to movie with overlay text.
MIT License
32 stars 6 forks source link

Input information per frame #2

Open geodesicPenguin opened 2 years ago

geodesicPenguin commented 2 years ago

This tool is really awesome. I find it really useful to easily add the frame # to the playblast. I was wondering if that functionality could be extended.

I want to have the focal length of my maya camera update each frame as well. My thought was that I could store the focal length value from the output cam per frame in a list, then have each index of that list spit out per frame.

Do you think it'd be possible to add some sort of token (or something) to take a list and print it's contents per frame?

ndeebook commented 2 years ago

Hello, I would be nice indeed. It seems like the only proper way to do it would be to use subtitles and force_style for the position and size. But I don't know if it offers the same amount of control for position and size. If it works well, the best design would then be to replace all drawtext by subtitles but I don't have time to do this right now. I'm leaving this opened and I am opened to code/commandline examples or merge requests !