PNG image

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PNG image

2,575 Views
tanvidesai
Contributor II

Hi,

How png image resolution is depend on ipu decoder of imx6?i want to display png image.I used following command.

gst-launch-1.0 -v filesrc location=some.png ! decodebin ! imagefreeze ! autovideosink

But i am not able to display all png image.can any one tell me how much resolution image will needed ?

Labels (1)
Tags (1)
3 Replies

1,325 Views
mike_susen
NXP Employee
NXP Employee

Hi tanvi,

you must use png decoder. try this

gst-launch-0.10 filesrc location=some.png ! pngdec ! ffmpegcolorspace ! videoscale ! imagefreeze ! autovideosink

Most of Gstreamer documents you can find here Gstreamer

Michal

0 Kudos

1,325 Views
tanvidesai
Contributor II

Hi Michal,

This command was not worked .

it was showing below error.

Setting pipeline to PAUSED ...

display(/dev/fb0) resolution is (1024x768).

====== OVERLAYSINK: mxc_v4l2_output v4l2_out: Bypass IC.

4.0.9 build on Jul 21 2016 14:30:mxc_v4l2_output v4l2_out: Bypass IC.

35. ======

display(/dev/fb0) resolution is (1024x768).

display(/dev/fb0) resolution is (1024x768).

Pipeline is PREROLLING ...

ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data flow error.

Additional debug info:

/home/dsb/yocto/EliteTrap/linux_source/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0/1.6.0-r0/gstreamer-1.6.0/libs/gst/base/gstbasesrc.c(2943): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:

streaming task paused, reason not-negotiated (-4)

ERROR: pipeline doesn't want to preroll.

Setting pipeline to NULL ...

Freeing pipeline ...

Regards,

Tanvi

0 Kudos

1,325 Views
tanvidesai
Contributor II

Hello,

I fixed the problem by using following command.

gst-launch-1.0 -v filesrc location=/home/root/white_box.png ! pngdec ! imagefreeze ! videoconvert ! autovideosink

Regards,

Tanvi Desai