Does Deepstream support .png?

I have a .png image, but when I run Deepstream-app with this image, I got an error

ERROR from pngparse0: Internal data stream error.
Debug info: gstbaseparse.c(3611): gst_base_parse_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin0/GstPngParse:pngparse0:

Here is info of the image

  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: png, rgb24(pc), 1280x960, 25 tbr, 25 tbn, 25 tbc

Here is my config

[application]
enable-perf-measurement=1
perf-measurement-interval-sec=5

[tiled-display]
enable=1
rows=1
columns=1
width=1280
height=720
gpu-id=0
nvbuf-memory-type=0

[source0]
enable=1
#type=3
#uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4
type=2
uri=file:///1.png
num-sources=1
gpu-id=0
cudadec-memtype=0

[sink0]
enable=1
type=1
sync=0
gpu-id=0
nvbuf-memory-type=0

[osd]
enable=1
gpu-id=0
border-width=5
text-size=15
text-color=1;1;1;1;
text-bg-color=0.3;0.3;0.3;1
font=Serif
show-clock=0
clock-x-offset=800
clock-y-offset=820
clock-text-size=12
clock-color=1;0;0;0
nvbuf-memory-type=0

[streammux]
gpu-id=0
live-source=0
batch-size=1
batched-push-timeout=40000
width=1920
height=1080
enable-padding=0
nvbuf-memory-type=0

[primary-gie]
enable=1
gpu-id=0
gie-unique-id=1
nvbuf-memory-type=0
config-file=config_infer_primary.txt

[tests]
file-loop=0

I know that some DS versions until now do not support YUV444 jpeg images, and not infor for .png images.

I using Docker container with DS6.0, TRT8.2. Thanks.

Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
• The pipeline being used

I use Docker container PS, DS6.0, TRT8.2, RTX2080Ti

Try add the below item to [source0]

video-format=NV12

PNG is compressed from rgb data. Default hareware pipeline works on NV12, adding data conversion might work

@junshengy
After adding video-format=NV12, the error was same.
I have a workound: convert to jpeg image and the error is gone. But jpeg and .png is a little bit different.

Is there anyway to directly load .png image in Deepstream?

Can you update to DS 6.2 ? I have tried png image on my version 6.2,It work normally.

Maybe some bugs in DS 6.0.

@junshengy
Thank you so much. I will try it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.