Home/Support/Support Forum/I cannot display an image.
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

I cannot display an image.

0 votes
Please tell me how to use "ffdec_png". (and bmp, jpeg)

# gst-launch filesrc location=xxxx.png ! ffdec_png ! autovideosink
Setting pipeline to PAUSED ...
MFW_GST_V4LSINK_PLUGIN 2.0.3 build on Feb 22 2013 13:36:49.
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/ffdec_png:ffdec_png0: Internal GStreamer error: negotiation problem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
Additional debug info:
gstffmpegdec.c(2684): gst_ffmpegdec_chain (): /GstPipeline:pipeline0/ffdec_png:ffdec_png0:
ffdec_png: input format was not set before data start
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Total rendered:0
[--->FINALIZE v4l_sink
Freeing pipeline ...
asked Jun 10, 2014 in Linux by chung New to the Community (37 points)

Please log in or register to answer this question.

4 Answers

0 votes

OS : ubuntu12.04 32bit

Board : Wi-i.MX53

Digi ESP for Embedded Linux
Version: 2.0 for Digi Embedded Linux
Build id: 20130211 DEL-
answered Jun 10, 2014 by chung New to the Community (37 points)
0 votes
First update to DEL 5.7.2 by running package manager in Digi ESP. Then try the samples provided in Digi ESP.

Check docs Digi ESP -> Help -> Digi ESP for Digi Embedded Linux
9.15.2. Gstreamer Framework
answered Jun 11, 2014 by tuxembb Veteran of the Digi Community (288 points)
0 votes
If you are on ccwimx53 and DEL you are already on the latest version of Digi embedded Linux.

To display jpeg:
You can use the jpegdec gstreamer element to display still JPEG images in the screen.

Using mfw_v4lsink:

# gst-launch multifilesrc location=/example.jpg ! jpegdec ! freeze ! mfw_v4lsink

Using mfw_isink:

# gst-launch filesrc location=/example.jpg ! jpegdec ! freeze ! mfw_isink

The JPEG images must have a resolution multiple of 16 to work properly with gstreamer's mfw_v4lsink and mfw_isink.

also please check those 2 threads for more info and potential workaround:


answered Jun 11, 2014 by LeonidM Veteran of the Digi Community (4,457 points)
0 votes
JPEG is work.
~# gst-launch multifilesrc location=/example.jpg ! jpegdec ! autovideosink

PNG and BMP is not work.
Please tell me the pipeline.
answered Oct 9, 2014 by chung New to the Community (37 points)