Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zeronearhero opened this issue Jan 27, 2020 · 3 comments

Comments

@zeronearhero
Copy link

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?

@transitive-bullshit
Copy link
Owner

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 😄

@zeronearhero
Copy link
Author

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

@qiuliliang
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants