[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] Query on running the example "playvideo" program on imx27ADS
From: |
Alan Carvalho de Assis |
Subject: |
Re: [Ltib] Query on running the example "playvideo" program on imx27ADS... |
Date: |
Wed, 7 Oct 2009 10:13:12 -0300 |
Hi Rajesh,
On 10/7/09, Rajesh Marathe <address@hidden> wrote:
> Hi,
>
> I have a setup comprising latest LTIB from CVS and IMX27ADS board. I use
> Redhat Linux as OS on my host PC. I took the example "playvideo.c" file
> from
> "http://www.imxdev.org/wiki/index.php?title=All_Board_Creating_App_Video".
>
> I included alsa-utils, gstreamer plugins and libmad packages as recommended.
>
> The application compiled fine and when I run the same on my ADS board
> with the command -
> "./playvideo
> Kaleidoscope_mp4v_mp3_320x240_30fps_1200kbps_a_48khz_128kbps.mp4"
>
> I get the following output:
> -------------------------------------------------------------------
> (playvideo:1707): GLib-GObject-CRITICAL **: g_object_set: assertion
> `G_IS_OBJECT (ob
> ject)' failed
> decvd = (nil)
> decvd = (nil)
> One element could not be created. Exiting.
> mx27#
>
> -------------------------------------------------------------------
>
> When I look into the code of playvideo the failure point was the line
> g_object_set (decvd, "codec-type", "std_avc", NULL);
>
> The above call fails. My questions are:
>
> 1. What should be the codec-type set to ? Am I trying out a wrong file
> here ? I changed the codec-type to "std_mpeg4" and still getting same
> problem.
> ?
> 2. Do I need any other codecs from Freescale to play this video out ? I
> have not included any from Freescale ?
>
> I am a newbie to streaming and any help guiding me in right direction
> will help a great deal.
>
Did you comment out line 134?:
gst_element_link (decad, adqueue);
Also check if all FSL plugins are installed:
mx27# gst-inspect | grep mfw
mfw_vpudecoder: mfw_vpudecoder: Freescale: Hardware (VPU) Decoder
mfw_v4lsrc: mfw_v4lsrc: Freescale Video Source plug-in
mfw_vpuencoder: mfw_vpuencoder: Freescale: Hardware (VPU) Encoder
mfw_v4lsink: mfw_v4lsink: Freescale: v4l_sink
mfw_avidemuxer: mfw_avidemuxer: FSL Avi Demuxer
mfw_mp4demuxer: mfw_mp4demuxer: freescale-mp4 demuxer plugin
Here on my iMX27ADS it works fine:
# playvideo Kaleidoscope_mp4v_mp3_320x240_30fps_1200kbps_a_48khz_128kbps.mp4
MPEG4PARSER_ARM11_05.12.04_BETA5 build on Feb 12 2009 14:45:18.
MFW_GST_MP4_PARSER_PLUGIN V1.5.0-r1 build on Sep 11 2009 10:20:02.
MFW_GST_V4LSINK_PLUGIN V1.5.0-r1 build on Sep 11 2009 10:19:58.
(playvideo_mx27:1735): GLib-GObject-WARNING **: value "((MfwGstVpuDecCodecs) 38'
Now playing: Kaleidoscope_mp4v_mp3_320x240_30fps_1200kbps_a_48khz_128kbps.mp4
Product Info: i.MX27
VPU Version: firmware 2.2.4; libvpu: 3.3.2
MFW_GST_VPU_DECODER_PLUGIN V1.5.0-r1 build on Sep 11 2009 10:23:16.
** (playvideo_mx27:1735): DEBUG: Signal: pad-added
** (playvideo_mx27:1735): DEBUG: Linking video pad to dec_vd
** (playvideo_mx27:1735): DEBUG: Signal: pad-added
** (playvideo_mx27:1735): DEBUG: Linking audio pad to dec_ad
Running...
Best Regards,
Alan