Menu

omxaudiodectest fails

2008-03-12
2013-06-05
  • Ashish Gupta

    Ashish Gupta - 2008-03-12

    Hi,

    I am trying to play mp3 using omxaudiodectest and it fails. It seems that mp3 decoder and some of the other components are missing.
    How do get I all the required components ?

    Thanks
    Ashish

    Here is the output of omxregister -v and omxaudiodectest. 

    omxregister -v

    Component OMX.st.volume.component registered
      Specific role OMX.st.volume.component registered
    Component OMX.st.audio.mixer registered
      Specific role OMX.st.audio.mixer registered
    Component OMX.st.alsa.alsasink registered
      Specific role OMX.st.alsa.alsasink registered
    Component OMX.st.alsa.alsasrc registered
      Specific role OMX.st.alsa.alsasrc registered
    Component OMX.st.audio_decoder.ogg.single registered
      Specific role OMX.st.audio_decoder.ogg.single registered

    ./omxaudiodectest /tmp/test.mp3
    Options selected:
    Decode file /tmp/test.mp3 to  alsa sink without tunneling
    Format selected MP3
    ------------------------------------
    GENERAL TEST test_OMX_ComponentNameEnum
    component 0 is OMX.st.volume.component
    component 1 is OMX.st.audio.mixer
    component 2 is OMX.st.alsa.alsasink
    component 3 is OMX.st.alsa.alsasrc
    component 4 is OMX.st.audio_decoder.ogg.single
    GENERAL TEST test_OMX_ComponentNameEnum result -2147479538
    ------------------------------------
    GENERAL TEST test_OMX_RoleEnum
    OMX-no component match in whole template list has been found
    Not able to retrieve the number of roles of the given component
    GENERAL TEST test_OMX_RoleEnum result -2147479549
    ------------------------------------
    GENERAL TEST test_OMX_ComponentEnumByRole
    Getting number of components per role for audio_decoder.ogg
    Number of components per role for audio_decoder.ogg is 1
    The components are:
    OMX.st.audio_decoder.ogg.single
    GENERAL TEST test_OMX_ComponentEnumByRole result OMX_ErrorNone
    ------------------------------------
    GENERAL TEST test_OpenClose
    OMX-Component not found with current ST static component loader.
    No component found
    GENERAL TEST test_OpenClose result -2147479549
    ------------------------------------
    OMX-Component not found with current ST static component loader.
    FileReader Component Not Found

     
    • Ukri Niemimuukko

      The autotools which are used to build Bellagio, will figure out whether you have required libraries installed in your system, and it will only build the mp3 decoder component(s) if you have what is needed.

      In practice you would have to install the libmad mp3 library plus I suppose libid3tag or something like that. I don't remember exactly from the top of my head but you should be able to figure it out from the configure.ac file.

      How you install those files depends a little on your Linux distro. If I recall right, the build scripts require pkgconfig to be used and again, if I recall right the source distributions of libmad and libid3tag don't actually support pkgconfig - I could be wrong but I think that's the way things are. So you probably can't just compile and install those libs, or you can but Bellagio still won't find them. You need to find the binary packages for your linux distro and install those and pray that they come with the correct pkgconfig files.

      Having said this, I have to admit that it's been a while since I tried. Things might be better these days. I wasn't exactly thrilled about the usage of pkgconfig for these libs.

       
    • Ashish Gupta

      Ashish Gupta - 2008-03-12

      Thanks for your help. I did a build of libmad and libid3tag. Now omxregisrer has Component OMX.st.audio_decoder.mp3.mad.
      But omxaudiodectest still fails (output at the end). How to get the other components like filereader etc.
      Another question I have is: how to get the ffmpeg working with this. Is there a plugin or wrapper for ffmpeg that can be used as omx component?

      Thanks
      Ashish

      ./omxaudiodectest /tmp/test.mp3
      Options selected:
      Decode file /tmp/test.mp3 to  alsa sink without tunneling
      Format selected MP3
      ------------------------------------
      GENERAL TEST test_OMX_ComponentNameEnum
      component 0 is OMX.st.volume.component
      component 1 is OMX.st.audio.mixer
      component 2 is OMX.st.audio_decoder.mp3.mad
      component 3 is OMX.st.alsa.alsasink
      component 4 is OMX.st.alsa.alsasrc
      component 5 is OMX.st.audio_decoder.ogg.single
      GENERAL TEST test_OMX_ComponentNameEnum result -2147479538
      ------------------------------------
      GENERAL TEST test_OMX_RoleEnum
      OMX-no component match in whole template list has been found
      Not able to retrieve the number of roles of the given component
      GENERAL TEST test_OMX_RoleEnum result -2147479549
      ------------------------------------
      GENERAL TEST test_OMX_ComponentEnumByRole
      Getting number of components per role for audio_decoder.ogg
      Number of components per role for audio_decoder.ogg is 1
      The components are:
      OMX.st.audio_decoder.ogg.single
      GENERAL TEST test_OMX_ComponentEnumByRole result OMX_ErrorNone
      ------------------------------------
      GENERAL TEST test_OpenClose
      OMX-Component not found with current ST static component loader.
      No component found
      GENERAL TEST test_OpenClose result -2147479549
      ------------------------------------
      OMX-Component not found with current ST static component loader.
      FileReader Component Not Found

       
    • Ashish Gupta

      Ashish Gupta - 2008-03-12

      Now, I can play mp3, I had to use -m and run this as root. Any pointers for using ffmpeg codecs under OMX?

      Thanks
      Ashish

       
    • Pankaj Sen

      Pankaj Sen - 2008-03-13

      Hi Ashish,

      You need to install ffmpeg library and header to compile components using ffmpeg. Except mad and ogg.single(uses libvorbis) almost all encoder , decoders ,file reader and 3gp parser are ffmpeg based.

      Present libraries installed in my Fedora 6 machine are as follows:
      FFMpeg: 0.4.9-0.37

      libavutil version: 49.4.0
      libavcodec version: 51.40.4
      libavformat version: 51.12.1
      built on May  3 2007 12:47:56, gcc: 4.1.2 20070424 (Red Hat 4.1.2-11)

      Regards,
      Pankaj

       

Log in to post a comment.