IMX5X - How to Show JPEG (or PNG) with GStreamer

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

IMX5X - How to Show JPEG (or PNG) with GStreamer

15,750 Views
c_morini
Contributor I

Hello, 


cam anyone help to me to show picture with Gstreamer on IMX5X?


i'm trying to show JPEG with gstreamer and it works on my LINUX PC, using the commands


gst-launch filesrc location=myPicture.jpg ! jpegdec ! freeze ! videoscale ! ffmpegcolorspace ! autovideosink

gst-launch filesrc location=myPicture.jpg ! jpegdec ! freeze ! autovideosink


if i try on my IMX51 board, with the commands


gst-launch filesrc location=myPicture.jpg ! jpegdec ! freeze ! mfw_v4lsink

gst-launch filesrc location=myPicture.jpg ! jpegdec ! freeze ! videoscale ! ffmpegcolorspace ! mfw_v4lsink


the screen is always the same, without the picture to show.


When i run the commands on IMX51 board, this is the log on terminal


MFW_GST_V4LSINK_PLUGIN 1.7.1 build on May 14 2010 10:32:03.
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
>>V4L_SINK: Set max lateness = 2000000000.
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[V4L Update Display]: left=0, top=0, width=1024, height=768
>>V4L_SINK: Actually buffer status:
        hardware buffer : 6
        software buffer : 0


before to start the test, i modified the ltib file "gst-plugin-base.spec" and removed the "--disable-jpeg" line to enable it.

The problem is the same if i try to show a PNG file.


Thanks in advance.


Tags (1)
0 Kudos
3 Replies

5,888 Views
madmax
Contributor I

Hi Fabio,

after following all steps above with BSP 11.09.01, I got this result:

root@mcStudio ~/Documenti$ gst-launch filesrc location=mc.jpg ! jpegdec ! freeze ! mfw_isink
MFW_GST_ISINK_PLUGIN 2.0.3 build on Nov 18 2011 09:10:36.
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
hwbuf allocator zone(86016) created
source fmt error

any suggestion?...

Thank you
Massimo

0 Kudos

5,888 Views
fabio_estevam
NXP Employee
NXP Employee
Here is the procedure I follow to display a JPEG image in Gstreamer using MX51EVK with DVI output: - Download and install BSP 10.07 and 10.07 Multimedia Package - ./ltib -c Package list ---> [*] libjpeg - Let LTIB builds the libjpeg library - Edit the dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec file and remove ' --disable-jpeg' - In the package list select gst-plugins- good and bad packages - Install the Freescale Plugins - Then run the following pipeline: gst-launch filesrc location=file1.jpg ! jpegdec ! freeze ! mfw_isink - Image is shown in the DVI output Regards, Fabio Estevam
0 Kudos

5,888 Views
sujathap_m_
Contributor I

Hi,

I'm also trying to show my jpg with gstreamer.

I followed all the steps you have mentioned. I got this error:

WARNING: erroneous pipeline: no element "mfw_isink"

Can you help me to fix this error?

Regards,

sujatha

0 Kudos