transitive-bullshit / puppeteer-lottie

Renders Lottie animations via Puppeteer to image, GIF, or MP4.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image sequence not showing in exported mp4 or gif unless including in json (encoded)

zeronearhero opened this issue · comments

I have some animation/text happening on top of a video which I have rendered to an image sequence in the comp. When using puppeteer-lottie the images are ignored even though they are referenced in the data.json. I have tried a nested comp with the image sequence in it, and also dumping the image sequence to the main comp (note: i've tried importing the images as a sequence, and also individually and then using keyframe assistant to make them all 1 frame each in length). I have even tried converting the PNG's to JPG and changing the reference in the data.json thinking it might have been something with FFMPEG.

Each time the MP4 and/or gif only shows the animation/text, but the image sequence in the background is black. The only way i've achieved this working is by checking "include in json" which base64 encodes the images which makes the data.json unmanageable.

Is this not possible/supported any other way but including the images encoded in the json?

If the image is referenced in the JSON, the renderer needs to know where to find it. It's in a web process so it can't find images on the filesystem. If you use URLs of any type to reference your images, this should work.

I think this is a pretty interesting use case and shouldn't be too hard to add general support for as a pre-processing step. E.g., check the input JSON for references to local files, replace them file file:// or a local server that serves them to puppeteer.

Unfortunately I don't have the time right now to add this, but PRs are welcome 😄

Ohhhhhh that makes sense! I'll take a look at the processing as well.

the same question: images are referenced in the data.json with relative path, hope the lastest version to support