Multimedia codecs (SBC-i.MX51)

From BlueWiki

Revision as of 06:09, 11 October 2010 by Harald.krapfenbauer (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search


1 Basic libraries

i.MX specific libraries for VPU, IPU, etc.
Firmware for the VPU

2 Codec libraries

Libraries for all hardware de-/encoders

3 GStreamer support

A plug-in for the GStreamer framework (see here for the Wikipedia overview) allows for playing multimedia files using the i.MX hardware codecs.

Freescale GStreamer plug-in

In addition to the GStreamer plug-in, there are also patches applied to the GStreamer core.

3.1 Command-line usage

The gst-fsl-plugin comes with a command-line player that is called gplay. Simply supply the multimedia file as an argument to gplay. For more information, please have a look at the "Application Specification for gplay" document provided by Freescale at [1].

There's even a more low-level interface that can be used: gst-launch. Here is an example:

gst-launch filesrc ! qtdemux ! queue max-size-time=0 ! mfw_vpudecoder ! mfw_v4lsink disp-width=1024 disp-height=768

For more information, please refer to the "i.MX Linux Multimedia Framework User's Guide" available from Freescale at [2].

3.2 Media player

The SBC Gnome demo image comes with the Totem media player. Totem exclusively uses GStreamer to play multimedia files (audio and video).

To start Totem, navigate to Applications-->Sound & Video-->Movie Player in the Gnome menu.

If you are interested in which codecs are used in the background, start Totem from a Gnome terminal. Start playing any file and you can view a similar output in the terminal (look for the colored lines):

root@sbc-imx51:~# totem
MFW_GST_V4LSINK_PLUGIN 1.9.0 build on Oct  7 2010 23:14:53.
[INFO]	Product Info: i.MX51
VPU Version: firmware 13.4.0; libvpu: 5.1.0 
MFW_GST_VPU_DECODER_PLUGIN 1.9.0 build on Oct  7 2010 23:14:32.
BLN_MAD-MMCODECS_AACD_ARM_03.05.00  build on Nov 25 2009 15:02:24.
MFW_GST_AAC_PLUGIN 1.9.0 build on Oct  7 2010 23:14:15.
>>V4L_SINK: Actually buffer status:
	hardware buffer : 14
	software buffer : 0
[V4L Update Display]: left=5, top=202, width=440, height=184
Total rendered:3192

>>VPU_DEC: State: Ready to Null
>>V4L_SINK: All buffer freed, close device.
Personal tools