issue with pngdec

Mohan R mohan43u at gmail.com
Fri Feb 4 03:32:59 UTC 2022


Hi,

I have this commandlines

convert -size 1080x1920 xc:green -gravity center \( -size 540x960
-background green pango:'<span bgcolor="green" fgcolor="white"
size="40000">வணக்கம்</span>' \) -composite test.png

gst-launch-1.0 multifilesrc location=test.png num-buffers=1 ! pngdec !
videorate ! videoconvert ! videoscale ! video/x-raw,framerate=1/4 !
x264enc ! mp4mux ! filesink location=test.mp4

The first commandline produces one png image which contains a green
background with white text, there is no issue here, but when I tried
to convert that image into a video, I got a pink background instead of
green.

This issue only happens when using "green", not happening  with "red" or "blue".

If I switch the image format to jpg, I'm not facing any issue, these
commandlines works

convert -size 1080x1920 xc:green -gravity center \( -size 540x960
-background green pango:'<span bgcolor="green" fgcolor="white"
size="40000">வணக்கம்</span>' \) -composite test.jpg

gst-launch-1.0 multifilesrc location=test.jpg num-buffers=1 ! jpegdec
! videorate ! videoconvert ! videoscale ! video/x-raw,framerate=1/4 !
x264enc ! mp4mux ! filesink location=test.mp4

So, this seems to be a bug in pngdec, or maybe I'm doing something
wrong in the pngdec commandline.

Thanks,
Mohan R


More information about the gstreamer-devel mailing list