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

Use/output transparent images #15

Open
hellocatfood opened this issue Jan 8, 2024 · 0 comments
Open

Use/output transparent images #15

hellocatfood opened this issue Jan 8, 2024 · 0 comments

Comments

@hellocatfood
Copy link

hellocatfood commented Jan 8, 2024

I'm trying to make Poppy work with transparent images. These are the images that I'm working with

dog
cat

FFMPEG is able to generate videos with an alpha channel (some details here), and with the fourcc value RGBA I ran the following command

./src/poppy -f 10 -u FFV1 -o output.mkv cat.png dog.png

ffprobe reports that the output video has an alpha channel

Input #0, matroska,webm, from 'output.mkv':
  Metadata:
    ENCODER         : Lavf60.3.100
  Duration: 00:00:00.33, start: 0.000000, bitrate: 240262 kb/s
  Stream #0:0: Video: rawvideo (RGBA / 0x41424752), rgba, 500x500, 30 fps, 30 tbr, 1k tbn
    Metadata:
      DURATION        : 00:00:00.333000000

However, when I convert it to a series of pngs the images still have a black background. Is there any way to process transparent images and have them retain their transparency?

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

1 participant