ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Query on running the example "playvideo" program on imx27ADS.


From: Rajesh Marathe
Subject: Re: [Ltib] Query on running the example "playvideo" program on imx27ADS...
Date: Tue, 13 Oct 2009 10:47:35 +0530
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4

On 10/07/2009 06:43 PM, Alan Carvalho de Assis wrote:
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

Hi Alan,

In reply to your earlier email, I did try to run the example 'playvideo' program again on my IMX27 ADS board with your suggested change. Please note that I am using LTIB rel 3.0 from freescale. I am still unable to get the display on the panel. I see the following output though:

-----------------------------------------------------------------------------------------------

<p4v_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.4.9-r16 build on Oct 12 2009 18:43:43.
MFW_GST_V4LSINK_PLUGIN V1.4.9-r16 build on Oct 12 2009 18:43:36.

(playvideo:1742): GLib-GObject-WARNING **: value "((MfwGstVpuDecCodecs) 38024)" of type `MfwGstVpuDecCodecs' is invalid or out of range for property `codec-type
' of type `MfwGstVpuDecCodecs'
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.4.9-r16 build on Oct 12 2009 18:43:46.
** (playvideo:1742): DEBUG: Signal: pad-added
** (playvideo:1742): DEBUG: Linking video pad to dec_vd
** (playvideo:1742): DEBUG: Signal: pad-added
** (playvideo:1742): DEBUG: Linking audio pad to dec_ad
Running...
Decoder maximal reserved 4 buffers.
Actually buffer status:
        hardware buffer : 6
        software buffer : 0
Set max lateness = 20000000.
-----------------------------------------------------------------------------------------------
I tried to set codec type to "std_mpeg4" and still get same result/output as above.

Any clue on what am I missing in this setup ??

regards,
Rajesh Marathe.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]