[gst-devel] "No such element or plugin mad"

vishwanath H.G visuu2003 at yahoo.com
Wed Dec 15 03:00:01 CET 2004


Hi,
Thanks for your reply thomas and cristan, Here my aim is to play mp3 file on target using mad plugin and gstreamer.
 
And i listed the steps for cross-compilation fro ARM on host x86 and then copied the necessary files and plugins to the target filesystem. 
I am sure i have plugins(mad,lame etc)  on target.But  It struck up at generating registry file with proper plugin path on taget.Gst-register is not able to load the plugins.
Please see the logs below.  
Could someone help me on this...
 
-------------------------------snip-------------------------------------

1. This is cross-compilation steps of gstreamer for ARM on x86 host

Gstreamer-0.8.7
================

CC=arm-linux-gcc AR=arm-linux-ar LD=arm-linux-ld
./configure --host=arm-linux
LDFLAGS=-/usr/local/scratch/trilok/ws/target/lib
CFLAGS=-I/usr/local/scratch/trilok/ws/target/include
--prefix=/usr/local/fs/
vishwa && make && make install

2.This is cross-compilation steps of gst-plugins for ARM on x86 host

 gst-plugins-0.8.6
===================

CC=arm-linux-gcc AR=arm-linux-ar LD=arm-linux-ld
CFLAGS=-I/usr/local/scratch/trilok/ws/target/include
LDFLAGS=-L/usr/local/scratch/trilok/ws/target/lib

./configure --host=arm-linux    --prefix=/usr/local/fs/vishwa
--x-includes=$
TARGETDIR/include --x-libraries=$TARGETDIR/lib --disable-tests
--disable-fre
etypetest --with-x --disable-dxr3 --disable-vcd --disable-qcam
--disable-sun
audio --disable-cdrom --disable-alsa --disable-aalibtest
--disable-artstest 
--disable-esdtest --disable-liblame --disable-libfametest 
--disable-arts
--d
isable-artsc --disable-artstest --disable-esd --disable-esdtest
--disable-mi
kmod --disable-libmikmodtest --disable-ogg --disable-oggtest
--disable-theor
a --disable-shout --disable-shout2 --disable-shout2test --disable-dts
--disa
ble-osx_audio --disable-osx_video --disable-opengl --disable-cdrom
--disable
-xvideo --disable-xshm --disable-cdaudio --disable-cdparanoia
--disable-a52d
ec --disable-aalib --disable-aalibtest --disable-dirac --disable-dts
--disab
le-dvdread --disable-dvdnav --disable-flac --disable-gnome_vfs
--disable-gsm
 --disable-hermes --disable-ivorbis --disable-jack   --disable-jpeg
--disa
ble-ladspa  --disable-libcaca  --disable-lcs      --disable-libdv
--disabl
e-libmng --disable-librfb --disable-libvisual --disable-mplex
--disable-muse
pack  --disable-musicbrainz --disable-nas  --disable-polyp
--disable-dv1394 
--disable-sdltest    --disable-sidplay --disable-smoothwave
--disable-speex 
--disable-sndfile --disable-swfdec --disable-tarkin --disable-theora
--disab
le-vorbis --disable-vorbistest --disable-xine --disable-xvid
--disable-profi
ling && make && make install

3. Copy files (libraries,lib/gstreamer-0.8,binaries) from the directory
specified in prefix to target filesystem.

4.On target export plugin paths
# export GST_PLUGIN_PATH=/lib/gstreamer-0.8:$GST_PLUGIN_PATH

5.Run "gst-register" on target

 # gst-register
Rebuilding global_registry
(/usr/local/fs/vishwa/var/cache/gstreamer-0.8/registr
y.xml) ...
Rebuilding user_registry (/root/.gstreamer-0.8/registry.xml) ...
Loaded 0 plugins with 0 features.

6. This the content of global_registry

 # cat /usr/local/fs/vishwa/var/cache/gstreamer-0.8/registry.xml
<?xml version="1.0"?>
<GST-PluginRegistry>
<gst-plugin-paths>
<path>/lib/gstreamer-0.8</path>
<path>/usr/local/fs/vishwa/lib/gstreamer-0.8</path>
</gst-plugin-paths>
</GST-PluginRegistry>


7. This the content of user_registry

 # cat /root/.gstreamer-0.8/registry.xml
<?xml version="1.0"?>
<GST-PluginRegistry>
<gst-plugin-paths>
</gst-plugin-paths>
</GST-PluginRegistry>


8. # gst-inspect
gstcoreelements:  queue: Queue
gstcoreelements:  thread: Threaded container
gstcoreelements:  pipeline: Pipeline object
gstcoreelements:  bin: Generic bin

9.# gst-inspect mad
No such element or plugin 'mad'

------------------------------------------------------------------------
 
Let me know your thoughts.
waiting for reply......

Thnaks
Vishwa
 

Thomas Vander Stichele <thomas at apestaart.org> wrote:
Hi,

> Hi,
> I am new to this gstreamer and try to play mp3 file using mad plugin
> on target using gstreamer libraries, So I compiled gstreamer-0.8.7 &
> gst-plugins for ARM and then copied the installed plugins and
> gstreamer libraries to my target filesystem. 

> But when I run "gst-register" command with plugins path, it just
> hangs.
> ---------------------------snip---------------------------------------
> # gst-register --gst-plugin-path=/lib

First question - why are you specifying this gst-plugin-path ? Are your
plugins actually there ? If they are, why ? Doens't that dir contain
system libs ?

> Rebuilding global_registry
> (/usr/local/var/cache/gstreamer-0.8/registry.xml) ....
> -----> hanging here
> --------------------------------------------------------------------- 
> Can someone point me to the error?

check with strace or gdb what the process is doing there. Also, what
did you run configure with ? It seems you didn't specify anything
prefix-related to configure.

Are you used to cross-compiling and how to properly configure source
packages and so on ?



Thomas

Dave/Dina : future TV today ! - http://www.davedina.org/
<-*- thomas (dot) apestaart (dot) org -*->
the things I do posess
sometimes they own me too
<-*- thomas (at) apestaart (dot) org -*->
URGent, best radio on the net - 24/7 ! - http://urgent.fm/






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20041215/074c3ffa/attachment.htm>


More information about the gstreamer-devel mailing list